Skip to content

Make crate dependency search paths path-mappable - #44

Open
finn-ball wants to merge 1 commit into
hermeticbuild:mainfrom
finn-ball:finn/path-map-crate-link-search-paths
Open

Make crate dependency search paths path-mappable#44
finn-ball wants to merge 1 commit into
hermeticbuild:mainfrom
finn-ball:finn/path-map-crate-link-search-paths

Conversation

@finn-ball

@finn-ball finn-ball commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • derive transitive crate dependency search paths from File outputs
  • allow Bazel to path-map the resulting -Ldependency arguments

Why

The existing arguments are derived from CrateInfo providers. The mapping callback returns plain directory strings, so Bazel cannot rewrite those paths for actions using stripped output-path mapping.

Using transitive_crate_outputs preserves the same dependency directories while keeping the values file-backed. Bazel can therefore rewrite them to the action's mapped output layout, preventing rustc from searching stale configuration-specific paths for transitive crates.

@finn-ball
finn-ball marked this pull request as ready for review August 19, 2026 13:54
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