Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
36b8e8a5
Commit
36b8e8a5
authored
Jun 10, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use goproxy.io to replace the default proxy.golang.org
parent
33c32d56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
component/golang/buildout.cfg
component/golang/buildout.cfg
+4
-4
No files found.
component/golang/buildout.cfg
View file @
36b8e8a5
...
@@ -80,7 +80,7 @@ md5sum = dc57f93f323e9f8189e5ffc1f223e346
...
@@ -80,7 +80,7 @@ md5sum = dc57f93f323e9f8189e5ffc1f223e346
# go1.17 needs go1.4 to bootstrap
# go1.17 needs go1.4 to bootstrap
environment-extra =
environment-extra =
GOROOT_BOOTSTRAP=${golang14:location}
GOROOT_BOOTSTRAP=${golang14:location}
GOPROXY=
off
GOPROXY=
https://goproxy.io
# ---- infrastructure to build Go workspaces / projects ----
# ---- infrastructure to build Go workspaces / projects ----
...
@@ -192,7 +192,7 @@ command = bash -c ". ${gowork:env.sh}
...
@@ -192,7 +192,7 @@ command = bash -c ". ${gowork:env.sh}
# external module, e.g. golang.org/x/tools/gopls@v0.4.3
# external module, e.g. golang.org/x/tools/gopls@v0.4.3
*@*)
*@*)
echo GOMOD \$x
echo GOMOD \$x
GO111MODULE=on GOPROXY=
off
go install ${gowork:buildflags} -v \$x
GO111MODULE=on GOPROXY=
https://goproxy.io
go install ${gowork:buildflags} -v \$x
;;
;;
# locally-cloned module source, e.g. <module-src-location>:./...
# locally-cloned module source, e.g. <module-src-location>:./...
...
@@ -200,13 +200,13 @@ command = bash -c ". ${gowork:env.sh}
...
@@ -200,13 +200,13 @@ command = bash -c ". ${gowork:env.sh}
echo GOMODSRC \$x
echo GOMODSRC \$x
dir=\"\$${x%%:*}\"
dir=\"\$${x%%:*}\"
arg=\"\$${x#*:}\"
arg=\"\$${x#*:}\"
(cd \$dir && GO111MODULE=on GOPROXY=
off
go install ${gowork:buildflags} -v \$arg)
(cd \$dir && GO111MODULE=on GOPROXY=
https://goproxy.io
go install ${gowork:buildflags} -v \$arg)
;;
;;
# non-module
# non-module
*)
*)
echo GOPKG \$x
echo GOPKG \$x
GO111MODULE=off GOPROXY=
off
go install ${gowork:buildflags} -v \$x
GO111MODULE=off GOPROXY=
https://goproxy.io
go install ${gowork:buildflags} -v \$x
;;
;;
esac
esac
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment