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
dev-cmd/bottle: set uid/gid, use libarchive on macOS. #11167
Conversation
Review period ended. |
Installing Bonus: it's keg only so less likely to affect other builds. |
I'd err on using |
Nice idea, I like this 👍🏻 |
d69a36f
to
bcae727
Compare
bcae727
to
f9da534
Compare
I'm going for this but just on macOS. I want to avoid causing grief for Linux folks for now but we can consider making it default/required on Linux in future. |
4fb92c0
to
98dfeab
Compare
98dfeab
to
9820ef1
Compare
@thomasrockhu codecov/codecov-bash@1b4b96a seems to have broken our CI. Help? |
@MikeMcQuaid I opened a PR that should fix the issue |
9820ef1
to
03efccb
Compare
Take 2 on #11165 but use newish `libarchive` consistently on macOS.
03efccb
to
4a3fc2a
Compare
bsdtar_args = ["--uid", "0", "--gid", "0"].freeze | ||
|
||
# System bsdtar is new enough on macOS Catalina and above. | ||
return bsdtar_args if OS.mac? && MacOS.version >= :catalina |
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.
You can drop the OS.mac?
check here. MacOS.version >= :anything
always evaluates to false on Linux. (And MacOS.version < :anything
is always true.) But keeping it too is fine.
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.
@carlocab Nope 😁. On brew tests --generic
both OS.mac?
and OS.linux?
are false
(and MacOS
isn't defined). This layer exists to make it easier to potentially port to other OSs in future.
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.
Ah right. Generic OS. So often forgotten 😢
Take 2 on #11165 but use newish
libarchive
consistently on macOS.