-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cryptic error when using nix store sign
with a bash here string
#6856
Comments
Wich paths are you expecting to sign here? Because $ nix store sign -k /my/secret/key
path '/tmp/tmp.fmFjds2VXD' does not contain a 'flake.nix', searching up
error: could not find a flake.nix file Now for the fact that the error message isn't what you expect, I agree, although I'm not sure what a good message should be. Maybe something like
(Well, the phrasing is ugly, but that gives the broad idea) |
You're right, I posted an incomplete snippet - sorry for that!. What I'm doing is:
which works as intended, whereas
prints the error above.
|
Ah makes sense then :) So yeah, the second form is akin to I don't think we can avoid the “ Wanna open a PR for that? :D Btw if that's any help, |
Describe the bug
I have a secret signing key in the
NIX_PRIV_KEY
environment variable. I want to pass it tonix store sign
, and I choose to do this using<<<
:Steps To Reproduce
NIX_PRIV_KEY
nix store sign -k <<< "$NIX_PRIV_KEY"
Expected behavior
Either this should work, or it should fail with a better error message.
nix-env --version
outputAdditional context
I know that there's another way to solve this, using
<(echo $NIX_PRIV_KEY)
.The text was updated successfully, but these errors were encountered: