You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the context gets values on the form <stage>.tag = <tag>, where stage is either baseimage, stageN or <stage name>.
Given the dynamic nature of this key, it is not well suited to use as a root key for the context, as it may conflict with other values. e.g. if you have a stage named "build_args", it would collide with the context value for build args.
Proposing to deprecate the current layout in 2.10 and removing in 2.11, in favour of putting them under a tags key instead tags.<stage> = <tag>:
…stage>`. (#14376)
Fixes#14023
Currently, the context gets values on the form `<stage>.tag = <tag>`, where stage is either `baseimage`, `stageN` or `<stage name>`.
Given the dynamic nature of this key, it is not well suited to use as a root key for the context, as it may conflict with other values. e.g. if you have a stage named "build_args", it would collide with the context value for build args.
This PR deprecates the current layout in 2.10, in favour of putting them under a `tags` key instead `tags.<stage> = <tag>`:
```python
{
"tags": {
"baseimage": "latest",
"stage0": "latest",
"custom-stage-name": "1.2",
...
},
"build_args": {...},
...
}
```
kaos
added a commit
to kaos/pants
that referenced
this issue
Feb 8, 2022
…stage>`. (pantsbuild#14376)
Fixespantsbuild#14023
Currently, the context gets values on the form `<stage>.tag = <tag>`, where stage is either `baseimage`, `stageN` or `<stage name>`.
Given the dynamic nature of this key, it is not well suited to use as a root key for the context, as it may conflict with other values. e.g. if you have a stage named "build_args", it would collide with the context value for build args.
This PR deprecates the current layout in 2.10, in favour of putting them under a `tags` key instead `tags.<stage> = <tag>`:
```python
{
"tags": {
"baseimage": "latest",
"stage0": "latest",
"custom-stage-name": "1.2",
...
},
"build_args": {...},
...
}
```
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]
# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Currently, the context gets values on the form
<stage>.tag = <tag>
, where stage is eitherbaseimage
,stageN
or<stage name>
.Given the dynamic nature of this key, it is not well suited to use as a root key for the context, as it may conflict with other values. e.g. if you have a stage named "build_args", it would collide with the context value for build args.
Proposing to deprecate the current layout in 2.10 and removing in 2.11, in favour of putting them under a
tags
key insteadtags.<stage> = <tag>
:The text was updated successfully, but these errors were encountered: