Skip to content

Commit 9389782

Browse files
committed
fix makefile
1 parent 7cc6eb5 commit 9389782

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export GOSUMDB := off
22
export GOFLAGS := -v -mod=vendor
3-
GOLANGCI_VERSION := v1.55.2
3+
GOLANGCI_VERSION := latest
44

55
default: build
66

@@ -13,12 +13,12 @@ ensure_deps:
1313
cd tools && go mod tidy
1414
cd tools && go mod vendor
1515

16+
# GOFLAGS=-mod=mod: This ensures Go resolves dependencies via the go.mod file
1617
install_devtools:
17-
GOFLAGS= go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_VERSION)
18+
GOFLAGS=-mod=mod go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_VERSION)
1819

1920
clean:
2021
go clean $(MAIN_PKG)
21-
rm -f profile_service
2222

2323
lint:
2424
golangci-lint run ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kunwardeep/paralleltest
22

3-
go 1.23
3+
go 1.23.0
44

55
require golang.org/x/tools v0.31.0
66

0 commit comments

Comments
 (0)