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-04 13:24:46 -06:00
|
|
|
# stderr: build
|
|
|
|
# echo "writing to /tmp/guireleaser.stderr"
|
|
|
|
# ./guireleaser >/tmp/guireleaser.stderr 2>&1
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
curl-setTargetVersion:
|
|
|
|
curl --silent http://localhost:9419/setTargetVersion?version=v0.22.5
|
|
|
|
|
|
|
|
curl-IncrementMinorVersion:
|
|
|
|
curl --silent http://localhost:9419/IncrementMinorVersion?repo=go.wit.com/toolkit/debian
|
|
|
|
|
|
|
|
curl-IncrementRevisonVersion:
|
|
|
|
curl --silent http://localhost:9419/IncrementRevisonVersion?repo=go.wit.com/toolkit/debian
|
|
|
|
|
2024-11-04 08:16:42 -06:00
|
|
|
# report on the release
|
2024-11-04 13:24:46 -06:00
|
|
|
curl-release-list:
|
2024-11-04 08:16:42 -06:00
|
|
|
curl --silent http://localhost:9419/releaselist?readonly=true
|
|
|
|
|
|
|
|
#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-04 13:24:46 -06:00
|
|
|
curl-everything-list:
|
2024-11-04 08:16:42 -06:00
|
|
|
curl --silent http://localhost:9419/list?readonly=true
|