aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2025-07-26 15:00:46 -0700
committerMax Resnick <max@ofmax.li>2025-07-26 15:00:46 -0700
commitc56c998b2b13bd095843243f3fe3dacb0a2d92a5 (patch)
tree8f66c0fb0e22d5bc63e8ca0fab70b97446387c8e /justfile
parentc27ace9c8558ab5b9b933e41146932e6160521ae (diff)
downloadgo-git-server-c56c998b2b13bd095843243f3fe3dacb0a2d92a5.tar.gz
fix: resolve some temp file issues
Diffstat (limited to 'justfile')
-rw-r--r--justfile8
1 files 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}}