Skip to content

Remove calls to resolve_tools - #2406

Draft
iteratee wants to merge 1 commit into
tweag:masterfrom
iteratee:kb/bazel86
Draft

Remove calls to resolve_tools#2406
iteratee wants to merge 1 commit into
tweag:masterfrom
iteratee:kb/bazel86

Conversation

@iteratee

@iteratee iteratee commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

Replace them mostly with FilesToRunProviders. For cc_wrapper, where
repl's also need the runfiles, use a struct that has the executable, the
FilesToRunProvider and the runfiles. The executable could be retrieved
from the FilesToRunProvider, but it is more convenient to just have it
in the struct.

FilesToRunProvider also makes sure that when passed as a tool, all the
necessary runfiles are available for that tool. Use this for protoc and
cc_wrapper.

cc_wrapper cannot rely on the RUNFILES_* environment variables. Pass
cc_wrapper either its path or the path to its manifest directly.

Make sure that we correctly pass around env variables at various points
so that tools we depend are in the PATH and have the environment they
expect.

Remove outdated comment about re-enabling resolve_tools for bazel 8

@iteratee
iteratee requested a review from avdv as a code owner April 3, 2026 20:18
@iteratee
iteratee marked this pull request as draft April 3, 2026 20:33
@iteratee
iteratee force-pushed the kb/bazel86 branch 7 times, most recently from a9ff57d to d63c0fe Compare April 4, 2026 07:13
@iteratee
iteratee force-pushed the kb/bazel86 branch 4 times, most recently from 3c1fa4d to cca76fa Compare August 25, 2026 05:45
Replace them mostly with `FilesToRunProvider`s. For cc_wrapper, where
repl's also need the runfiles, use a struct that has the executable, the
`FilesToRunProvider` and the runfiles. The executable could be retrieved
from the `FilesToRunProvider`, but it is more convenient to just have it
in the struct.

FilesToRunProvider also makes sure that when passed as a tool, all the
necessary runfiles are available for that tool. Use this for protoc and
cc_wrapper.

cc_wrapper cannot rely on the RUNFILES_* environment variables. Pass
cc_wrapper either its path or the path to its manifest directly.

Make sure that we correctly pass around env variables at various points
so that tools we depend are in the `PATH` and have the environment they
expect.

Remove outdated comment about re-enabling resolve_tools for bazel 8
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