1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge branch 'update-goproxy' of github.com:chenrui333/wtf into chenrui333-update-goproxy

This commit is contained in:
Chris Cummer 2019-11-12 20:24:06 -08:00
commit b53f69b472
7 changed files with 16 additions and 16 deletions

View File

@ -1,6 +1,6 @@
env: env:
- GO111MODULE=on - GO111MODULE=on
- GOPROXY="https://gocenter.io" - GOPROXY="https://proxy.golang.org,direct"
archives: archives:
- id: default - id: default

View File

@ -1,14 +1,14 @@
language: go language: go
go: go:
- "1.12.x"
- "1.13.x" - "1.13.x"
sudo: false
before_install: before_install:
# Make sure travis builds work for forks # Make sure travis builds work for forks
- mkdir -p $TRAVIS_BUILD_DIR $GOPATH/src/github.com/wtfutil - mkdir -p $TRAVIS_BUILD_DIR $GOPATH/src/github.com/wtfutil
- test ! -d $GOPATH/src/github.com/wtfutil/wtf && mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/wtfutil/wtf || true - test ! -d $GOPATH/src/github.com/wtfutil/wtf && mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/wtfutil/wtf || true
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/wtfutil/wtf - export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/wtfutil/wtf
- cd $HOME/gopath/src/github.com/wtfutil/wtf - cd $HOME/gopath/src/github.com/wtfutil/wtf
- export GOPROXY="https://gocenter.io" && export GO111MODULE=on - export GOPROXY="https://proxy.golang.org,direct"
script: go get ./... && ./scripts/check-uncommitted-vendor-files.sh && go test -v github.com/wtfutil/wtf/... script: go get ./... && ./scripts/check-uncommitted-vendor-files.sh && go test -v github.com/wtfutil/wtf/...

View File

@ -4,7 +4,7 @@ RUN apk add --no-cache make ncurses
COPY . $GOPATH/src/github.com/wtfutil/wtf COPY . $GOPATH/src/github.com/wtfutil/wtf
ENV GOPROXY=https://gocenter.io ENV GOPROXY=https://proxy.golang.org,direct
ENV GO111MODULE=on ENV GO111MODULE=on
ENV GOSUMDB=off ENV GOSUMDB=off

View File

@ -18,7 +18,7 @@ endif
# Set go modules to on and use GoCenter for immutable modules # Set go modules to on and use GoCenter for immutable modules
export GO111MODULE = on export GO111MODULE = on
export GOPROXY = https://gocenter.io export GOPROXY = https://proxy.golang.org,direct
# Determines the path to this Makefile # Determines the path to this Makefile
THIS_FILE := $(lastword $(MAKEFILE_LIST)) THIS_FILE := $(lastword $(MAKEFILE_LIST))

View File

@ -93,8 +93,8 @@ and you should be good to go.
If you want to run the build command from within your `$GOPATH`: If you want to run the build command from within your `$GOPATH`:
```bash ```bash
# Set the Go proxy variable to GoCenter # Set the Go proxy
export GOPROXY="https://gocenter.io" export GOPROXY="https://proxy.golang.org,direct"
# Disable the Go checksum database # Disable the Go checksum database
export GOSUMDB=off export GOSUMDB=off
@ -111,8 +111,8 @@ make run
If you want to run the build command from a folder that is not in your `$GOPATH`: If you want to run the build command from a folder that is not in your `$GOPATH`:
```bash ```bash
# Set the Go proxy variable to GoCenter # Set the Go proxy
export GOPROXY="https://gocenter.io" export GOPROXY="https://proxy.golang.org,direct"
go get -u github.com/wtfutil/wtf go get -u github.com/wtfutil/wtf
cd $GOPATH/src/github.com/wtfutil/wtf cd $GOPATH/src/github.com/wtfutil/wtf

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/wtfutil/wtf module github.com/wtfutil/wtf
go 1.12 go 1.13
require ( require (
code.cloudfoundry.org/bytefmt v0.0.0-20190819182555-854d396b647c code.cloudfoundry.org/bytefmt v0.0.0-20190819182555-854d396b647c

View File

@ -2,7 +2,7 @@
set -euo pipefail set -euo pipefail
GOPROXY="https://gocenter.io" GOSUMDB=off GO111MODULE=on go mod tidy GOPROXY="https://proxy.golang.org,direct" GOSUMDB=off GO111MODULE=on go mod tidy
untracked_files=$(git ls-files --others --exclude-standard | wc -l) untracked_files=$(git ls-files --others --exclude-standard | wc -l)