Skip to content

Commit

Permalink
add doc on creating deployable targets
Browse files Browse the repository at this point in the history
  • Loading branch information
lilatomic committed Oct 28, 2024
1 parent ee4aecc commit b16bb27
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ These allow for specifying the target in the BUILD file and referencing its cont
```python tab={"label": "pants-plugins/my_deployment/target_types.py"}
from dataclasses import dataclass

from pants.core.goals.deploy import DeployFieldSet
from pants.core.goals.deploy import DeployFieldSet, DeploymentPublishDependencies
from pants.engine.target import COMMON_TARGET_FIELDS, Dependencies, DescriptionField, Target


Expand All @@ -32,7 +32,8 @@ class MyDeploymentTarget(Target):
alias = "my_deployment"
core_fields = {
*COMMON_TARGET_FIELDS,
MyDeploymentDependenciesField
DeploymentPublishDependencies, # This enables manually specifying dependencies to publish before deploying
MyDeploymentDependenciesField,
}


Expand Down

0 comments on commit b16bb27

Please sign in to comment.