You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm very interested in gomod2nix because it greatly simplifies the packaging process of go modules.
I'm using a nur repo to package my personal apps and I therefore wanted to add gomod2nix.buildGoApplication to my libs. Except that gomod2nix uses overlays...
And the reason behind this is (as I understand it) because of the following cyclic dependency: gomod2nix(the binary) depends on buildGoApplication which depends on gomod2nix.
Fortunately, the last dependency link is easy to break: buildGoApplication only depends on gomod2nix for its update script.
So I've used the following structure to add buildGoApplication to my nur libs: lib/default.nix
(I just deleted the updatescript).
This works but I wonder how this toolchain could be internalized into the project instead of me having to pull/rebase my patch every time it conflicts with upstream.
The text was updated successfully, but these errors were encountered:
Hello, I'm very interested in gomod2nix because it greatly simplifies the packaging process of go modules.
I'm using a nur repo to package my personal apps and I therefore wanted to add
gomod2nix.buildGoApplication
to my libs. Except that gomod2nix uses overlays...And the reason behind this is (as I understand it) because of the following cyclic dependency: gomod2nix(the binary) depends on buildGoApplication which depends on gomod2nix.
Fortunately, the last dependency link is easy to break: buildGoApplication only depends on gomod2nix for its update script.
So I've used the following structure to add buildGoApplication to my nur libs:
lib/default.nix
gomod2nix is just a clone of this repo, and gomod2nix-no-cyclic-deps is a fork with the following patch:
(I just deleted the updatescript).
This works but I wonder how this toolchain could be internalized into the project instead of me having to pull/rebase my patch every time it conflicts with upstream.
The text was updated successfully, but these errors were encountered: