-
Notifications
You must be signed in to change notification settings - Fork 72
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
Ensure write permissions before and after lang file update #824
Conversation
Wow! Thank you 😄
I had a stashed change that did exactly this (stashed because I was working on d57e572 😉), so I think this is a sensible approach. I didn't have time to test it so I appreciate the work you've done here!
Ah, duh, I'm dumb. In #822 I wondered why this was causing issues, but it was even mentioned in the NixOS issue that There are two very small things I would just add before merging:
Awesome work here! Thanks for taking the time to make this change and test it, this will be ready to merge after some feedback on the above questions :-) |
Oh, I was just thinking, if you think the second point about how to get this into Nix would be better discussed in the NixOS/nixpkgs#226086 I can chime in there :-) |
I think it's fine as-is for readability, instead of having to look at a larger scope.
Not a problem! It's just a matter of telling Nix to look for this commit hash. so we don't have to wait for the next release! However, if the maintainer for STL's package wants to do things differently, that's up to them. For cool edu-ma-cational purposes, here's how Nix gets STL's code: src = fetchFromGitHub {
owner = "sonic2kk";
repo = pname;
rev = "v${version}";
hash = "sha256-oigHNfg5rHxRabwUs66ye+chJzivmCIw8mg/GaJLPkg=";
}; Here, |
Sounds good to me :-)
That is fair enough! They are always free to reach out to me if they need any assistance as well (not sure if I can provide any 😅)
That is pretty sweet and very readable actually (also, still get a kick out of seeing This looks good to me, ready to merge I think 👍 Thanks! |
D'oh, forgot to ask you to bump the version, sorry about that (it's not a big deal, I forget fairly often to do it myself). Going to push a small commit to bump it. Also, updated the changelog to include mention of your fix, so when a release comes out and I copypaste these release notes you'll probably get pinged :-) |
Related to #822
Use
chmod
to make sure language files in the user's config directory have write permissions before AND after updating them.I've decided on ensuring write permissions before and after the update just in case of an unforeseen edge case.
Testing
lang/
directory withchmod -R -w /path/to/config/lang
steam
steamtinkerlaunch
rm
waiting for user input to proceed with removing existing language file(s)