diff --git a/.bingo/Variables.mk b/.bingo/Variables.mk index 49a847f..3916770 100644 --- a/.bingo/Variables.mk +++ b/.bingo/Variables.mk @@ -1,4 +1,4 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.2. DO NOT EDIT. +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.3. DO NOT EDIT. # All tools are designed to be build inside $GOBIN. GOPATH ?= $(shell go env GOPATH) GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin @@ -20,35 +20,35 @@ COPYRIGHT := $(GOBIN)/copyright-v0.9.0 $(COPYRIGHT): .bingo/copyright.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. @echo "(re)installing $(GOBIN)/copyright-v0.9.0" - @cd .bingo && $(GO) build -modfile=copyright.mod -o=$(GOBIN)/copyright-v0.9.0 "github.com/bwplotka/flagarize/scripts/copyright" + @cd .bingo && $(GO) build -mod=mod -modfile=copyright.mod -o=$(GOBIN)/copyright-v0.9.0 "github.com/bwplotka/flagarize/scripts/copyright" EMBEDMD := $(GOBIN)/embedmd-v1.0.0 $(EMBEDMD): .bingo/embedmd.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. @echo "(re)installing $(GOBIN)/embedmd-v1.0.0" - @cd .bingo && $(GO) build -modfile=embedmd.mod -o=$(GOBIN)/embedmd-v1.0.0 "github.com/campoy/embedmd" + @cd .bingo && $(GO) build -mod=mod -modfile=embedmd.mod -o=$(GOBIN)/embedmd-v1.0.0 "github.com/campoy/embedmd" FAILLINT := $(GOBIN)/faillint-v1.5.0 $(FAILLINT): .bingo/faillint.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. @echo "(re)installing $(GOBIN)/faillint-v1.5.0" - @cd .bingo && $(GO) build -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.5.0 "github.com/fatih/faillint" + @cd .bingo && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.5.0 "github.com/fatih/faillint" GOIMPORTS := $(GOBIN)/goimports-v0.0.0-20200519204825-e64124511800 $(GOIMPORTS): .bingo/goimports.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200519204825-e64124511800" - @cd .bingo && $(GO) build -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200519204825-e64124511800 "golang.org/x/tools/cmd/goimports" + @cd .bingo && $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200519204825-e64124511800 "golang.org/x/tools/cmd/goimports" GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.26.0 $(GOLANGCI_LINT): .bingo/golangci-lint.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. @echo "(re)installing $(GOBIN)/golangci-lint-v1.26.0" - @cd .bingo && $(GO) build -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.26.0 "github.com/golangci/golangci-lint/cmd/golangci-lint" + @cd .bingo && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.26.0 "github.com/golangci/golangci-lint/cmd/golangci-lint" MISSPELL := $(GOBIN)/misspell-v0.3.4 $(MISSPELL): .bingo/misspell.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. @echo "(re)installing $(GOBIN)/misspell-v0.3.4" - @cd .bingo && $(GO) build -modfile=misspell.mod -o=$(GOBIN)/misspell-v0.3.4 "github.com/client9/misspell/cmd/misspell" + @cd .bingo && $(GO) build -mod=mod -modfile=misspell.mod -o=$(GOBIN)/misspell-v0.3.4 "github.com/client9/misspell/cmd/misspell" diff --git a/.bingo/variables.env b/.bingo/variables.env index 39e6280..86836b0 100644 --- a/.bingo/variables.env +++ b/.bingo/variables.env @@ -1,4 +1,4 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.2. DO NOT EDIT. +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.3. DO NOT EDIT. # All tools are designed to be build inside $GOBIN. # Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. GOBIN=${GOBIN:=$(go env GOBIN)} diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index fb35eb5..dea8001 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -209,7 +209,7 @@ func (r *runnable) Build(pkg, outPath string) error { r.dir, r.modFile, append( - []string{"build", "-i", "-o=" + outPath}, pkg, + []string{"build", "-o=" + outPath}, pkg, )..., ) } diff --git a/pkg/runner/runner_test.go b/pkg/runner/runner_test.go index 3fa9e0f..2cc6d93 100644 --- a/pkg/runner/runner_test.go +++ b/pkg/runner/runner_test.go @@ -34,10 +34,9 @@ func TestIsSupportedVersion(t *testing.T) { if tcase.err != nil { testutil.NotOk(t, err) testutil.Equals(t, tcase.err.Error(), err.Error()) - } else { - testutil.Ok(t, err) + return } - + testutil.Ok(t, err) }) } }