-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from golang-cz/update_to_latest_version
update to latest go 1.21.0
- Loading branch information
Showing
223 changed files
with
4,122 additions
and
1,958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# stage 1 building the code | ||
FROM golang:1.20 as builder | ||
FROM golang:1.21 as builder | ||
|
||
COPY / /golangci | ||
WORKDIR /golangci | ||
RUN CGO_ENABLED=1 go build -trimpath -ldflags "-s -w -X main.version=master -X main.commit=master -X main.date=custom" -o golangci-lint ./cmd/golangci/main.go | ||
RUN CGO_ENABLED=1 go build -trimpath -ldflags "-s -w" -buildmode=plugin -o wrap-err-checker.so ./cmd/plugin/plugin.go | ||
|
||
# stage 2 | ||
FROM golang:1.20 | ||
FROM golang:1.21 | ||
# related to https://github.com/golangci/golangci-lint/issues/3107 | ||
ENV GOROOT /usr/local/go | ||
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume | ||
COPY --from=builder /golangci/golangci-lint /usr/bin/ | ||
COPY --from=builder /golangci/wrap-err-checker.so /usr/bin/ | ||
CMD ["golangci-lint"] | ||
CMD ["golangci-lint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vendor: | ||
go mod tidy && go mod vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.