-
-
Notifications
You must be signed in to change notification settings - Fork 15.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
containerd: fix --version output #85269
Conversation
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.
So, I know this is a kinda weird hack. I did some grepping around, and couldn't find any other package currently in nixpkgs that deals with this issue.
I have no clue if this is a reasonable hack to include over here or what, and I'm happy to abandon this change if it seems a little too hacky.
Nice hack 😝 I am not sure either if it's a reasonable hack or not, but at least it works 👍
47b04ef
to
9d579af
Compare
Oh, it turns out I was blind; for some reason I mis-remembered that overriding some makefile variables would prevent the assignment from being evaluating, but others it wouldn't. It turns out that's wrong, and I can just set Well, that makes this PR much simpler. One second ... |
9d579af
to
ce132cb
Compare
Okay, PR updated and I verified the version flag indeed works as I'd expect still. It's now a much simpler and less weird change. I think this should be quite straightforward 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.
LGTM 🐯
Before this change, 'containerd --version' with the nix package wouldn't print useful version information. In addition, the build output a bunch of (harmless) errors about 'git: command not found'. This fixes both of those problems.
ce132cb
to
6d3eaa0
Compare
@GrahamcOfBorg build containerd |
Before this change, 'containerd --version' with the nix package wouldn't
print useful version information.
In addition, the build output a bunch of (harmless) errors about 'git:
command not found'.
This fixes those problems.
cc @vdemeester
Here's the difference from this change:
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)