-
-
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
error: unable to execute /nix/store/goo-bar-0.0.1/bin/foo No such file or directory #144
Comments
What does your go.mod file look like, does it the module end in |
@hmajid2301 ah, sorry for the late reply -- I was away for a while and my GH notifications got outta control in the meantime. I'm only just getting through them now.
In this specific case, yes the module name did indeed end in Log
But that's a whole another issue I concur! |
Yeh no idea about embedding static files 😢. I had the same issue as you with the module name! |
How did you resolve it? The original repo that led to this report is on a machine I no longer have access to |
I had to match the name here https://gitlab.com/hmajid2301/optinix/-/blob/main/default.nix?ref_type=heads#L16 to the one in go.mod that fixed what was causing your original issue. |
I have the following flake that attempts to use this module:
Here is the
default.nix
When I try to run
nix run
I get an errorRunning
nix develop
andnix shell
work fine. Equally I'd expectnix build
to generate the binary but theresult
is linked to an empty directory. I'm sure I'm missing something but I'm not sure what.This is a simple project that has
main.go
file in the root of it.The text was updated successfully, but these errors were encountered: