Skip to content

build.sh: follow a symlinked JAR_LIB_DIR - #35

Merged
tae898 merged 1 commit into
mainfrom
port/fix-463
Oct 24, 2026
Merged

tae898 merged 1 commit into
mainfrom
port/fix-463

Conversation

@tae898

@tae898 tae898 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Port of humemai/arcadedb-embedded-python#463 (merged there). Based on main.

The jar check in 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 line added to the Build section of CLAUDE.md. The docs/development/build-architecture.md hunk of the original does not apply: that page does not exist in this repo.

Checked by running build.sh linux/amd64 3.12 <symlinked dir> with a fake docker on PATH (it fails at docker build, after the staging step) against a symlinked directory holding one real jar and one symlinked jar. On main: "No JAR files found". With this change: the directory is accepted and both jars land in local-jars/lib as regular files. pre-commit (shfmt) passes. 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; CI builds the wheels.

Possible conflict: #20 also edits scripts/build.sh, but at a different place (around line 506, the studio jar exclusion), so I expect a clean merge. #28 and #29 do not touch these lines.

🤖 Generated with Claude Code

The jar check 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 line added to CLAUDE.md.

Port of humemai/arcadedb-embedded-python#463.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tae898
tae898 merged commit a2d9199 into main Oct 24, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant