Skip to content

Commit 0d07cb4

Browse files
committed
Use jsonv2 in test
1 parent 4e607f8 commit 0d07cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ release: goreleaser clean-phar internal/legacy/archives/platform.phar php ## Rel
8888
VERSION=$(VERSION) bash cloudsmith.sh
8989

9090
.PHONY: test
91+
# "We encourage users of encoding/json to test their programs with GOEXPERIMENT=jsonv2 enabled" (https://tip.golang.org/doc/go1.25)
9192
test: ## Run unit tests
92-
go clean -testcache
93-
go test -v -race -mod=readonly -cover ./...
93+
GOEXPERIMENT=jsonv2 go test -v -race -cover -count=1 ./...
9494

9595
.PHONY: lint
9696
lint: lint-gomod lint-golangci ## Run linters.

0 commit comments

Comments
 (0)