File tree 15 files changed +131
-111
lines changed
15 files changed +131
-111
lines changed Original file line number Diff line number Diff line change 1
1
dist : xenial
2
2
3
3
language : go
4
- go : " 1.13 .x"
4
+ go : " 1.14 .x"
5
5
go_import_path : /skaffold
6
6
7
7
git :
42
42
- $HOME/.cache/go-build
43
43
- os : windows
44
44
name : " Windows unit"
45
- env :
46
- - GO111MODULE=on
47
- - GOFLAGS="-mod=vendor"
48
45
script :
49
46
- go test -short -timeout 60s ./...
50
47
cache :
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This doc explains the development workflow so you can get started
9
9
You must install these tools:
10
10
11
11
1 . [ ` go ` ] ( https://golang.org/doc/install ) : The language skaffold is
12
- built in (version >= go 1.13 )
12
+ built in (version >= go 1.14 )
13
13
1 . [ ` git ` ] ( https://help.github.com/articles/set-up-git/ ) : For source control
14
14
1 . [ ` make ` ] ( https://www.gnu.org/software/make/ ) : For building skaffold.
15
15
1 . [ ` golangci-lint ` ] ( https://github.com/golangci/golangci-lint ) : You can use the
Original file line number Diff line number Diff line change @@ -41,11 +41,6 @@ ifeq "$(strip $(VERSION))" ""
41
41
override VERSION = $(shell git describe --always --tags --dirty)
42
42
endif
43
43
44
- # Force using Go Modules and always read the dependencies from
45
- # the `vendor` folder.
46
- export GO111MODULE = on
47
- export GOFLAGS = -mod=vendor
48
-
49
44
LDFLAGS_linux = -static
50
45
LDFLAGS_darwin =
51
46
LDFLAGS_windows =
@@ -84,7 +79,6 @@ $(BUILD_DIR)/$(PROJECT)-%-$(GOARCH): $(STATIK_FILES) $(GO_FILES) $(BUILD_DIR) de
84
79
docker build \
85
80
--build-arg GOOS=$* \
86
81
--build-arg GOARCH=$(GOARCH ) \
87
- --build-arg GOFLAGS=" $( GOFLAGS) " \
88
82
--build-arg TAGS=$(GO_BUILD_TAGS_$(* ) ) \
89
83
--build-arg LDFLAGS=$(GO_LDFLAGS_$(* ) ) \
90
84
-f deploy/cross/Dockerfile \
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ VERSION_PACKAGE = $(REPOPATH)/pkg/diag/version
21
21
22
22
TEST_PACKAGES := $(shell go list ./pkg/diag/...)
23
23
24
- # Force using Go Modules and always read the dependencies from
25
- # the `vendor` folder.
26
- export GO111MODULE = on
27
- export GOFLAGS = -mod=vendor
28
-
29
24
$(BUILD_DIR):
30
25
mkdir -p $(BUILD_DIR)
31
26
Original file line number Diff line number Diff line change 14
14
15
15
FROM dockercore/golang-cross:1.13.8 as base
16
16
17
+ # The base image is not yet available for go 1.14.
18
+ # Let's just replace the Go that's installed with a newer one.
19
+ RUN rm -Rf /usr/local/go && mkdir /usr/local/go
20
+ RUN curl --fail --show-error --silent --location https://dl.google.com/go/go1.14.linux-amd64.tar.gz \
21
+ | tar xz --directory=/usr/local/go --strip-components=1
22
+
17
23
# Cross compile Skaffold for Linux, Windows and MacOS
18
24
ARG GOOS
19
25
ARG GOARCH
20
- ARG GOFLAGS
21
26
ARG TAGS
22
27
ARG LDFLAGS
23
28
24
29
WORKDIR /skaffold
25
30
COPY . ./
26
31
RUN if [ "$GOOS" = "darwin" ]; then export CC=o64-clang CXX=o64-clang++; fi; \
27
- GOOS=$GOOS GOARCH=$GOARCH GOFLAGS=$GOFLAGS CGO_ENABLED=1 \
32
+ GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=1 \
28
33
go build -tags "${TAGS}" -ldflags "${LDFLAGS}" -o /build/skaffold ./cmd/skaffold
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# This base image has to be updated manually after running `make build_deps`
16
- FROM gcr.io/k8s-skaffold/build_deps:d414a205df8d8307c92eff8e577cbf2691e46a34 as builder
16
+ FROM gcr.io/k8s-skaffold/build_deps:28bbb2cbb0f23cc7a8af602c0513b3bcd74aa911 as builder
17
17
WORKDIR /skaffold
18
18
COPY . .
19
19
Original file line number Diff line number Diff line change @@ -106,5 +106,5 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-sugge
106
106
jq \
107
107
apt-transport-https && \
108
108
rm -rf /var/lib/apt/lists/*
109
- COPY --from=golang:1.13 /usr/local/go /usr/local/go
109
+ COPY --from=golang:1.14 /usr/local/go /usr/local/go
110
110
ENV PATH /usr/local/go/bin:/root/go/bin:$PATH
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ COPY --from=download-docsy /docsy ./themes/docsy
44
44
COPY --from=download-hugo /hugo /usr/local/bin/
45
45
COPY --from=download-kubectl /kubectl /usr/local/bin/
46
46
47
- FROM golang:1.13 as webhook
47
+ FROM golang:1.14 as webhook
48
48
WORKDIR /skaffold
49
49
COPY . .
50
50
RUN go build -mod=vendor -o /webhook webhook/webhook.go
Original file line number Diff line number Diff line change 1
1
module github.com/GoogleContainerTools/skaffold
2
2
3
- go 1.13
3
+ go 1.14
4
4
5
5
replace (
6
6
github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.0.1+incompatible
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -30,7 +30,5 @@ IF "%DIRTY" == "" SET TREE=clean ELSE SET TREE=dirty
30
30
FOR /F " tokens=*" %%a in ('git rev-parse HEAD') do SET COMMIT = %%a
31
31
for /f %%a in ('powershell -Command " Get-Date -format yyyy_MM_dd__HH_mm_ss" ') do set BUILD_DATE = %%a
32
32
set FLAG_LDFLAGS = " -X github.com/GoogleContainerTools/skaffold/pkg/skaffold/version.version=%VERSION% -X github.com/GoogleContainerTools/skaffold/pkg/skaffold/version.buildDate='%BUILD_DATE% ' -X github.com/GoogleContainerTools/skaffold/pkg/skaffold/version.gitCommit=%COMMIT% -X github.com/GoogleContainerTools/skaffold/pkg/skaffold/version.gitTreeState=%TREE% -extldflags \" \" "
33
- set GO111MODULE = on
34
- set GOFLAGS = -mod=vendor
35
33
36
34
go build -ldflags %FLAG_LDFLAGS% -o out/skaffold.exe github.com/GoogleContainerTools/skaffold/cmd/skaffold
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ elif ! [ -x "$(command -v ${LICENSES})" ]; then
34
34
# from a dependency.
35
35
echo " Installing go-licenses"
36
36
pushd $( mktemp -d)
37
- go mod init tmp; GOBIN=${BIN} go get -mod= ' ' github.com/google/go-licenses
37
+ go mod init tmp; GOBIN=${BIN} go get github.com/google/go-licenses
38
38
popd
39
39
fi
40
40
Original file line number Diff line number Diff line change 1
1
module tools
2
2
3
- go 1.13
3
+ go 1.14
4
4
5
5
require (
6
6
github.com/corneliusweig/release-notes v0.0.0-20191014214505-0be5c7c66752
Original file line number Diff line number Diff line change 1
1
# github.com/corneliusweig/release-notes v0.0.0-20191014214505-0be5c7c66752
2
+ ## explicit
2
3
github.com/corneliusweig/release-notes
3
4
# github.com/golang/protobuf v1.2.0
4
5
github.com/golang/protobuf/proto
@@ -11,6 +12,7 @@ github.com/inconshreveable/mousetrap
11
12
# github.com/konsorten/go-windows-terminal-sequences v1.0.1
12
13
github.com/konsorten/go-windows-terminal-sequences
13
14
# github.com/rakyll/statik v0.1.6
15
+ ## explicit
14
16
github.com/rakyll/statik
15
17
# github.com/sirupsen/logrus v1.4.2
16
18
github.com/sirupsen/logrus
You can’t perform that action at this time.
0 commit comments