-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
korrect: init at 0.1.3 #403417
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
korrect: init at 0.1.3 #403417
Conversation
We're seeing some race conditions in the test suite of the project. Currently working with the maintainer to fix those and then promoting this from a draft to a real pull request. |
4ae2ba2
to
f754b35
Compare
754aa50
to
738d68e
Compare
This is ready for review. I'm still in conversation with upstream to investigate the issue on x86_64-darwin, but we've decided that this really does not need to prevent releasing this, as there will likely be very few users on that platform. Will do an update as soon as we have figured out why it fails there. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5444 |
|
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.
Overall looks good, thanks for the contribution and your willingness to become maintainer of this new package, @dwt, very much appreciated.
I've left a few nit comments inline for you to accept or disregard.
Apart from that please double check that:
- the commit adding you to the maintainers list comes before the commit that init's korrect
- the capitalisation of
korrect
on the commit marking it broken on x86_64 is correct
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.
Reviewed points
- package path fits guidelines
- package name fits guidelines
- package version fits guidelines
- package builds on x86_64-linux
- executables tested on x86_64-linux
-
meta.description
is set and fits guidelines -
meta.license
fits upstream license -
meta.platforms
is set -
meta.maintainers
is set -
meta.mainProgram
is set, if applicable. - source is fetched using the appropriate function
- the list of
phases
is not overridden
Comments
-
Make sure that the commit adding yourself as a maintainer comes first in the commits list
-
Make sure to only include two commits in your PR: one adding yourself to the maintainers list and the other adding the package.
-
Using nix-init, the following is added to
buildInputs
:
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
Not sure if and why this is needed, just wanted to mention it.
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review
x86_64-linux
✅ 1 package built:
- korrect
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.
Consider auto-installing shell completions.
@nicolas-goudry Regarding
In our testing this wasn't necessary, so I am a bit hesitant to just add it. I will keep this in mind should the need come up though. |
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.
-
Make sure that the commit adding yourself as a maintainer comes first in the commits list
-
Make sure to only include two commits in your PR: one adding yourself to the maintainers list and the other adding the package.
Otherwise LGTM.
@nicolas-goudry I did squash the commits as you suggested, hope this makes this ready to merge. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2369 |
0.1.3 finally unbroke x86-darwin. Yeah. :) |
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.
lgtm except mainProgram
Why do you value that entry? The app is named the same as the package, so the default works fine to allow ❯ nix run .#korrect -- --help
A kubectl version managing shim that invokes the correct kubectl version ☸
Usage: korrect [COMMAND]
Commands:
completions Generates shell completions
setup Installs the korrect-shim and creates the cache
list Lists the installed components
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version What is the value to you to additionally hardcode the name of the main program again? |
The documentation has explicitly said that
This best describes why we don't want to rely on |
@Aleksanaa Many thanks for educating me. [x] fixed. |
@dwt it appears that your commit in this PR was made with a bogus author setting in git, at least that's what I see in my Here's a screenshot: |
https://github.com/NixOS/nixpkgs/commit/7a550016fe7a24fab5f38cacc2ad7ffc4d93f083.patch
|
That is correct, My username has this unicode direction changer in it, which I use to check which programs have good unicode handling - and which don't. If you tool fails with this, I would like to encourage you to file bug reports upstream. If this is causing just trouble for you, then I am sorry. But this has already shown me many bugs in open source programs, so I would like to continue using it. |
Am I the only one who finds it funny that
For the record,
While I think it's really smart to use it yourself that way, I don't think it's acceptable to push this onto others as well. This reversal literally serves no purpose other than trying to break stuff and in a project of the scale of nixpkgs, you can be sure that quite a few people's tools will have trouble with that. I suggest you use a git config override for the nixpkgs repo, to use a simpler name with less unicode magic. You can still use this in your other git repos.. |
Things done
Added the tool korrect which helps with always using the correct version of kubectl (and downloading that version when necessary) when talking to kubernetes clusters. This is necessary, because there can be at most a 3 version split between between the version of kubectl (on your system) and the version of the kubernetes cluster.
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
./result/bin/
)Add a 👍 reaction to pull requests you find important.