Skip to content

fix(uv): keep JDK paths valid during sdist builds#1289

Closed
tamird wants to merge 1 commit into
aspect-build:mainfrom
tamird:tamird/fix-py-binary-tool-env
Closed

fix(uv): keep JDK paths valid during sdist builds#1289
tamird wants to merge 1 commit into
aspect-build:mainfrom
tamird:tamird/fix-py-binary-tool-env

Conversation

@tamird

@tamird tamird commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

PEP 517 backends run from the unpacked sdist worktree, but
JAVABASE and JAVA expand to execroot-relative paths. Native Java
sdists such as pemja therefore see those paths stop resolving after
the cwd change.

Resolve the declared Java runtime paths before invoking the backend.
Remove the stale JAR fixture because current_java_runtime does not
declare that tool. Extend the native-wheel fixture to require
absolute, existing JAVA_HOME and JAVA.

@tamird tamird force-pushed the tamird/fix-py-binary-tool-env branch 2 times, most recently from 7025e2b to 44e79cd Compare July 10, 2026 09:57
@tamird tamird changed the title fix(uv): resolve tool paths before sdist cwd change fix(uv): keep JAVA_HOME valid during sdist builds Jul 11, 2026
@tamird tamird marked this pull request as ready for review July 11, 2026 04:37

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44e79cd090

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread uv/private/pep517_whl/build_helper.py Outdated
@tamird tamird force-pushed the tamird/fix-py-binary-tool-env branch from 44e79cd to f7e1cee Compare July 11, 2026 10:47
@tamird tamird changed the title fix(uv): keep JAVA_HOME valid during sdist builds fix(uv): keep JDK paths valid during sdist builds Jul 11, 2026

tamird commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: f7e1cee98b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tamird

tamird commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Replaced by #1295

@tamird tamird closed this Jul 14, 2026
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