-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
gomod2nix generate results in error path is not valid #72
Comments
Oddly the expression evaluates perfectly fine in a nix repl, I wish nix-instantiate would give useful errors... |
I'm having the same issues. It seems to affect not only all private repos, but also public ones where the module ref doesn't correspond to a released version (updating to a given commit or branch — e.g., For example, I'm getting this (upon
Like @jgresty said, running it in
I haven't looked at the 🤷 |
I just noticed that I'm also getting
so I'm guessing that it's actually more general/not specific to the handling of private or untagged module versions. |
It looks like |
@storvik, I should probably have reread your original issue description before trying to add my own notes/comments. I just reread now and saw where you said (only three sentences in, even) that it wasn't specific to private (or untagged) repos (and refs), but I already came here having discovered the same issue from working with private modules, and just latched on to that instead. Still, either using |
Trying to use this to build a go package using some private modules. Looks like I should be able to do that using
generate
andimport
, but getting error path is not valid. Tried without private modules and the problem persists.Describe the bug
nix-instantiate returns
error: path /nix/store/*hash*-*package* is not valid.
when runninggomod2nix import
.To Reproduce
Expected behavior
Expected go dependencies to be imported into the nix store.
Environment
Tested both OS but the same thing happened.
Additional context
The complete log is here
I've tried to run the nix-instantiate command manually too, but same error.
A working solution to use private repos would be great, this is a promising start. Thanks for your contributions to the community.
The text was updated successfully, but these errors were encountered: