Skip to content

Conversation

@tempoz
Copy link
Contributor

@tempoz tempoz commented Nov 10, 2025

Since upgrading to MODULE.bazel, the bazel runfiles have an additional intervening subdirectory _main between the runfiles root and the paths we use.

This also fixes the related test, which was previously embedding the file we were trying to access via the runfiles.

@tempoz tempoz force-pushed the fix-runfiles-access branch from 75548fb to 9a8b7ca Compare November 10, 2025 16:51
@tempoz tempoz requested review from bduffany and sluongng November 10, 2025 16:52
@tempoz
Copy link
Contributor Author

tempoz commented Nov 10, 2025

This is a major pare-down of what ended up basically being a re-write of fileresolver that I did while trying to investigate/understand this problem, and it seems to be failing the integration tests that motivated a lot of the re-write, so I may have to do a more complicated fix, in which case I'll probably have to effectively close this PR and open a much larger one.

@tempoz
Copy link
Contributor Author

tempoz commented Nov 11, 2025

We got it working, no re-write of fileresolver required, thank goodness.

@tempoz tempoz requested review from bduffany and fmeum November 11, 2025 17:59
Co-authored-by: Fabian Meumertzheim <[email protected]>
@tempoz tempoz merged commit c6a777d into master Nov 14, 2025
11 checks passed
@tempoz tempoz deleted the fix-runfiles-access branch November 14, 2025 18:00
iain-macdonald added a commit that referenced this pull request Nov 14, 2025
iain-macdonald added a commit that referenced this pull request Nov 14, 2025
Reverts #10663

This makes the dev push fail because of
```
Error getting static FS from relPath: "../+_repo_rules+com_github_buildbuddy_io_buildbuddy/static/": sub +_repo_rules+com_github_buildbuddy_io_buildbuddy/../+_repo_rules+com_github_buildbuddy_io_buildbuddy/static/: invalid argument
```
@iain-macdonald
Copy link
Contributor

FYI this wasn't working in dev because of this error:

Error getting static FS from relPath: "../+_repo_rules+com_github_buildbuddy_io_buildbuddy/static/": sub +_repo_rules+com_github_buildbuddy_io_buildbuddy/../+_repo_rules+com_github_buildbuddy_io_buildbuddy/static/: invalid argument

I reverted it for now to unblock the dev push, but feel free to roll forward with a fix!

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.

5 participants