Bug 1794110

Summary: Fedora golang sets non-default value for GOPROXY
Product: [Fedora] Fedora Reporter: Gerard Ryan <fedora>
Component: golangAssignee: Jakub Čajka <jcajka>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: amurdaca, deparker, jcajka, lemenkov, renich, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-22 22:55:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gerard Ryan 2020-01-22 16:54:23 UTC
Description of problem:
The default for the GOPROXY environment variable should be "https://proxy.golang.org,direct", but the Go provided by the Fedora RPM has a default of "direct". This might be intentional, I'm just highlighting it in case it's not.

Version-Release number of selected component (if applicable):
golang-1.13.5-1.fc31.x86_64

How reproducible:
100% on F31 at least

Steps to Reproduce:
1. podman run -ti --rm registry.fedoraproject.org/fedora:31 su -c "dnf install -y golang > /dev/null && go env GOPROXY"
2. Note that the output just says "direct"

Actual results:
"direct"

Expected results:
"https://proxy.golang.org,direct"

Additional info:

Comment 1 Jakub Čajka 2020-01-22 17:04:21 UTC
Hello this is intended change to preserve user privacy and has been noted in https://fedoraproject.org/wiki/Changes/golang1.13#Detailed_Description .
Does it break anything for you?

Comment 2 Gerard Ryan 2020-01-22 22:55:59 UTC
Thanks for the quick reply Jakub. It doesn't break anything for us except our initial expectation. I appreciate your choice of default for Fedora :)

I'll close this now, thanks again!