This repository has been archived on 2022-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
3 changed files with
6 additions and
2 deletions
|
|
|
@ -8,4 +8,4 @@ go get golang.org/x/lint/golint
|
|
|
|
|
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
|
|
|
|
|
go get github.com/fzipp/gocyclo/cmd/gocyclo
|
|
|
|
|
|
|
|
|
|
./scripts/lint.sh
|
|
|
|
|
/bin/sh ./scripts/lint.sh
|
|
|
|
|
|
|
|
@ -7,7 +7,11 @@ COPY go.mod .
|
|
|
|
|
COPY go.sum .
|
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 sh .buildkite/lint.sh
|
|
|
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o rageshake
|
|
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# check the go source for lint. This is run by CI, and the pre-commit hook.
|
|
|
|
|
|
|
|
|
|