You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1.1 KiB

Index: src/cmd/go/internal/modfetch/fetch.go
--- src/cmd/go/internal/modfetch/fetch.go.orig 2020-04-08 21:15:51.000000000 +0200
+++ src/cmd/go/internal/modfetch/fetch.go 2020-04-10 09:10:15.452582000 +0200
@@ -142,11 +142,6 @@
return "", err
}
- if !cfg.ModCacheRW {
- // Make dir read-only only *after* renaming it.
- // os.Rename was observed to fail for read-only directories on macOS.
- makeDirsReadOnly(dir)
- }
return dir, nil
}
Index: src/crypto/x509/root_unix.go
--- src/crypto/x509/root_unix.go.orig 2020-04-08 21:15:51.000000000 +0200
+++ src/crypto/x509/root_unix.go 2020-04-10 01:13:14.970917000 +0200
@@ -14,12 +14,7 @@
// Possible directories with certificate files; stop after successfully
// reading at least one file from a directory.
var certDirectories = []string{
- "/etc/ssl/certs", // SLES10/SLES11, https://golang.org/issue/12139
- "/system/etc/security/cacerts", // Android
- "/usr/local/share/certs", // FreeBSD
- "/etc/pki/tls/certs", // Fedora/RHEL
- "/etc/openssl/certs", // NetBSD
- "/var/ssl/certs", // AIX
+ "@l_prefix@/etc/x509",
}
const (