nandi/libjavapublic Fork 0
1d7da60
Commits
Clone
git clone https://git.rickub.com/nandi/libjava.git
git clone ssh://git@rickub.com/nandi/libjava.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

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>
nandithebull committed 2026-09-20T15:56:39-07:00 Browse files
1d7da60 parent: 29ba4c0
modified .gitignore +4 -0
@@ -3,6 +3,10 @@ build/
33 out/
44 nimcache/
55 .cpcache/
6+
7+# clj-kondo / clojure-lsp caches
8+.clj-kondo/.cache/
9+.lsp/.cache/
610 *.class
711
812 # 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 *.class10 *.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
3232 build: java
3333 nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim
3434
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
3836 check:
3937 #!/usr/bin/env bash
4038 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.
4141 home="${JAVA_HOME:-$(dirname "$(dirname "$(readlink -f "$(command -v javac)")")")}"
4242 nim check --path:src -d:javaHome="$home" src/libjava.nim
4343
@@ -32,12 +32,12 @@ clojure: clojure-cp
32 build: java32 build: java
33 nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim33 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 bash37 #!/usr/bin/env bash
40 set -euo pipefail38 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.nim42 nim check --path:src -d:javaHome="$home" src/libjava.nim
43 43