Merge pull request #246933 from SebTM/fix/go_symlink_bin

go: Don't symlink bin-directory but binaries instead to avoid breaking pkgs.symlinkJoin without error-message

authored by zowoq and committed by GitHub 085578fe 597f0307

+8 -4
+2 -1
pkgs/development/compilers/go/1.18.nix
··· 166 runHook preInstall 167 mkdir -p $GOROOT_FINAL 168 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 169 - ln -s $GOROOT_FINAL/bin $out/bin 170 runHook postInstall 171 ''; 172
··· 166 runHook preInstall 167 mkdir -p $GOROOT_FINAL 168 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 169 + mkdir -p $out/bin 170 + ln -s $GOROOT_FINAL/bin/* $out/bin 171 runHook postInstall 172 ''; 173
+2 -1
pkgs/development/compilers/go/1.19.nix
··· 166 runHook preInstall 167 mkdir -p $GOROOT_FINAL 168 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 169 - ln -s $GOROOT_FINAL/bin $out/bin 170 runHook postInstall 171 ''; 172
··· 166 runHook preInstall 167 mkdir -p $GOROOT_FINAL 168 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 169 + mkdir -p $out/bin 170 + ln -s $GOROOT_FINAL/bin/* $out/bin 171 runHook postInstall 172 ''; 173
+2 -1
pkgs/development/compilers/go/1.20.nix
··· 158 runHook preInstall 159 mkdir -p $GOROOT_FINAL 160 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 161 - ln -s $GOROOT_FINAL/bin $out/bin 162 runHook postInstall 163 ''; 164
··· 158 runHook preInstall 159 mkdir -p $GOROOT_FINAL 160 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 161 + mkdir -p $out/bin 162 + ln -s $GOROOT_FINAL/bin/* $out/bin 163 runHook postInstall 164 ''; 165
+2 -1
pkgs/development/compilers/go/1.21.nix
··· 158 runHook preInstall 159 mkdir -p $GOROOT_FINAL 160 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 161 - ln -s $GOROOT_FINAL/bin $out/bin 162 runHook postInstall 163 ''; 164
··· 158 runHook preInstall 159 mkdir -p $GOROOT_FINAL 160 cp -a bin pkg src lib misc api doc $GOROOT_FINAL 161 + mkdir -p $out/bin 162 + ln -s $GOROOT_FINAL/bin/* $out/bin 163 runHook postInstall 164 ''; 165