Skip to content

Commit

Permalink
avoid a new problem with go clean -testcache
Browse files Browse the repository at this point in the history
After upgrading to Go 1.20, I now see this error:

    go: clean -testcache cannot be used with package arguments

More info: golang/go#53725
  • Loading branch information
evanw committed Feb 3, 2023
1 parent 606c425 commit 4e53c27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ validate-builds:
@$(MAKE) --no-print-directory TARGET=platform-win32-x64 SCOPE=@esbuild/ PACKAGE=win32-x64 SUBPATH=esbuild.exe validate-build

clean:
go clean -testcache ./internal/...
go clean -cache
go clean -testcache
rm -f esbuild
rm -f npm/@esbuild/win32-arm64/esbuild.exe
rm -f npm/@esbuild/win32-ia32/esbuild.exe
Expand Down

0 comments on commit 4e53c27

Please sign in to comment.