You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Published wheels since v1.2.0 omit the bundled codeanalyzer-java JAR #284
Every hatchling-built wheel/sdist since v1.2.0 ships without the bundled codeanalyzer-java JAR, so pip install cldk + CLDK.java(...) fails with CodeanalyzerExecutionException: codeanalyzer jar not found.
Affected published wheels (verified on PyPI)
Version
Wheel size
JAR
1.4.3
176 KB
✗ missing
1.4.2
176 KB
✗ missing
1.4.1
176 KB
✗ missing
1.4.0
174 KB
✗ missing
1.2.0
168 KB
✗ missing
2.0.0rc1
188 KB
✗ missing
≤ 1.1.3 (setuptools era)
26–56 MB
✓ present
Root cause
The root .gitignore has *.jar; the nested cldk/analysis/java/codeanalyzer/jar/.gitignore
re-includes it with !codeanalyzer-*.jar. git honors the negation (the JAR is tracked and
in every tag); hatchling applies *.jar at build time but does not honor the nested
negation, so it drops the JAR.
Hatchling only applies .gitignore exclusion when a .git dir is present — which CI has — so
the bug reproduces in CI but not on a git archive / source-tarball build (a false negative
that hid it for 5 releases).
release.yml even has an "Inject the latest Code Analyzer JAR" step that downloads the JAR
before uv build — hatchling silently discards it anyway.
Reproduction
# In a tree WITH .git (CI condition):
uv build && unzip -l dist/*.whl | grep codeanalyzer-.*jar # -> 176 KB wheel, NO jar
Byte-identical to the published 1.4.3 wheel (176081 bytes).
Fix
Force-include the VCS-ignored JAR via hatchling's artifacts, and add a release-workflow guard
that fails the job before publishing if a built artifact is missing the JAR.
Affects pyproject.toml and .github/workflows/release.yml. Requires a follow-up 1.4.4
release since 1.4.3 is already published jarless.
Activity
fix: bundle codeanalyzer-java JAR in published wheels (#284) (#285)
fix(ci): make the codeanalyzer-JAR release guard pipe-safe (#287)
fix: backport JAR-bundling and release-workflow fixes to 2.0 (#284, #289
fix: backport JAR-bundling and release-workflow fixes to 2.0 (#284, #289
feat(java): drive the analyzer through the codeanalyzer-java wheel an…
feat(java): drive the analyzer through the codeanalyzer-java wheel an…
feat(java): drive the analyzer through the codeanalyzer-java wheel an…