Fix for go tools called from make #568

6543 merged 9 commits from RivenSkaye/tea-cli:toolsfix into main 2023-08-21 22:01:17 +00:00
2 changed files with 8 additions and 7 deletions

.gitignore vendored
View File

@ -1,5 +1,6 @@

View File

@ -67,15 +67,15 @@ vet:
.PHONY: lint
lint: install-lint-tools
revive -config .revive.toml ./... || exit 1
$(GO) run -config .revive.toml ./... || exit 1
.PHONY: misspell-check
misspell-check: install-lint-tools
misspell -error -i unknwon,destory $(GOFILES)
$(GO) run -error -i unknwon,destory $(GOFILES)
.PHONY: misspell
misspell: install-lint-tools
misspell -w -i unknwon $(GOFILES)
$(GO) run -w -i unknwon $(GOFILES)
.PHONY: fmt-check
@ -105,7 +105,7 @@ check: test
.PHONY: install
install: $(SOURCES)
@echo "installing to $(shell $(GO) env GOPATH)/bin/$(EXECUTABLE)"
$(GO) install -v $(BUILDMODE) $(GOFLAGS)
$(GO) install -v $(BUILDMODE) $(GOFLAGS)
.PHONY: build
build: $(EXECUTABLE)
@ -126,11 +126,11 @@ release-dirs:
.PHONY: release-os
CGO_ENABLED=0 gox -verbose -cgo=false $(GOFLAGS) -osarch='!darwin/386 !darwin/arm' -os="windows linux darwin" -arch="386 amd64 arm arm64" -output="$(DIST)/release/tea-$(VERSION)-{{.OS}}-{{.Arch}}"
CGO_ENABLED=0 $(GO) run -verbose -cgo=false $(GOFLAGS) -osarch='!darwin/386 !darwin/arm' -os="windows linux darwin" -arch="386 amd64 arm arm64" -output="$(DIST)/release/tea-$(VERSION)-{{.OS}}-{{.Arch}}"
.PHONY: release-compress
release-compress: install-release-tools
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && $(GO) run -k -9 $${file}; done;
.PHONY: release-check
release-check: install-release-tools