Skip to content

Commit

Permalink
set version for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Oct 24, 2019
1 parent b810d62 commit 102b210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contrib:

# for manual building only
deps:
cd /tmp && GO111MODULE=on go get -u github.com/golangci/golangci-lint@v1.21.0
cd /tmp && rm -rf golangci-lint && git clone --quiet -b 'v1.21.0' --single-branch --depth 1 https://github.com/golangci/golangci-lint &> /dev/null && cd golangci-lint/cmd/golangci-lint && go install
cd /tmp && go get golang.org/x/tools/cmd/goimports

build-ci: off
Expand Down
2 changes: 1 addition & 1 deletion tools/create-artifacts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func main() {
out := fmt.Sprintf("./dist/%s_%s_%s_%s", bin, *version, o, arch)
args := []string{"build", "-mod=vendor", "-o", out, "-ldflags", ldFlags, "./cmd/" + bin}
cmd := exec.Command("go", args...)
cmd.Env = append(os.Environ())
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, []string{"GOOS=" + o, "GOARCH=" + arch}...)
cmd.Dir = "." // root of the repo
run(cmd)
Expand Down

0 comments on commit 102b210

Please sign in to comment.