fix: install go.env in go_1_21

fix build error: "GOPROXY list is not the empty string, but contains no entries"

see: https://github.com/golang/go/issues/57179
This commit is contained in:
HuangYi 2023-08-21 11:02:22 +08:00 committed by zowoq
parent 4028a28ac5
commit cbc976a97c

View file

@ -157,7 +157,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
mkdir -p $GOROOT_FINAL
cp -a bin pkg src lib misc api doc $GOROOT_FINAL
cp -a bin pkg src lib misc api doc go.env $GOROOT_FINAL
mkdir -p $out/bin
ln -s $GOROOT_FINAL/bin/* $out/bin
runHook postInstall