-
Notifications
You must be signed in to change notification settings - Fork 725
Make cargo test work on Ubuntu 24.04 regardless of umask
#11363
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
Conversation
|
@mathijs81 is attempting to deploy a commit to the GitButler Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks a lot for the fix, it's much appreciated! I wonder if @slarse also ran into this? If not, maybe it really is only about the umask somehow. |
|
Even with the right umask, the |
|
Do you want to add more commits/linux specific exclusions to make this work? Maybe the CI specific checks should really be Linux checks? |
|
I tested on a second 24.04 machine and needed to add a couple more umask normalizations. |
|
That's good to hear, thanks so much! Let's have it! |
|
@Byron I had umask issues as well, but not exactly the same ones as my umask is different. In fact, I still have umask issues if I set a more restrictive umask (e.g. Isn't it more convenient to just look at the filetype and normalize based on that, instead of building up a sort of library of possible outcomes from different umasks? When it comes to Git, the permission bits are really only interesting when it comes to regular files anyway. Edit: Concrete suggestion in #11375. It should more generally cover different umasks. |
|
Thanks for flagging this hackery that has been going on here. The mapping was originally made by me as a sure-fire way of making the test work on CI, so I wanted it to work for sure, going with stupid simple. Thanks also for the fix, I am heading over there now. |
🧢 Changes
I cloned the repo and tried
cargo testbut ran into issues because my default umask seems to be 0002 (I'm running Ubuntu 24.04).These changes make
cargo testrun through and I think should also work on all other systems.