-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Cannot find package "." in #20
Cannot find package "." in #20
Comments
Getting this issue resolved will help me close informalsystems/cosmos.nix#19 |
Okay, I think I have identified what the issue is! These local, relative path, directives don't end up in the |
Have similar issue with packaging dasel. |
Similar issue ( |
Adding nix-casync to the affected go software. |
This issue is not fully resolved but was auto-closed by Github when #41 was merged. |
@JonathanLorimer Have you solved this issue for yourself? I got this too with Zitadel. |
This might be a different issue though? (There are not really local packages...)
I do override |
Actually, this is still in the configurePhase, as I need to generate some go files there. Irrelevant to this issue then. |
Any fixes or workarounds for this? |
I just ran into this same issue. Are there any fixes or workarounds for this? |
^ I have the same issue, here's a minimal repro. What is the current status of this repository -- is it maintained? |
@peterldowns - I hit a very similar issue at the same opentelemetry module.
Internally the buildPhase seems to call Maybe go install tries to fetch the module because it can't find it in the vendored modules in a similar way that it |
@ezdac hmm, I'm not sure. I was not able to find a fix for this problem and I worked around it by removing opentelemetry as a dependency from my project (it wasn't necessary, thankfully). It doesn't seem like anyone is working on this issue and I myself am not inclined to. You may consider putting up an easy way to reproduce the failure you're receiving, similar to what I did, to help the maintainers out if in the future they decide to try to fix this. |
fwiw I just switched to using |
I believe this issue is caused by the weird module structure of Here is some logs indicating that it had to go three directories deep to create the missing symlinks:
|
Describe the bug
gomod2nix seems to struggle with go dependencies that are part of the repo and referenced by relative paths. When I try and package regen-network I am getting this error:
The issue seems to be with these dependencies. The relevant error sites are listed below:
I also think that this has something to do with the local replace directives here
To Reproduce
I created a repro repo here. You should just have to run
nix build
to get the error. Since the repo is a flake you can just runnix build github:JonathanLorimer/gomod-repro-1
without even cloning the repo.Expected behavior
I expected this module to build without errors
Environment
NixOS 21.11 (Porcupine) x86_64
67f22dd738d092c6ba88e420350ada0ed4992ae8
Additional context
I have very limited golang knowledge so there might be something completely wrong with the go side of things and I am just missing it. Thank you for your help in advance!
The text was updated successfully, but these errors were encountered: