Skip to content

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

Merged
fredericdalleau merged 1 commit intodocker:masterfrom
thaJeztah:fix_version_check
Jul 5, 2021
Merged

[master] Fix binary version checks masking failure exit code#556
fredericdalleau merged 1 commit intodocker:masterfrom
thaJeztah:fix_version_check

Conversation

@thaJeztah
Copy link
Copy Markdown
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 <github@gone.nl>
@thaJeztah thaJeztah force-pushed the fix_version_check branch from bcf1b1e to 5d9ad8c Compare July 3, 2021 16:09
@thaJeztah
Copy link
Copy Markdown
Member Author

@fredericdalleau ptal 🤗

Copy link
Copy Markdown
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