Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict unecessary inputs to 'JdepsMerge' actions #1175

Merged
merged 1 commit into from
May 24, 2024

Conversation

oliviernotteghem
Copy link
Contributor

Suppress JDepsMerge action re-execution in incremental build when dependencies API changes.

# For sandboxing to work, and for this action to be deterministic, the compile jars need to be passed as inputs
inputs = depset(jdeps, transitive = [depset([], transitive = [dep.transitive_compile_time_jars for dep in deps])])
inputs = depset(jdeps)
if not toolchains.kt.experimental_report_unused_deps == "off":
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be safe to merge since internally the JdepsMerge action skips resolving the jars and their target labels when this flag is set to off.

@Bencodes Bencodes merged commit 257b9ad into bazelbuild:master May 24, 2024
1 of 2 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.

2 participants