Fix the `check` doc comment, ignore Clojure tooling caches
`just -l` renders only the last comment line above a recipe as its description, so `check`'s three-line comment showed up in the listing as the sentence fragment "fallback is unavailable there — resolve the home here and pass it in." The rationale moves into the recipe body and the doc line stands alone. clj-kondo and clojure-lsp drop caches in .clj-kondo/ and .lsp/ once there is Clojure in the tree; ignore both. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1d7da60 parent: 29ba4c0 modified
.gitignore +4 -0 | @@ -3,6 +3,10 @@ build/ | ||
| 3 | 3 | out/ |
| 4 | 4 | nimcache/ |
| 5 | 5 | .cpcache/ |
| 6 | + | |
| 7 | +# clj-kondo / clojure-lsp caches | |
| 8 | +.clj-kondo/.cache/ | |
| 9 | +.lsp/.cache/ | |
| 6 | 10 | *.class |
| 7 | 11 | |
| 8 | 12 | # Compiled test/example binaries (nim c -r drops these next to the source) |
| @@ -3,6 +3,10 @@ build/ | |||
| 3 | out/ | 3 | out/ |
| 4 | nimcache/ | 4 | nimcache/ |
| 5 | .cpcache/ | 5 | .cpcache/ |
| 6 | + | ||
| 7 | +# clj-kondo / clojure-lsp caches | ||
| 8 | +.clj-kondo/.cache/ | ||
| 9 | +.lsp/.cache/ | ||
| 6 | *.class | 10 | *.class |
| 7 | 11 | ||
| 8 | # Compiled test/example binaries (nim c -r drops these next to the source) | 12 | # Compiled test/example binaries (nim c -r drops these next to the source) |
modified
justfile +3 -3 | @@ -32,12 +32,12 @@ clojure: clojure-cp | ||
| 32 | 32 | build: java |
| 33 | 33 | nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim |
| 34 | 34 | |
| 35 | -# Type-check the library without producing a binary. | |
| 36 | -# `nim check` does not run `staticExec`, so config.nim's PATH-based JDK | |
| 37 | -# fallback is unavailable there — resolve the home here and pass it in. | |
| 35 | +# Type-check the library without producing a binary | |
| 38 | 36 | check: |
| 39 | 37 | #!/usr/bin/env bash |
| 40 | 38 | set -euo pipefail |
| 39 | + # `nim check` does not run `staticExec`, so config.nim's PATH-based JDK | |
| 40 | + # fallback is unavailable there — resolve the home here and pass it in. | |
| 41 | 41 | home="${JAVA_HOME:-$(dirname "$(dirname "$(readlink -f "$(command -v javac)")")")}" |
| 42 | 42 | nim check --path:src -d:javaHome="$home" src/libjava.nim |
| 43 | 43 | |
| @@ -32,12 +32,12 @@ clojure: clojure-cp | |||
| 32 | build: java | 32 | build: java |
| 33 | nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim | 33 | nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim |
| 34 | 34 | ||
| 35 | -# Type-check the library without producing a binary. | 35 | +# Type-check the library without producing a binary |
| 36 | -# `nim check` does not run `staticExec`, so config.nim's PATH-based JDK | ||
| 37 | -# fallback is unavailable there — resolve the home here and pass it in. | ||
| 38 | check: | 36 | check: |
| 39 | #!/usr/bin/env bash | 37 | #!/usr/bin/env bash |
| 40 | set -euo pipefail | 38 | set -euo pipefail |
| 39 | + # `nim check` does not run `staticExec`, so config.nim's PATH-based JDK | ||
| 40 | + # fallback is unavailable there — resolve the home here and pass it in. | ||
| 41 | home="${JAVA_HOME:-$(dirname "$(dirname "$(readlink -f "$(command -v javac)")")")}" | 41 | home="${JAVA_HOME:-$(dirname "$(dirname "$(readlink -f "$(command -v javac)")")")}" |
| 42 | nim check --path:src -d:javaHome="$home" src/libjava.nim | 42 | nim check --path:src -d:javaHome="$home" src/libjava.nim |
| 43 | 43 | ||