mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 08:25:43 +03:00
deps: remove tidy from dev makefile target
With Go modules, `go mod tidy` supplants `vendorfmt`. Unfortunately, `tidy` will try to reach out to the network and download modules, and there is no way to disable that behavior (e.g. the -mod=vendor) option does not apply. This means we cannot use the `tidy` target in nomad enterprise, which will be unable to reach private repositories like consul-enterprise. This isn't a big deal, since `vendorfmt` served the purpose of rewriting the output of `govendor`, wheras `tidy` is a part of the `sync` target that is required to be run when modifying dependencies anyway.
This commit is contained in:
@@ -268,7 +268,7 @@ dev: GOOS=$(shell go env GOOS)
|
||||
dev: GOARCH=$(shell go env GOARCH)
|
||||
dev: GOPATH=$(shell go env GOPATH)
|
||||
dev: DEV_TARGET=pkg/$(GOOS)_$(GOARCH)/nomad
|
||||
dev: tidy changelogfmt hclfmt ## Build for the current development platform
|
||||
dev: changelogfmt hclfmt ## Build for the current development platform
|
||||
@echo "==> Removing old development build..."
|
||||
@rm -f $(PROJECT_ROOT)/$(DEV_TARGET)
|
||||
@rm -f $(PROJECT_ROOT)/bin/nomad
|
||||
|
||||
Reference in New Issue
Block a user