2024-02-28 22:01:32 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
|
2024-02-18 15:09:04 -06:00
|
|
|
all: build
|
2024-04-15 05:05:27 -05:00
|
|
|
./guireleaser --help
|
2024-01-17 01:55:22 -06:00
|
|
|
|
2024-11-04 13:24:46 -06:00
|
|
|
# single: build
|
|
|
|
# ./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run
|
|
|
|
# dump:
|
|
|
|
# ./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run --dump-versions
|
|
|
|
# single-really-do-it: build
|
|
|
|
# ./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser"
|
2024-03-09 22:02:32 -06:00
|
|
|
|
2024-11-05 01:44:24 -06:00
|
|
|
stderr: build
|
|
|
|
echo "writing to /tmp/guireleaser.stderr"
|
|
|
|
./guireleaser >/tmp/guireleaser.stderr 2>&1
|
|
|
|
|
2024-11-05 04:46:59 -06:00
|
|
|
prepare-release:
|
|
|
|
make curl-list-release-notdone
|
2024-11-05 01:44:24 -06:00
|
|
|
make curl-incrementAllTargetVersions
|
2024-11-05 04:46:59 -06:00
|
|
|
make curl-list-release-notdone
|
|
|
|
make curl-whitelist-stuff
|
2024-11-05 01:44:24 -06:00
|
|
|
make curl-findNext
|
|
|
|
make curl-showNext
|
2024-01-15 12:43:08 -06:00
|
|
|
|
2024-01-20 16:09:15 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
# // to globally reset paths:
|
|
|
|
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
|
|
|
|
|
2024-03-03 11:53:33 -06:00
|
|
|
vet:
|
|
|
|
GO111MODULE=off go vet
|
|
|
|
|
2024-01-15 12:43:08 -06:00
|
|
|
build:
|
2024-01-09 15:31:11 -06:00
|
|
|
echo "build it!"
|
2024-02-28 22:01:32 -06:00
|
|
|
GO111MODULE=off go build -v -x -ldflags " \
|
|
|
|
-X main.VERSION=${VERSION}"
|
2024-01-17 01:55:22 -06:00
|
|
|
|
|
|
|
install:
|
2024-01-15 08:11:08 -06:00
|
|
|
go install -v -x
|
2024-01-29 12:51:27 -06:00
|
|
|
guireleaser
|
2024-01-09 01:16:00 -06:00
|
|
|
|
2024-01-15 22:56:21 -06:00
|
|
|
check-git-clean:
|
|
|
|
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
|
|
|
|
|
2024-01-09 01:16:00 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
2024-01-09 09:35:54 -06:00
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
2024-11-04 08:16:42 -06:00
|
|
|
|
|
|
|
curl-help:
|
|
|
|
curl --silent http://localhost:9419/help
|
|
|
|
|
2024-11-05 01:44:24 -06:00
|
|
|
curl-tempWin:
|
|
|
|
curl --silent http://localhost:9419/tempWin
|
|
|
|
|
2024-11-05 04:46:59 -06:00
|
|
|
curl-rescan-All:
|
|
|
|
curl --silent http://localhost:9419/rescanAll
|
|
|
|
|
|
|
|
curl-whitelist-stuff:
|
2024-11-05 03:17:40 -06:00
|
|
|
curl --silent http://localhost:9419/whitelist?repo=go.wit.com/dev/test/gogit2
|
2024-11-05 04:46:59 -06:00
|
|
|
curl --silent http://localhost:9419/whitelist?repo=git.wit.org/jcarr/clone-gitea
|
2024-11-05 03:17:40 -06:00
|
|
|
|
2024-11-04 08:16:42 -06:00
|
|
|
curl-setBranchesToMasterB:
|
|
|
|
curl --silent http://localhost:9419/setBranchesToMasterB
|
|
|
|
|
|
|
|
# report on the release
|
|
|
|
curl-findNext:
|
|
|
|
curl --silent http://localhost:9419/findNext
|
|
|
|
|
2024-11-04 13:24:46 -06:00
|
|
|
curl-showNext:
|
|
|
|
curl --silent http://localhost:9419/showNext
|
|
|
|
|
2024-11-05 04:46:59 -06:00
|
|
|
doRelease:
|
|
|
|
make curl-showNext
|
|
|
|
sleep 10
|
2024-11-05 01:44:24 -06:00
|
|
|
curl --silent http://localhost:9419/doRelease
|
|
|
|
|
|
|
|
curl-setTargetVersion-virtigo-v0.1.1:
|
|
|
|
curl --silent http://localhost:9419/setTargetVersion?version=v0.1.1
|
|
|
|
|
|
|
|
curl-incrementAllTargetVersions:
|
|
|
|
curl --silent http://localhost:9419/setAllTargetVersions
|
2024-11-04 13:24:46 -06:00
|
|
|
|
2024-11-05 03:17:40 -06:00
|
|
|
#curl-IncrementMinorVersion:
|
|
|
|
# curl --silent http://localhost:9419/IncrementMinorVersion?repo=go.wit.com/toolkit/debian
|
2024-11-04 13:24:46 -06:00
|
|
|
|
2024-11-05 03:17:40 -06:00
|
|
|
#curl-IncrementRevisonVersion:
|
|
|
|
# curl --silent http://localhost:9419/IncrementRevisonVersion?repo=go.wit.com/toolkit/debian
|
2024-11-04 13:24:46 -06:00
|
|
|
|
2024-11-04 08:16:42 -06:00
|
|
|
# report on the release
|
2024-11-05 04:46:59 -06:00
|
|
|
curl-list-release-notdone:
|
2024-11-05 01:44:24 -06:00
|
|
|
curl --silent http://localhost:9419/releaseList?readonly=true
|
2024-11-04 08:16:42 -06:00
|
|
|
|
2024-11-05 04:46:59 -06:00
|
|
|
#curl-list-release-real:
|
|
|
|
# curl --silent http://localhost:9419/releaseList?readonly=true?perfect=false
|
2024-11-05 03:17:40 -06:00
|
|
|
|
2024-11-04 08:16:42 -06:00
|
|
|
#curl-doSingleRepo:
|
|
|
|
# curl --silent 'http://localhost:9419/doSingleRepo?repo=go.wit.com/gui&dryrun=false'
|
|
|
|
|
|
|
|
# only show repos that need to be merged to the master branch
|
|
|
|
curl-list-changed:
|
|
|
|
curl --silent http://localhost:9419/list?perfect=false
|
|
|
|
|
|
|
|
# include repos that you probably can't git push commits
|
2024-11-05 04:46:59 -06:00
|
|
|
curl-list-everything:
|
2024-11-04 08:16:42 -06:00
|
|
|
curl --silent http://localhost:9419/list?readonly=true
|
2024-11-05 04:46:59 -06:00
|
|
|
|
|
|
|
curl-file-for-go.wit.com:
|
|
|
|
curl --silent http://localhost:9419/goweblist?readonly=true
|
|
|
|
curl --silent http://localhost:9419/goweblist?readonly=true |sort > ~/go.wit.com.versions
|