Skip to content

Commit

Permalink
feat: release version (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: tkrop <[email protected]>
  • Loading branch information
Tronje Krop committed Dec 21, 2023
1 parent 11b3aea commit a9c1d57
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 238 deletions.
12 changes: 0 additions & 12 deletions .gitleaks.toml

This file was deleted.

201 changes: 0 additions & 201 deletions .golangci.yaml

This file was deleted.

31 changes: 10 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
SHELL := /bin/bash

GOBIN ?= $(shell go env GOPATH)/bin
GOMAKE ?= github.com/tkrop/go-make@latest
TARGETS := $(shell command -v go-make >/dev/null || \
go install $(GOMAKE) && go-make targets)


# Include custom variables to modify behavior.
ifneq ("$(wildcard Makefile.vars)","")
include Makefile.vars
else
$(warning warning: please customize variables in Makefile.vars)
endif

GOBIN ?= $(shell go env GOPATH)/bin
GOMAKE ?= github.com/tkrop/[email protected]
TARGETS := $(shell command -v go-make >/dev/null || \
go install $(GOMAKE) && go-make targets)

# Include standard targets from go-make providing group targets as well as
# single target targets. The group target is used to delegate the remaining
# request targets, while the single target can be used to define the
# precondition of custom target.
.PHONY: $(TARGETS) $(addprefix target/,$(TARGETS))
$(eval $(lastwords $(MAKECMDGOALS)):;@:)
$(firstword $(MAKECMDGOALS)):
$(GOBIN)/go-make $(MAKEFLAGS) $(MAKECMDGOALS);
$(addprefix target/,$(TARGETS)): target/%:
$(GOBIN)/go-make $(MAKEFLAGS) $*;

# Declare all targets phony to make them available for auto-completion.
.PHONY: $(TARGETS)

# Include custom targets to extend scripts.
ifneq ("$(wildcard Makefile.ext)","")
include Makefile.ext
endif
# Delegate all targets to go-make in one call.
# TODO: consider solution that does not delegate local goals.
$(firstword $(MAKECMDGOALS) all)::
$(GOBIN)/go-make $(MAKEFLAGS) $(MAKECMDGOALS);
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ module github.com/tkrop/go-testing

go 1.21

toolchain go1.21.0
toolchain go1.21.5

require (
github.com/golang/mock v1.6.0
github.com/h2non/gock v1.2.0
github.com/huandu/go-clone v1.6.0
github.com/stretchr/testify v1.8.4
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb
golang.org/x/exp v0.0.0-20231219180239-dc181d75b848
golang.org/x/text v0.13.0
golang.org/x/tools v0.16.1
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb h1:c0vyKkb6yr3KR7jEfJaOSv4lG7xPkbN6r52aJz1d8a8=
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 h1:+iq7lrkxmFNBM7xx+Rae2W6uyPfhPeDWD+n+JgppptE=
golang.org/x/exp v0.0.0-20231219180239-dc181d75b848/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
Expand Down

0 comments on commit a9c1d57

Please sign in to comment.