-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
GlobalProtect-OpenConnect: init at 1.2.6 #106465
Conversation
cc openconnect maintainers @pradeepchhetri @tricktron |
a5da358
to
aa1a94a
Compare
d6dffe9
to
2cc336b
Compare
Thanks for the thorough review, @SuperSandro2000. I did some fetching and rebasing so I could be clear on which of your suggestions were semantic versus only formatting. I've included the semantic suggestions and the two fixes you suggested ( With regard to the formatting changes, I've put them on a separate branch: jerith666/nixpkgs@globalprotect-vpn...jerith666:globalprotect-vpn-formatting. Is there a style guide you're following that led you to these changes, which I could keep in mind for future work? Or are they more of your personal preference? |
Not really. Normally things are defined in the order they are used at build time. Also please fix the eval issue. |
01d565d
to
a2171d5
Compare
Whoops, missed the eval issue! (In fact there was a second one lurking behind the first ...) 🤦 Fixed now. I've left the formatting changes on their own branch. IMO the code reads more clearly without them, but it's obviously a matter of opinion and I'm totally fine if you'd like to merge them (or probably better, squash-merge them). :) |
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.
Can you please squash the globalprotect-openconnect related commits into one init commit?
|
||
wrapProgram $out/bin/vpnc-script \ | ||
--set OS ${os} \ | ||
--prefix PATH : "${stdenv.lib.makeBinPath [ nettools gawk openresolv coreutils gnugrep ]}"; |
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.
--prefix PATH : "${stdenv.lib.makeBinPath [ nettools gawk openresolv coreutils gnugrep ]}"; | |
--prefix PATH : "${stdenv.lib.makeBinPath [ nettools gawk openresolv coreutils gnugrep]}"; |
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.
this and all other formatting suggestions are in the latest force-push.
@jerith666 I am not sure why this causes so many rebuilds but please target staging. |
@ofborg eval |
I was also surprised that this ended up rebuilding a bunch of stuff for me locally. One that I remember being surprised about is
Nothing in that chain seems obviously wrong to me, so I'll re-target to staging. |
a2171d5
to
c78f897
Compare
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.
please fix the merge conflict
417f68c
to
362a22d
Compare
Just pinging this, I think all the requested changes have been made and it's okay to merge? |
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.
@jerith666 Works on my Mac with Big Sur 11.4 and looks good to me.
@SuperSandro2000 Ready to merge?
28d520e
to
440eccb
Compare
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.
@jerith666 approved.
@SuperSandro2000 Next try: Ready to merge😃?
We don't really allow merging PRs that contain merge commits. |
Please rebase. |
@veprbl Good spotting, thanks. @jerith666 Ready for another (hopefully the last) round😄? Could you remove the merge commit and rebase it onto master? |
Co-authored-by: Sandro <[email protected]>
c5b0c88
to
44de2f3
Compare
Rebased without the merge commit. The only outstanding issue is the |
Have you tested the service without it? |
Co-authored-by: Sandro <[email protected]> Co-authored-by: sterni <[email protected]>
adds resolvectl support; as suggested by @liff
44de2f3
to
12368c0
Compare
Tested without the |
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.
Still working on my Mac.
@SuperSandro2000 Next try: Ready to merge?
@jerith666 Congrats, you did it😃! |
Awesome, thanks everyone! Hopefully my machine won't be too bored now that all these rebuilds will be cached ... ;-) |
The NixOS module is missing |
Gack -- whoops, good catch! Fix is in #128473. |
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)