-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tronje Krop <[email protected]>
- Loading branch information
Tronje Krop
authored
Feb 20, 2024
1 parent
e1315e8
commit 68ee813
Showing
7 changed files
with
42 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,16 @@ else | |
$(warning warning: please customize variables in Makefile.vars) | ||
endif | ||
|
||
# Setup desired go compiler environemt or defaults. | ||
# Setup default go compiler environment. | ||
export GO ?= go | ||
ifndef GOSETUP | ||
export GOBIN ?= $(shell $(GO) env GOPATH)/bin | ||
else ifeq ($(GOSETUP),local) | ||
export GOBIN := $(DIR_BUILD)/bin | ||
export PATH := $(GOBIN):$(PATH) | ||
else | ||
$(error error: unsupported go setup ($(GOSETUP))) | ||
endif | ||
|
||
export GOPATH ?= $(shell $(GO) env GOPATH) | ||
export GOBIN ?= $(GOPATH)/bin | ||
# Setup go-make to utilize desired build and config scripts. | ||
GOMAKE_DEP ?= github.com/tkrop/[email protected].43 | ||
GOMAKE_DEP ?= github.com/tkrop/[email protected].58 | ||
# Request targets from go-make targets target. | ||
TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \ | ||
go install $(GOMAKE_DEP) >/dev/stderr && \ | ||
$(GOBIN)/go-make targets 2>/dev/null) | ||
$(GO) install $(GOMAKE_DEP) >/dev/stderr && \ | ||
$(GOBIN)/go-make show-targets 2>/dev/null) | ||
# Declare all targets phony to make them available for auto-completion. | ||
.PHONY:: $(TARGETS) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
module github.com/tkrop/go-testing | ||
|
||
go 1.21 | ||
|
||
toolchain go1.21.6 | ||
go 1.22.0 | ||
|
||
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-20240119083558-1b970713d09a | ||
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a | ||
golang.org/x/text v0.13.0 | ||
golang.org/x/tools v0.17.0 | ||
golang.org/x/tools v0.18.0 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect | ||
github.com/kr/pretty v0.3.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/mod v0.14.0 // indirect | ||
golang.org/x/mod v0.15.0 // indirect | ||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters