mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01:00
multi: remove use of GO111MODULE
The use of the GO111MODULE environment variable doesn't have any effect anymore and hasn't for a couple of versions. The default was set to "on" a while back, so we can remove that variable everywhere.
This commit is contained in:
parent
55ac06b142
commit
c9cda53709
@ -24,7 +24,6 @@ ARG ARCH=amd64
|
|||||||
FROM golang@sha256:c80567372be0d486766593cc722d3401038e2f150a0f6c5c719caa63afb4026a AS build-container
|
FROM golang@sha256:c80567372be0d486766593cc722d3401038e2f150a0f6c5c719caa63afb4026a AS build-container
|
||||||
|
|
||||||
ARG ARCH
|
ARG ARCH
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
ADD . /app
|
ADD . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
10
Makefile
10
Makefile
@ -11,12 +11,12 @@ GOACC_BIN := $(GO_BIN)/go-acc
|
|||||||
LINT_COMMIT := v1.18.0
|
LINT_COMMIT := v1.18.0
|
||||||
GOACC_COMMIT := 80342ae2e0fcf265e99e76bcc4efd022c7c3811b
|
GOACC_COMMIT := 80342ae2e0fcf265e99e76bcc4efd022c7c3811b
|
||||||
|
|
||||||
DEPGET := cd /tmp && GO111MODULE=on go get -v
|
DEPGET := cd /tmp && go get -v
|
||||||
GOBUILD := GO111MODULE=on go build -v
|
GOBUILD := go build -v
|
||||||
GOINSTALL := GO111MODULE=on go install -v
|
GOINSTALL := go install -v
|
||||||
DEV_TAGS := rpctest
|
DEV_TAGS := rpctest
|
||||||
GOTEST_DEV = GO111MODULE=on go test -v -tags=$(DEV_TAGS)
|
GOTEST_DEV = go test -v -tags=$(DEV_TAGS)
|
||||||
GOTEST := GO111MODULE=on go test -v
|
GOTEST := go test -v
|
||||||
|
|
||||||
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ recommended that `GOPATH` is set to a directory in your home directory such as
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd $GOPATH/src/github.com/btcsuite/btcd
|
$ cd $GOPATH/src/github.com/btcsuite/btcd
|
||||||
$ GO111MODULE=on go install -v . ./cmd/...
|
$ go install -v . ./cmd/...
|
||||||
```
|
```
|
||||||
|
|
||||||
- btcd (and utilities) will now be installed in ```$GOPATH/bin```. If you did
|
- btcd (and utilities) will now be installed in ```$GOPATH/bin```. If you did
|
||||||
@ -79,7 +79,7 @@ $ GO111MODULE=on go install -v . ./cmd/...
|
|||||||
```bash
|
```bash
|
||||||
$ cd $GOPATH/src/github.com/btcsuite/btcd
|
$ cd $GOPATH/src/github.com/btcsuite/btcd
|
||||||
$ git pull
|
$ git pull
|
||||||
$ GO111MODULE=on go install -v . ./cmd/...
|
$ go install -v . ./cmd/...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
@ -54,7 +54,7 @@ recommended that `GOPATH` is set to a directory in your home directory such as
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/btcsuite/btcd $GOPATH/src/github.com/btcsuite/btcd
|
git clone https://github.com/btcsuite/btcd $GOPATH/src/github.com/btcsuite/btcd
|
||||||
cd $GOPATH/src/github.com/btcsuite/btcd
|
cd $GOPATH/src/github.com/btcsuite/btcd
|
||||||
GO111MODULE=on go install -v . ./cmd/...
|
go install -v . ./cmd/...
|
||||||
```
|
```
|
||||||
|
|
||||||
* btcd (and utilities) will now be installed in ```$GOPATH/bin```. If you did
|
* btcd (and utilities) will now be installed in ```$GOPATH/bin```. If you did
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd $GOPATH/src/github.com/btcsuite/btcd
|
cd $GOPATH/src/github.com/btcsuite/btcd
|
||||||
git pull && GO111MODULE=on go install -v . ./cmd/...
|
git pull && go install -v . ./cmd/...
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user