Commit 947515b
authored
ci: generate incorporation with pkg list -n instead of
this is exactly the change @citrus-it suggested in issue #8176.
`pkg list -g ...` as used in creating an incorporation to lock
packages implies `-a`,
```
-g path_or_uri
Use the specified package repository or archive as the
source of package data for the operation. Repositories
that require a client SSL certificate cannot be used with
this option. This option can be specified multiple times.
Use of -g implies -a if -n is not specified.
```
where `-a` is:
> List installed packages and list the newest version of package that
are not installed but could be installed in this image.
this wasn't super clear about what happens if a package is both
installed and a newer version of that package is available, but it seems
in practice the answer is "list the installed version, not a new
version". in the case of a package like `/system/kernel`, that's already
installed (surprise), carrying on through to more visible packages like
`consolidation/osnet/osnet-incorporation`. so, it's less that Helios was
pinned as much as we were very committed to whichever bits are present
when a TUF is built.
`-n` as Andy suggested always shows the newest version of packages,
avoiding... this. passing `-af` with an FMRI of `*@latest` might also
do, but `-n` seems more straightforward.*@latest (#8185)1 parent c914664 commit 947515b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments