Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

build.sh: follow a symlinked JAR_LIB_DIR - #463

Merged
tae898 merged 1 commit into
mainfrom
fix-build-symlink-libdir
Oct 22, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix-build-symlink-libdir

Conversation

@tae898

@tae898 tae898 commented Oct 22, 2026

Copy link
Copy Markdown

Fixes #462

The jar check in bindings/python/scripts/build.sh used find "$JAR_LIB_DIR", which does not follow a symlinked starting point, so a build with a symlinked lib directory failed with "No JAR files found". The check now uses find -H, and the staging copy uses cp -aL so a jar that is itself a symlink is staged as a real file (a copied link would dangle in the Docker build context and be skipped by the find -type f hash). One sentence added to docs/development/build-architecture.md.

Checked by running build.sh with a fake docker on PATH against a symlinked directory holding one real jar and one symlinked jar. Before the change: "No JAR files found". After: the directory is accepted and both jars land in local-jars/lib as regular files. No test covers build.sh, so none was added, and no full build was run since the change does not touch anything after the staging step.

🤖 Generated with Claude Code

The jar check used find on the directory itself, which does not follow a symlinked starting point, so a symlinked lib dir failed with No JAR files found. The check now uses find -H and the staging copy uses cp -aL so symlinked jars are staged as files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898
tae898 merged commit 90cc59d into main Oct 22, 2026
42 of 44 checks passed
@tae898
tae898 deleted the fix-build-symlink-libdir branch October 22, 2026 05:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build.sh fails with "No JAR files found" when JAR_LIB_DIR is a symlink to a directory

1 participant