-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix crc-support run.sh script extra popd #44
Conversation
What is this extra popd doing in your case, I directly migrated this from qe-platform as it was there. Also just in case and to match all platforms this is still on the windows script
|
@adrianriobo In windows script, there is a push(https://gitlab.cee.redhat.com/crc/qe-platform/-/blob/master/support/images/crc-support/oci/lib/windows/run.ps1?ref_type=heads#L126) that match the popd. |
750e38f
to
046c90c
Compare
Ahh I see but here there is too..I mean I think the wrong thing here is that on https://github.com/crc-org/ci-definitions/blob/main/crc-support/oci/lib/unix/run.sh#L94 I mean move that outside instead of remove the popd should work and then all platforms will match WDYT? |
🤔 what I was suggesting is to move the mkdir target and pushd target before the if (as we do on windows) With the last change I think if we need to download and install is gonna fail cause is gonna download inside target and then popd and finally try to install from the previous folder not from target |
046c90c
to
fc02325
Compare
@adrianriobo Hi, I am considering that remove the parameter If we install crc from outside the target file, we need to pass the full path of the installer location. For example, WDYT? |
fc02325
to
44e53e6
Compare
Kind of, |
@adrianriobo I get that we may need to download bundles in some scenarios. |
🤔 aName is the name of the asset it you use:
It is working, actually I am testing it. Also consider if we use it for download crc released version typically the targetPath for it would be something like And actually if you use you strategy to copy crc through the ASSETS_FOLDER from deliverest you can use targetPath to You can add some logic there to parse the aName and check if it is a .xz or crc and if is the last direcly copy it to |
For the use of parameter |
yeah, may that was the thing confusing you, yeah in my pipeline i.e. I got the task download-bundle which is crc-support with some specific params and other task to donwload/ install crc with other set of parameters. and So yeah crc-support offer both modes but they can not be executed both at the same time |
44e53e6
to
f25dd25
Compare
Get it. Thanks for the detailed explanation. I have re-committed the code change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last request, can you change the commit message to explain this fix matches the logic between platforms + includes the option to install crc binary directly on linux and add as prefix something like
[crc-support] fix: "your message"
This will help us to later cherry-pick only commits for crc-support when creating a new version.
Otherwise LGTM
… of installing crc binary directly on linux
f25dd25
to
5f54918
Compare
No description provided.