Skip to content

Commit

Permalink
Silences the environments-related deprecations while @chrisjrn contin…
Browse files Browse the repository at this point in the history
…ues working on actually addressing them (#17258)

As requested by @Eric-Arellano.

See #17129 for remaining migrations.
  • Loading branch information
Christopher Neugebauer authored Oct 19, 2022
1 parent 1870d37 commit e97cd16
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions pants-plugins/internal_plugins/releases/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class CheckDefaultToolsSubsystem(GoalSubsystem):

class CheckDefaultTools(Goal):
subsystem_cls = CheckDefaultToolsSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class InternalGenerateTestLockfileFixturesSubsystem(GoalSubsystem):

class InternalGenerateTestLockfileFixturesGoal(Goal):
subsystem_cls = InternalGenerateTestLockfileFixturesSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/codegen/export_codegen_goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class ExportCodegen(Goal):
subsystem_cls = ExportCodegenSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
2 changes: 2 additions & 0 deletions src/python/pants/backend/go/goals/debug_goals.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ShowGoPackageAnalysisSubsystem(GoalSubsystem):

class ShowGoPackageAnalysis(Goal):
subsystem_cls = ShowGoPackageAnalysisSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down Expand Up @@ -134,6 +135,7 @@ class GoExportCgoCodegenSubsystem(GoalSubsystem):

class GoExportCgoCodegen(Goal):
subsystem_cls = GoExportCgoCodegenSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@dataclass(frozen=True)
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/go/goals/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class EnvironmentAware(Subsystem.EnvironmentAware):

class GoGenerateGoal(Goal):
subsystem_cls = GoGenerateGoalSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@dataclass(frozen=True)
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/java/goals/debug_goals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class DumpJavaSourceAnalysisSubsystem(GoalSubsystem):

class DumpJavaSourceAnalysis(Goal):
subsystem_cls = DumpJavaSourceAnalysisSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/kotlin/goals/debug_goals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class DumpKotlinSourceAnalysisSubsystem(GoalSubsystem):

class DumpKotlinSourceAnalysis(Goal):
subsystem_cls = DumpKotlinSourceAnalysisSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class PyConstraintsSubsystem(Outputting, GoalSubsystem):

class PyConstraintsGoal(Goal):
subsystem_cls = PyConstraintsSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/scala/goals/debug_goals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class DumpScalaSourceAnalysisSubsystem(GoalSubsystem):

class DumpScalaSourceAnalysis(Goal):
subsystem_cls = DumpScalaSourceAnalysisSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class Check(Goal):
subsystem_cls = CheckSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class DeploySubsystem(GoalSubsystem):
@dataclass(frozen=True)
class Deploy(Goal):
subsystem_cls = DeploySubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@dataclass(frozen=True)
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class Fix(Goal):
subsystem_cls = FixSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@rule_helper
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class Fmt(Goal):
subsystem_cls = FmtSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@rule_helper
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/generate_lockfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class GenerateLockfilesGoal(Goal):
subsystem_cls = GenerateLockfilesSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class Lint(Goal):
subsystem_cls = LintSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


def _print_results(
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/core/goals/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def activated(cls, union_membership: UnionMembership) -> bool:

class Publish(Goal):
subsystem_cls = PublishSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/engine/fs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,7 @@ class WorkspaceGoalSubsystem(GoalSubsystem):

class WorkspaceGoal(Goal):
subsystem_cls = WorkspaceGoalSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY

@dataclass(frozen=True)
class DigestRequest:
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/engine/goal_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class OutputtingGoalOptions(LineOriented, GoalSubsystem):

class OutputtingGoal(Goal):
subsystem_cls = OutputtingGoalOptions
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY

@goal_rule
def output_rule(console: Console, options: OutputtingGoalOptions) -> OutputtingGoal:
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/engine/rules_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class ExampleSubsystem(GoalSubsystem):

class Example(Goal):
subsystem_cls = ExampleSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY


@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/init/logging_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class LogSubsystem(GoalSubsystem):
class LogGoal(Goal):
subsystem_cls = LogSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY
@goal_rule
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/jvm/goals/debug_goals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class JvmSymbolMapSubsystem(GoalSubsystem):

class JvmSymbolMap(Goal):
subsystem_cls = JvmSymbolMapSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY # TODO(#17129) — Migrate this.


@goal_rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class LifecycleStubsSubsystem(GoalSubsystem):

class LifecycleStubsGoal(Goal):
subsystem_cls = LifecycleStubsSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY


@goal_rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class MockRunSubsystem(GoalSubsystem):

class MockRun(Goal):
subsystem_cls = MockRunSubsystem
environment_behavior = Goal.EnvironmentBehavior.LOCAL_ONLY


@goal_rule
Expand Down

0 comments on commit e97cd16

Please sign in to comment.