-
-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pants: Add BUILD metadata to handle git submodule (#6258)
- Loading branch information
Showing
7 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Everything listed in pants.toml [evironments-preview.names] should be defined here. | ||
# Relevant docs: | ||
# - https://www.pantsbuild.org/stable/docs/using-pants/environments | ||
# - https://www.pantsbuild.org/stable/reference/targets/experimental_workspace_environment | ||
# - https://www.pantsbuild.org/stable/reference/targets/local_environment | ||
# - https://www.pantsbuild.org/stable/reference/targets/docker_environment | ||
|
||
# This file MUST NOT use any macros. | ||
|
||
experimental_workspace_environment( | ||
name="in_repo_workspace", | ||
description=( | ||
""" | ||
This allows shell_command and similar to run in the repo, instead of in a sandbox. | ||
Only use this environment for commands or goals that are idempotent. | ||
Ideally, such commands do NOT change anything in the repo. | ||
|
||
If you need to capture output, note that output gets captured from a temporary | ||
sandbox, not from the repo root. So, you may need to copy output files into | ||
the sandbox with something like `cp path/to/file {chroot}/path/to/file`. | ||
""" | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters