fix build

This commit is contained in:
Jeff Carr 2024-11-16 00:07:22 -06:00
parent 91356cd753
commit c23cc60000
1 changed files with 4 additions and 2 deletions

View File

@ -12,15 +12,17 @@ no-gui: build
./go-clone --no-gui ./go-clone --no-gui
build: build:
GO111MODULE=off go build -v \ GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install: install:
GO111MODULE=off go install -v \ GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports: goimports:
goimports -w *.go goimports -w *.go
# // to globally reset paths:
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
redomod: redomod:
rm -f go.* rm -f go.*