From e3604e558f6bd4dccc96b9bd071223fd8506888f Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Sun, 18 Dec 2022 23:01:59 -0800 Subject: Makefile: Simplify (#62) This simplifies the Makefile significantly, borrowing patterns we've used in other projects. Namely: - Set GOBIN to a bin subdirectory so that we can `go install` dependencies into it. - Use a shared TEST_FLAGS for `make test` and `make cover`. Without this, we're not running with data race detection in CI. - Build lint step out of separate golint and staticcheck steps. In the future, a gofmt step may also be added. - Move tools dependencies into an unpublished subpackage. Note: I didn't mess with the 'clean' and 'run' targets at the bottom of the file even though they're not necessary to avoid a merge conflict with #60. --- tools/go.mod | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/go.mod (limited to 'tools/go.mod') diff --git a/tools/go.mod b/tools/go.mod new file mode 100644 index 0000000..c722bd9 --- /dev/null +++ b/tools/go.mod @@ -0,0 +1,16 @@ +module go.uber.org/sally/tools + +require ( + golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 + honnef.co/go/tools v0.3.3 +) + +require ( + github.com/BurntSushi/toml v1.1.0 // indirect + golang.org/x/exp/typeparams v0.0.0-20220516143420-24438e51023a // indirect + golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect + golang.org/x/sys v0.0.0-20220513210249-45d2b4557a2a // indirect + golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f // indirect +) + +go 1.19 -- cgit v1.2.3