-
Notifications
You must be signed in to change notification settings - Fork 277
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: create /usr/local/bin directory if it does not exist on binary install #3425
Conversation
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.
LGTM
c829af1
to
420d9a7
Compare
Thanks @lstocchi I've updated it with the correct if statement as well as added a test for Linux as well. Good catch! I totally missed that. |
420d9a7
to
687a036
Compare
install ### What does this PR do? * On macOS and Linux we install the binary to /usr/local/bin. However, we do not check to see if it exists or create the directory if it it does not exist. * This PR updates the installBinaryToSystem function to check and create the bin directory * Added tests * No updates to user UI (this all happens behind the scenes) ### Screenshot/screencast of this PR <!-- Please include a screenshot or a screencast explaining what is doing this PR --> ### What issues does this PR fix or reference? <!-- Please include any related issue from Podman Desktop repository (or from another issue tracker). --> Closes containers#3309 ### How to test this PR? 1. Modify the `localBinDir` const to `/usr/local/bin/foobar` or a random test folder that's non-existant 2. "Install" Compose using the normal functionality 3. Check the directory that the binary has been installed. <!-- Please explain steps to reproduce --> Signed-off-by: Charlie Drage <charlie@charliedrage.com>
687a036
to
94e5ee6
Compare
Rebased + repushed due to #3437 . Now it passes. |
There is a "typo" in the summary and the commit message is weird (GitHub template?) /usr/bin/local -> /usr/local/bin |
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.
LGTM
Seems fix: rather than feat:
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
94e5ee6
to
d628feb
Compare
Updated based on commands 💯 |
fix: create /usr/local/bin directory if it does not exist on binary install
What does this PR do?
we do not check to see if it exists or create the directory if it it
does not exist.
the bin directory
Screenshot/screencast of this PR
Screen.Recording.2023-08-03.at.1.50.02.PM.mov
What issues does this PR fix or reference?
Closes #3309
How to test this PR?
localBinDir
const to/usr/local/bin/foobar
or a randomtest folder that's non-existant
Signed-off-by: Charlie Drage charlie@charliedrage.com