Since we aren’t admins on our machines, we couldn’t change that setting. ![]() Thanks to Josh Hornsby, I now have a real solution and Go upgrades just work ™! Our IT department had indeed deployed the intermediate certificates to our workstations, but they were set to “Use System Defaults” in the “Trust > When using this certificate” section in Keychain Access: The -insecure flag accommodates our corporate proxy you probably won’t have to do that. Having an old version of godoc bothered me, so I did the following: $ go get -insecure /x/tools If I get around to unraveling the rest of this mystery, I’ll update this post. (buildpath/"src//x/tools").install resource("gotools")Ĭd "src//x/tools/cmd/godoc/" doĪnd everything worked except I have an old version of godoc in my go/bin directory. So I commented out lines 57-66 in the formula: # Build and install godoc Since we don’t have root privileges to install in /usr/local, so that may be the problem but I don’t see how.Īnyway, I could see that Go 1.12 was downloading fine, and the Go bootstrap environment was downloading fine and installing Go, and the problem occurred while installing GoDoc. ![]() Further googling and experimentation netted nothing, so finally I opened Homebrew’s Go installation formula, found at: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/go.rbĪctually, on my work Mac, it’s at: $HOME/.homebrew/Library/Taps/homebrew/homebrew-core/Formula/go.rb Googling uncovered that some packages had moved around, and I saw a note to delete my old Go installation, so I ran: $ brew remove goĪnd I still got the same error. Then, I tried to upgrade my work MacBook Pro, which runs High Sierra and sits behind a proxy and plays victim to corporate man-in-the-middle attacks for all network traffic, which creates all sorts of adventures, with the same command: $ brew upgrade go go: creating new go.mod: module /x/toolsīuild /x/tools/cmd/godoc: cannot load /x/net/context/ctxhttp: cannot find module providing package /x/net/context/ctxhttpĭo not report this issue to Homebrew/brew or Homebrew/core! I upgraded my personal MacBook Pro, which runs Mojave, with: $ brew upgrade go Go 1.12 was released three days ago (Feb 25, 2019).
0 Comments
Leave a Reply. |