Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Setup name variables for the package/tool
# Setup name variables for the package/tool
PREFIX?=$(shell pwd)

NAME := autocache
Expand All @@ -10,7 +10,7 @@ GO111MODULE=on
CGO_ENABLED := 0
# Set any default go build tags
BUILDTAGS :=
GOLANGCI_VERSION = v1.21.0 # .... for some reason v1.18.0 misses?
GOLANGCI_LINT_VERSION := v1.59.1

.PHONY: all
all: clean build-deps test lint build ## Runs a clean, build, fmt, lint, test, and vet.
Expand Down Expand Up @@ -41,9 +41,7 @@ test: ## Runs the go tests
.PHONY: lint
lint: build-deps ## Verifies `golint` passes.
@echo "==> $@"
@go run github.com/golangci/golangci-lint/cmd/golangci-lint run ./...


@go run github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) run ./...
.PHONY: cover
cover: ## Runs go test with coverage
@echo "" > coverage.txt
Expand Down
31 changes: 31 additions & 0 deletions _example/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module example

go 1.21

require (
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8
github.com/pomerium/autocache v0.0.0
golang.org/x/crypto v0.32.0
)

require (
github.com/armon/go-metrics v0.4.1 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-metrics v0.5.4 // indirect
github.com/hashicorp/go-msgpack/v2 v2.1.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/memberlist v0.5.3 // indirect
github.com/miekg/dns v1.1.35 // indirect
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sys v0.29.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/pomerium/autocache => ..
Loading
Loading