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
build:
GO111MODULE=off go build -v \
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE=off go install -v \
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports:
goimports -w *.go
# // to globally reset paths:
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
redomod:
rm -f go.*