Fix for go tools called from make #568
@ -8,7 +8,7 @@ labels:
|
||||
|
||||
### describe your environment
|
||||
- tea version used (`tea -v`):
|
||||
- [ ] I also reproduced the issue [with the latest master build](https://dl.gitea.io/tea/master)
|
||||
- [ ] I also reproduced the issue [with the latest master build](https://dl.gitea.com/tea/main/)
|
||||
- Gitea version used:
|
||||
- [ ] the issue only occurred after updating gitea recently
|
||||
- operating system:
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
tea
|
||||
/gitea-vet
|
||||
/gitea-vet[.exe]
|
||||
|
||||
.idea/
|
||||
.history/
|
||||
|
6
Makefile
6
Makefile
@ -36,8 +36,10 @@ SOURCES ?= $(shell find . -name "*.go" -type f)
|
||||
# OS specific vars.
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := tea.exe
|
||||
VET_TOOL := gitea-vet.exe
|
||||
else
|
||||
EXECUTABLE := tea
|
||||
VET_TOOL := gitea-vet
|
||||
ifneq ($(shell uname -s), OpenBSD)
|
||||
override BUILDMODE := -buildmode=pie
|
||||
endif
|
||||
@ -61,7 +63,7 @@ vet:
|
||||
$(GO) vet $(PACKAGES)
|
||||
# Custom vet
|
||||
$(GO) build code.gitea.io/gitea-vet
|
||||
$(GO) vet -vettool=gitea-vet $(PACKAGES)
|
||||
$(GO) vet -vettool=$(VET_TOOL) $(PACKAGES)
|
||||
|
||||
.PHONY: lint
|
||||
lint: install-lint-tools
|
||||
@ -120,7 +122,7 @@ release: release-dirs install-release-tools release-os release-compress release-
|
||||
|
||||
.PHONY: release-dirs
|
||||
release-dirs:
|
||||
mkdir -p $(DIST)/binaries $(DIST)/release
|
||||
mkdir -p $(DIST)/release
|
||||
|
||||
.PHONY: release-os
|
||||
release-os:
|
||||
|
Loading…
Reference in New Issue
Block a user