From c56c998b2b13bd095843243f3fe3dacb0a2d92a5 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sat, 26 Jul 2025 15:00:46 -0700 Subject: fix: resolve some temp file issues --- justfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index c58f166..276baa0 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,4 @@ -TEMPDIR := `mktemp -d -p $(pwd)` +TEMPDIR := `mktemp -d -p $(pwd)/testdata` BUILDDIR := "_build" ALL_VERSIONS := BUILDDIR / "ALL_VERSIONS" NEW_VERSION := BUILDDIR / "NEW_VERSION" @@ -65,7 +65,7 @@ git-tag-release: git-chglog $current_ver..$new_ver >> {{ TEMPDIR }}/chglog echo "## Coverage" >> {{ TEMPDIR }}/chglog echo "" >> {{ TEMPDIR }}/chglog - go tool cover -func={{ TEMPDIR }}/testcover.out >> {{ TEMPDIR }}/chglog + go tool cover -func=$PWD/testdata/testcover.out >> {{ TEMPDIR }}/chglog # end temp tag git tag -d $new_ver git tag --annotate --sign --cleanup=whitespace --file {{ TEMPDIR }}/chglog ${new_ver} @@ -96,8 +96,8 @@ run repo=(TEMPDIR): test: golangci-lint run - TMPDIR=$PWD/testdata go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./... - go tool cover -func={{ TEMPDIR }}/testcover.out + TMPDIR=$PWD/testdata go test -v -coverprofile=$PWD/testdata/testcover.out ./... + go tool cover -func=$PWD/testdata/testcover.out debug-test pkg func: dlv test {{pkg}} -- -test.v -test.run {{func}} -- cgit v1.2.3