Skip to content

Commit c97e4e1

Browse files
committed
Update goproxy to default proxy.golang.org
1 parent f873bae commit c97e4e1

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
env:
22
- GO111MODULE=on
3-
- GOPROXY="https://gocenter.io"
3+
- GOPROXY="https://proxy.golang.org,direct"
44

55
archives:
66
- id: default

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ before_install:
99
- test ! -d $GOPATH/src/github.com/wtfutil/wtf && mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/wtfutil/wtf || true
1010
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/wtfutil/wtf
1111
- cd $HOME/gopath/src/github.com/wtfutil/wtf
12-
- export GOPROXY="https://gocenter.io" && export GO111MODULE=on
12+
- export GOPROXY="https://proxy.golang.org,direct" && export GO111MODULE=on
1313

1414
script: go get ./... && ./scripts/check-uncommitted-vendor-files.sh && go test -v github.com/wtfutil/wtf/...

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apk add --no-cache make ncurses
44

55
COPY . $GOPATH/src/github.com/wtfutil/wtf
66

7-
ENV GOPROXY=https://gocenter.io
7+
ENV GOPROXY=https://proxy.golang.org,direct
88
ENV GO111MODULE=on
99
ENV GOSUMDB=off
1010

@@ -14,4 +14,4 @@ ENV PATH=$PATH:./bin
1414

1515
RUN make build
1616

17-
ENTRYPOINT "wtfutil"
17+
ENTRYPOINT "wtfutil"

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif
1818

1919
# Set go modules to on and use GoCenter for immutable modules
2020
export GO111MODULE = on
21-
export GOPROXY = https://gocenter.io
21+
export GOPROXY = https://proxy.golang.org,direct
2222

2323
# Determines the path to this Makefile
2424
THIS_FILE := $(lastword $(MAKEFILE_LIST))
@@ -59,4 +59,4 @@ test: build
5959
go test ./...
6060

6161
uninstall:
62-
@rm ~/go/bin/wtfutil
62+
@rm ~/go/bin/wtfutil

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ and you should be good to go.
9393
If you want to run the build command from within your `$GOPATH`:
9494

9595
```bash
96-
# Set the Go proxy variable to GoCenter
97-
export GOPROXY="https://gocenter.io"
96+
# Set the Go proxy
97+
export GOPROXY="https://proxy.golang.org,direct"
9898

9999
# Disable the Go checksum database
100100
export GOSUMDB=off
@@ -111,8 +111,8 @@ make run
111111
If you want to run the build command from a folder that is not in your `$GOPATH`:
112112

113113
```bash
114-
# Set the Go proxy variable to GoCenter
115-
export GOPROXY="https://gocenter.io"
114+
# Set the Go proxy
115+
export GOPROXY="https://proxy.golang.org,direct"
116116

117117
go get -u github.com/wtfutil/wtf
118118
cd $GOPATH/src/github.com/wtfutil/wtf
@@ -147,7 +147,7 @@ Find #wtfutil on https://gophers.slack.com/ and join us.
147147

148148
### Twitter
149149

150-
Also, follow [on Twitter](https://twitter.com/wtfutil) for news and latest updates.
150+
Also, follow [on Twitter](https://twitter.com/wtfutil) for news and latest updates.
151151

152152
## Documentation
153153

@@ -182,7 +182,7 @@ If there is a bug that you really need to have fixed or a feature you really wan
182182

183183
## Contributing to the Source Code
184184

185-
First, please read [Talk, then code](https://dave.cheney.net/2019/02/18/talk-then-code) by Dave Cheney. It's great advice and will often save a lot of time and effort.
185+
First, please read [Talk, then code](https://dave.cheney.net/2019/02/18/talk-then-code) by Dave Cheney. It's great advice and will often save a lot of time and effort.
186186

187187
Next, please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.
188188

scripts/check-uncommitted-vendor-files.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
GOPROXY="https://gocenter.io" GOSUMDB=off GO111MODULE=on go mod tidy
5+
GOPROXY="https://proxy.golang.org,direct" GOSUMDB=off GO111MODULE=on go mod tidy
66

77
untracked_files=$(git ls-files --others --exclude-standard | wc -l)
88

0 commit comments

Comments
 (0)