@@ -18,6 +18,11 @@ buildGoModule rec {
18 stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
18 stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
19 "${bash}/bin/bash";
19 "${bash}/bin/bash";
21+ # fix hardcoded GOFLAGS in makefile. remove once https://github.com/direnv/direnv/issues/718 is closed.
23+ substituteInPlace GNUmakefile --replace "export GOFLAGS=-mod=vendor" ""
21 # replace the build phase to use the GNUMakefile instead
26 # replace the build phase to use the GNUMakefile instead
22 buildPhase = ''
27 buildPhase = ''
23 make BASH_PATH=$BASH_PATH
28 make BASH_PATH=$BASH_PATH