-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
got-unwrapped: init at 0.100; got: wrap got-unwrapped with ssh #322202
Conversation
c91afc3
to
1ee1ddb
Compare
Thanks for this, @eclairevoyant, very much appreciated. Currently I'm a bit confused by the naming—not that there is anything wrong with it per se, could just be my current understanding of nixpkgs best practices. The help clear this up, @eclairevoyant, could you provide more context or explanation around the motivation to call the "original"/"unmodified" package that offers no "customization" of ssh in got Is it just because the "new" |
It's how every other wrapped package I've seen is named. See nvim, mpv, sway, etc. |
The more I go over this, the more I'm beginning to understand, and starting to really liking the change, @eclairevoyant, very well done! Prior to review just a minor question more out of interest than anything else: |
I don't have a strong opinion either way; I can switch it to |
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.
Since you're also overridding GOT_TAG_PATH_SSH_KEYGEN
could you patch its use to execvp
as well.
And similarly there is occurence for /usr/bin/signify
(and /usr/bin/vi
). Maybe we can patch that (those) too ?
Thanks!
I think that |
Didn't notice those earlier. I find that it's weird that they hardcode the editor at build-time instead of using an envvar with a default of |
Yeah nvm I think this is just the completely wrong approach |
Thanks for the work on this, @eclairevoyant, too bad this doesn't seem to head in the right direction for you. |
If they're just shelling out, this is something best handled at runtime via some envvar, not via buildtime #define. And yes upstream would be best to address this IMO |
ℹ️ It seems the changes introducing |
There's really no reason that they should require users to recompile
|
How about continuing the conversation over on #322600, @eclairevoyant? |
Description of changes
Created as an alternative to #297154 to prevent superfluous rebuilds.
TBH I'm not a big fan of this approach, a rebuild takes a few seconds, and this increases maintenance burden, but this does address the comments on the previous PR.
Fixes #322043.
Closes #297154.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.