-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jcannon/bind_mounts
- Loading branch information
Showing
123 changed files
with
1,974 additions
and
856 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,23 +81,33 @@ Note that any dashes in the option flag name are converted to underscores: `--mu | |
|
||
### Config file interpolation | ||
|
||
Environment variables can be interpolated by using the syntax `%(env.ENV_VAR)s`, e.g.: | ||
A string value in a config file can contain placeholders of the form `%(key)s`, which will be replaced with a corresponding value. The `key` can be one of: | ||
|
||
- A string-valued option in the DEFAULT section of the same config file. | ||
- A string-valued option in the same section of the config file as the value containing the placeholder. | ||
- Any environment variable, prefixed with `env.`: `%(env.ENV_VAR)s`. | ||
- The following special values: | ||
- `%(buildroot)s`: absolute path to the root of your repository. | ||
- `%(homedir)s`: equivalent to `$HOME` or `~`. | ||
- `%(user)s`: the current user's username, obtained from the system password file. | ||
- `%(pants_workdir)s`: the absolute path of the global option `--pants-workdir`, which defaults | ||
to `{buildroot}/.pants.d/`. | ||
- `%(pants_distdir)s`: the absolute path of the global option `--pants-distdir`, which defaults | ||
to `{buildroot}/dist/`. | ||
|
||
An interpolated value may itself contain placeholders, that will be recursively interpolated. | ||
|
||
For example: | ||
|
||
```toml pants.toml | ||
[DEFAULT] | ||
domain = "my.domain" | ||
|
||
[python-repos] | ||
# This will substitute `%(env.PY_REPO)s` with the value of the environment | ||
# variable PY_REPO | ||
indexes.add = ["http://%(env.PY_REPO)[email protected]/index | ||
repo_host = "repo.%(domain)s" | ||
indexes.add = ["http://%(env.PY_REPO)s@%(repo_host)s/index | ||
``` | ||
Additionally, a few special values are pre-populated with the `%(var)s` syntax: | ||
- `%(buildroot)s`: absolute path to the root of your repository | ||
- `%(homedir)s`: equivalent to `$HOME` or `~` | ||
- `%(user)s`: equivalent to `$USER` | ||
- `%(pants_distdir)s`: absolute path of the global option `--pants-distdir`, which defaults | ||
to `{buildroot}/dist/` | ||
Option types | ||
============ | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.20.0.dev3 | ||
2.20.0.dev4 |
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
Oops, something went wrong.