Skip to content

Commit

Permalink
directly use DeploymentPublishDependencies
Browse files Browse the repository at this point in the history
instead of including all fields of DeployFieldSet
  • Loading branch information
lilatomic committed Oct 28, 2024
1 parent ab219f2 commit ee4aecc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/helm/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from pants.backend.helm.resolve.remotes import ALL_DEFAULT_HELM_REGISTRIES
from pants.base.glob_match_error_behavior import GlobMatchErrorBehavior
from pants.core.goals.deploy import DeployFieldSet
from pants.core.goals.deploy import DeploymentPublishDependencies
from pants.core.goals.package import OutputPathField
from pants.core.goals.test import TestTimeoutField
from pants.engine.internals.native_engine import AddressInput
Expand Down Expand Up @@ -527,7 +527,7 @@ class HelmDeploymentTarget(Target):
alias = "helm_deployment"
core_fields = (
*COMMON_TARGET_FIELDS,
*DeployFieldSet.fields.values(),
DeploymentPublishDependencies,
HelmDeploymentChartField,
HelmDeploymentReleaseNameField,
HelmDeploymentDependenciesField,
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/backend/terraform/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from dataclasses import dataclass

from pants.core.goals.deploy import DeployFieldSet
from pants.core.goals.deploy import DeployFieldSet, DeploymentPublishDependencies
from pants.engine.internals.native_engine import AddressInput
from pants.engine.rules import collect_rules, rule
from pants.engine.target import (
Expand Down Expand Up @@ -118,7 +118,7 @@ class TerraformDeploymentTarget(Target):
alias = "terraform_deployment"
core_fields = (
*COMMON_TARGET_FIELDS,
*DeployFieldSet.fields.values(),
DeploymentPublishDependencies,
TerraformDependenciesField,
TerraformRootModuleField,
)
Expand Down
9 changes: 7 additions & 2 deletions src/python/pants/core/goals/deploy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@

import pytest

from pants.core.goals.deploy import Deploy, DeployFieldSet, DeployProcess
from pants.core.goals.deploy import (
Deploy,
DeployFieldSet,
DeploymentPublishDependencies,
DeployProcess,
)
from pants.core.goals.package import BuiltPackage, BuiltPackageArtifact, PackageFieldSet
from pants.core.goals.publish import (
PublishFieldSet,
Expand Down Expand Up @@ -58,7 +63,7 @@ class MockDeployTarget(Target):
alias = "mock_deploy"
core_fields = (
*COMMON_TARGET_FIELDS,
*DeployFieldSet.fields.values(),
DeploymentPublishDependencies,
MockDestinationField,
MockDependenciesField,
)
Expand Down

0 comments on commit ee4aecc

Please sign in to comment.