Since I just tried to use `crane copy --all-tags` with the version installed
by the `setup-tools` action, however, it failed with:
```
Error: unknown flag: --all-tags
```
It turns out that feature was added in 0.15.0 in May 2023, but that
version is still newer than the version installed by this action.
Whilst I can manually override the version myself, it seems we should
update the default version to prevent others from running into
similar footguns.
https://github.com/google/go-containerregistry/compare/v0.14.0...v0.19.1
Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
As of `yj` 5.1.0+ the filename of the asset attached to the GitHub release
is now `yj-linux-arm64` instead of `yj-linux`.
This change ensures that the new yj default (as of #164) is able to be
downloaded, since currently the action fails with:
```
Installing yj 5.1.0
curl: (22) The requested URL returned error: 404
Error: Process completed with exit code 22.
```
The bash string comparison of the semver version isn't ideal, but it
doesn't feel worth adding further complexity given that:
- all `yj` releases so far use a full semver version (and not say an `X.Y` version)
- `yj` major releases are infrequent, so it's going to be a while before v10 is out
(which would break the comparison) - by which point this backwards compatibiluty
comparison can just be removed (and support for pre 5.1.0 removed).
Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
Previously the `setup-pack` action installed not only the Pack CLI, but also
three additional tools: `crane`, `jq` and `yj`.
These additional tools are only needed in a subset of cases, however there was
no way to prevent their installation.
Now, the `setup-pack` action only installs the Pack CLI, and a new `setup-tools`
action has been added, which installs `crane` and `yj`. This new action does not
install `jq` (unlike the previous `setup-pack` implementation), since `jq` is already
installed in all of GitHub Actions' base images.
In addition, the default versions of tools have been bumped as follows:
- `crane`: `0.6.0` -> `0.12.1`
- `yj`: `5.0.0` -> `5.1.0`
Closes#121.
Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>