mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 14:16:43 +00:00
[NOD-318] Upgrade everything to Go1.13 (#393)
This commit is contained in:
parent
79c9060909
commit
9647cb3e08
@ -1,5 +1,5 @@
|
|||||||
# -- multistage docker build: stage #1: build stage
|
# -- multistage docker build: stage #1: build stage
|
||||||
FROM golang:1.12-alpine AS build
|
FROM golang:1.13-alpine AS build
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
||||||
|
|
||||||
@ -7,10 +7,6 @@ WORKDIR /go/src/github.com/daglabs/btcd
|
|||||||
|
|
||||||
RUN apk add --no-cache curl git
|
RUN apk add --no-cache curl git
|
||||||
|
|
||||||
# GO111MODULE=on forces Go to use the go-module system
|
|
||||||
# TODO: remove this once Go 1.13 is released
|
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
|
@ -23,19 +23,9 @@ Building or updating from source requires the following build dependencies:
|
|||||||
|
|
||||||
- **Vgo (Go 1.10 only)**
|
- **Vgo (Go 1.10 only)**
|
||||||
|
|
||||||
The `GO111MODULE` experiment is used to manage project dependencies and
|
|
||||||
provide reproducible builds. The module experiment is provided by the Go 1.11
|
|
||||||
toolchain, but the Go 1.10 toolchain does not provide any module support. To
|
|
||||||
perform module-aware builds with Go 1.10,
|
|
||||||
[vgo](https://godoc.org/golang.org/x/vgo) (a drop-in replacement for the go
|
|
||||||
command) must be used instead.
|
|
||||||
|
|
||||||
To build and install from a checked-out repo, run `go install` in the repo's
|
To build and install from a checked-out repo, run `go install` in the repo's
|
||||||
root directory. Some notes:
|
root directory. Some notes:
|
||||||
|
|
||||||
* Set the `GO111MODULE=on` environment variable if using Go 1.11 and building
|
|
||||||
from within `GOPATH`.
|
|
||||||
|
|
||||||
* Replace `go` with `vgo` when using Go 1.10.
|
* Replace `go` with `vgo` when using Go 1.10.
|
||||||
|
|
||||||
* The `dnsseeder` executable will be installed to `$GOPATH/bin`. `GOPATH`
|
* The `dnsseeder` executable will be installed to `$GOPATH/bin`. `GOPATH`
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -- multistage docker build: stage #1: build stage
|
# -- multistage docker build: stage #1: build stage
|
||||||
FROM golang:1.12-alpine AS build
|
FROM golang:1.13-alpine AS build
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
||||||
|
|
||||||
@ -12,10 +12,6 @@ RUN go get -u golang.org/x/lint/golint \
|
|||||||
github.com/opennota/check/cmd/structcheck \
|
github.com/opennota/check/cmd/structcheck \
|
||||||
github.com/opennota/check/cmd/varcheck
|
github.com/opennota/check/cmd/varcheck
|
||||||
|
|
||||||
# GO111MODULE=on forces Go to use the go-module system
|
|
||||||
# TODO: remove this once Go 1.13 is released
|
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -- multistage docker build: stage #1: build stage
|
# -- multistage docker build: stage #1: build stage
|
||||||
FROM golang:1.12-alpine AS build
|
FROM golang:1.13-alpine AS build
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
||||||
|
|
||||||
@ -12,10 +12,6 @@ RUN go get -u golang.org/x/lint/golint \
|
|||||||
github.com/opennota/check/cmd/structcheck \
|
github.com/opennota/check/cmd/structcheck \
|
||||||
github.com/opennota/check/cmd/varcheck
|
github.com/opennota/check/cmd/varcheck
|
||||||
|
|
||||||
# GO111MODULE=on forces Go to use the go-module system
|
|
||||||
# TODO: remove this once Go 1.13 is released
|
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.12-alpine
|
FROM golang:1.13-alpine
|
||||||
|
|
||||||
ENV PATH="${GOPATH}/bin:${PATH}"
|
ENV PATH="${GOPATH}/bin:${PATH}"
|
||||||
|
|
||||||
@ -12,10 +12,6 @@ RUN apk add --no-cache libc6-compat
|
|||||||
|
|
||||||
RUN go get github.com/derekparker/delve/cmd/dlv
|
RUN go get github.com/derekparker/delve/cmd/dlv
|
||||||
|
|
||||||
# GO111MODULE=on forces Go to use the go-module system
|
|
||||||
# TODO: remove this once Go 1.13 is released
|
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -- multistage docker build: stage #1: build stage
|
# -- multistage docker build: stage #1: build stage
|
||||||
FROM golang:1.12-alpine AS build
|
FROM golang:1.13-alpine AS build
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
||||||
|
|
||||||
@ -7,10 +7,6 @@ WORKDIR /go/src/github.com/daglabs/btcd
|
|||||||
|
|
||||||
RUN apk add --no-cache curl git
|
RUN apk add --no-cache curl git
|
||||||
|
|
||||||
# GO111MODULE=on forces Go to use the go-module system
|
|
||||||
# TODO: remove this once Go 1.13 is released
|
|
||||||
ENV GO111MODULE=on
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user