SONIC image build issue, how to change the go get proxy

84 views
Skip to first unread message

Daniel Xu

unread,
Mar 30, 2024, 12:05:40 AM3/30/24
to sonicproject
When I build the SONIC image encountered a problem,  the log messege as follows:


I know this is a GOPROXY issue.  I tried to change the env proxy use the command:

go env -w GOPROXY=https://goproxy.cn,direct

but it did not work. when I rebuild the image , it also the same error.

so how to change the GOPROXY to take effect?

林小浩

unread,
Dec 30, 2024, 11:22:18 PM12/30/24
to sonicproject

Hi, do you still need it? I have solved this problem.

Sachin Holla

unread,
Jan 2, 2025, 12:50:34 AM1/2/25
to sonicproject
Hi, did you try adding the "go env -w" statement in the slave Dockerfile.j2 file? https://github.com/sonic-net/sonic-buildimage/blob/master/sonic-slave-bookworm/Dockerfile.j2#L540

Regards
Sachin

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sonicproject/64d4f41f-9e34-4b7b-afda-d149faccd403n%40googlegroups.com.

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.
Reply all
Reply to author
Forward
0 new messages