Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcommand version does not work with 1.18.0 and 1.18.1 versions #445

Closed
dduportal opened this issue May 15, 2024 · 2 comments
Closed

Subcommand version does not work with 1.18.0 and 1.18.1 versions #445

dduportal opened this issue May 15, 2024 · 2 comments

Comments

@dduportal
Copy link
Contributor

Hello there 👋

When using the binaries from the GH release for 1.18.0 and 1.18.1 versions (Reproduced with linux/amd64, linux/arm64, darwin/arm64 and windows/amd64), the subcommand version does not work as expected and only prints 12 on the stdout (but still an exit code of 0).

Weirdly, the homebrew installation works (while the binary installation does not).

Reproduction examples:

$ ./container-structure-test-darwin-arm64 version
12
$ echo $?
0
$ docker run --rm -ti --platform=linux/amd64 ubuntu:22.04
>  apt update && apt install -y curl
# ...
> curl --fail --silent --location --show-error --output /usr/local/bin/container-structure-test https://github.com/GoogleContainerTools/container-structure-test/releases/download/v1.18.1/container-structure-test-linux-amd64
> chmod a+x /usr/local/bin/container-structure-test
> /usr/local/bin/container-structure-test version
12
> echo $?
0
@loosebazooka
Copy link
Member

Yeah mustve been a debug thing that wasn't fixed. I'll update that.

@dduportal
Copy link
Contributor Author

For info, the problem is fixed with the 1.19.0 version (at least Linux amd64 and Linux arm64):

root@ae3e0e264bb3:/# /usr/local/bin/container-structure-test version
1.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants