gomod2nix icon indicating copy to clipboard operation
gomod2nix copied to clipboard

Allow custom vendors

Open JonathanLorimer opened this issue 4 years ago • 1 comments

Closes https://github.com/tweag/gomod2nix/issues/20

I came across a go package that uses replace directives to reference local files. Unfortunately this doesn't generate an entry in the go.sum file. Therefore I need the ability to splice in the required directories into /vendors. This parameter would facilitate that.

JonathanLorimer avatar Sep 26 '21 00:09 JonathanLorimer

Trying this PR have resulted with these issues:

error: attribute 'overlays' missing

       at /nix/store/g6as3z4mjh80ckzg9r3r9zgmgjwnmg48-source/flake.nix:32:20:

           31|     let
           32|       overlays = [ gomod2nix.overlays.default ];
             |                    ^
           33|     in flake-utils.lib.eachDefaultSystem (system:

Switched back to old gomod2nix.overlay and then:

error: attribute 'fetch' missing

       at /nix/store/vkdvav33cfvgr10xj5rhym0i98ba8ybw-source/builder/default.nix:54:28:

           53|                 src = fetchgit {
           54|                   inherit (meta.fetch) url sha256 rev;
             |                            ^
           55|                   fetchSubmodules = true;

gregistech avatar Jun 27 '22 10:06 gregistech