Fix error building images without extra pkgs#1201
Fix error building images without extra pkgs#1201openshift-merge-robot merged 1 commit intoopenshift-metal3:masterfrom
Conversation
The extra pkg change broke image builds that don't use it because it was unconditionally calling realpath on the variable. If it wasn't set then this resulted in an invalid command. To fix this we just need to move the realpath call inside the -n check so we only do it if the variable is populated.
|
/test e2e-metal-ipi |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hardys The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Any idea why CI on #1142 didn't catch this? Edit: I guess it's because the |
|
/lgtm |
that's probably it, I still need to move the build images code to a separate script as done for the base image, that should help catching future errors |
|
A dev-scripts patch doesn't build any images so it wouldn't have hit this code path. I believe set -e should catch errors from a subshell. |
The extra pkg change broke image builds that don't use it because
it was unconditionally calling realpath on the variable. If it wasn't
set then this resulted in an invalid command. To fix this we just
need to move the realpath call inside the -n check so we only do it
if the variable is populated.