diff --git a/pkgs/development/compilers/go/1.17.nix b/pkgs/development/compilers/go/1.17.nix index f13e7774a51c..84bb70a4cf35 100644 --- a/pkgs/development/compilers/go/1.17.nix +++ b/pkgs/development/compilers/go/1.17.nix @@ -274,5 +274,7 @@ stdenv.mkDerivation rec { license = licenses.bsd3; maintainers = teams.golang.members; platforms = platforms.linux ++ platforms.darwin; + # requires >=10.13 stdenv on x86_64-darwin + badPlatforms = [ "x86_64-darwin" ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 330bf7038f3e..16d365c26217 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19574,9 +19574,15 @@ with pkgs; buildGo116Package = callPackage ../development/go-packages/generic { go = buildPackages.go_1_16; }; - buildGo117Package = callPackage ../development/go-packages/generic { - go = buildPackages.go_1_17; - }; + # go_1_17 has go module changes which may not be portable + # across different go versions and/or platforms, + # it also requires >=10.13 stdenv on darwin which + # is not currently available for x86_64-darwin + # + # do not uncomment this without approval from the go CODEOWNERS + #buildGo117Package = callPackage ../development/go-packages/generic { + # go = buildPackages.go_1_17; + #}; buildGoPackage = buildGo116Package; @@ -19586,9 +19592,15 @@ with pkgs; buildGo116Module = callPackage ../development/go-modules/generic { go = buildPackages.go_1_16; }; - buildGo117Module = callPackage ../development/go-modules/generic { - go = buildPackages.go_1_17; - }; + # go_1_17 has go module changes which may not be portable + # across different go versions and/or platforms, + # it also requires >=10.13 stdenv on darwin which + # is not currently available for x86_64-darwin + # + # do not uncomment this without approval from the go CODEOWNERS + #buildGo117Module = callPackage ../development/go-modules/generic { + # go = buildPackages.go_1_17; + #}; buildGoModule = buildGo116Module;