Skip to content

[master] Fix binary version checks masking failure exit code #556

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

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jul 3, 2021

Commit 928a8f2 (#551) added a check for binary set through build-time variables, but I messed up, and forgot to add a non-zero exit code. As a result the exit code was the exit code of the "echo", which would always be successful.

This also revealed a missing check for "target architecture": the scan cli plugin is only built on x86, so the version check should not be performed on other architectures.

relates to #553 (comment)

@thaJeztah thaJeztah force-pushed the fix_version_check branch from cb9a830 to bcf1b1e Compare July 3, 2021 15:35
Commit 928a8f2 added a check for binary
version set through build-time variables, but I messed up, and forgot to
add a non-zero exit code. As a result the exit code was the exit code of
the "echo", which would always be successful.

This also revealed a missing check for "target architecture": the scan
cli plugin is only built on x86, so the version check should not be
performed on other architectures.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the fix_version_check branch from bcf1b1e to 5d9ad8c Compare July 3, 2021 16:09
@thaJeztah
Copy link
Member Author

@fredericdalleau ptal 🤗

Copy link
Contributor

@fredericdalleau fredericdalleau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fredericdalleau fredericdalleau merged commit bf33229 into docker:master Jul 5, 2021
@thaJeztah thaJeztah deleted the fix_version_check branch July 5, 2021 09:10
@thaJeztah thaJeztah changed the title Fix binary version checks masking failure exit code [master] Fix binary version checks masking failure exit code Jul 28, 2021
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

Successfully merging this pull request may close these issues.

2 participants