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.
 
 
 
 
 
 

43 lines
1.4 KiB

Index: src/cmd/go/internal/cache/default.go
--- src/cmd/go/internal/cache/default.go.orig 2018-03-29 06:28:16.000000000 +0200
+++ src/cmd/go/internal/cache/default.go 2018-04-06 21:16:09.613928000 +0200
@@ -5,7 +5,6 @@
package cache
import (
- "fmt"
"io/ioutil"
"os"
"path/filepath"
@@ -40,7 +39,6 @@
return
}
if err := os.MkdirAll(dir, 0777); err != nil {
- fmt.Fprintf(os.Stderr, "go: disabling cache (%s) due to initialization failure: %s\n", dir, err)
return
}
if _, err := os.Stat(filepath.Join(dir, "README")); err != nil {
@@ -50,7 +48,6 @@
c, err := Open(dir)
if err != nil {
- fmt.Fprintf(os.Stderr, "go: disabling cache (%s) due to initialization failure: %s\n", dir, err)
return
}
defaultCache = c
Index: src/crypto/x509/root_unix.go
--- src/crypto/x509/root_unix.go.orig 2018-03-29 06:28:16.000000000 +0200
+++ src/crypto/x509/root_unix.go 2018-04-06 21:15:51.650128000 +0200
@@ -14,11 +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
+ "@l_prefix@/etc/x509",
}
const (