Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2025-01-06 07:28:25 -06:00
parent 35bec795e7
commit ef53783030
4 changed files with 22 additions and 14 deletions

View File

@ -4,3 +4,6 @@ all:
make -C zoopb-example make -C zoopb-example
make -C testGui make -C testGui
make -C going2git # actually builds against git2go using libgit2 v1.8.4 make -C going2git # actually builds against git2go using libgit2 v1.8.4
clean:
rm -f go.*

View File

@ -3,6 +3,9 @@ package main
import ( import (
"gocloud.dev/blob" "gocloud.dev/blob"
// _ "gocloud.dev/blob/<driver>" // _ "gocloud.dev/blob/<driver>"
_ "github.com/go-sql-driver/mysql"
"context" "context"
"fmt" "fmt"

View File

@ -4,7 +4,12 @@ BUILDTIME = $(shell date +%s)
all: build all: build
build: goimports build: goimports go.mod
go build -v upload.go
go build -v download.go
go build -v main.go
raw:
GO111MODULE=off go build -v \ GO111MODULE=off go build -v \
-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}"
@ -16,13 +21,10 @@ goimports:
# // to globally reset paths: # // to globally reset paths:
# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go # // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
gocui: build go.mod:
reset go mod init
./go-clone-test --gui gocui go mod tidy
install: goimports clean:
GO111MODULE=off go install \ rm -f go.*
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" rm -f upload download main
force: build
./go-clone-test --force