go_1_18: backport CL417615

Upstream reverted cmd/compile: revert "fix missing dict pass for type
assertions", as it's causing compilation errors in programs like gopass
- see https://github.com/gopasspw/gopass/issues/2280 and
https://github.com/NixOS/nixpkgs/issues/182440.

The revert has already been cherry-picked to HEAD, but there's no
backport release yet. This can be reverted once there's a new release
with that commit.

authored by Florian Klink and committed by zowoq 4d1e04c0 2aa98a3f

+12 -1
+12 -1
pkgs/development/compilers/go/1.18.nix
··· 1 { lib 2 , stdenv 3 , fetchurl 4 , tzdata 5 , iana-etc ··· 172 touch $TMPDIR/group $TMPDIR/hosts $TMPDIR/passwd 173 ''; 174 175 - patches = [ 176 ./remove-tools-1.11.patch 177 ./ssl-cert-file-1.16.patch 178 ./remove-test-pie-1.15.patch ··· 182 ./skip-nohup-tests.patch 183 ./skip-cgo-tests-1.15.patch 184 ./go_no_vendor_checks-1.16.patch 185 ]; 186 187 postPatch = ''
··· 1 { lib 2 , stdenv 3 + , fetchpatch 4 , fetchurl 5 , tzdata 6 , iana-etc ··· 173 touch $TMPDIR/group $TMPDIR/hosts $TMPDIR/passwd 174 ''; 175 176 + patches = let 177 + fetchBase64Patch = args: (fetchpatch args).overrideAttrs (o: { 178 + postFetch = "mv $out p; base64 -d p > $out; " + o.postFetch; 179 + }); 180 + in [ 181 ./remove-tools-1.11.patch 182 ./ssl-cert-file-1.16.patch 183 ./remove-test-pie-1.15.patch ··· 187 ./skip-nohup-tests.patch 188 ./skip-cgo-tests-1.15.patch 189 ./go_no_vendor_checks-1.16.patch 190 + 191 + # https://go-review.googlesource.com/c/go/+/417615/ 192 + (fetchBase64Patch { 193 + url = "https://go-review.googlesource.com/changes/go~417615/revisions/3/patch"; 194 + sha256 = "sha256-Gu5eZUwGGch7et75A/BNynbs4VlQUBClVUxjxPkdjOs="; 195 + }) 196 ]; 197 198 postPatch = ''