Closed cameron-martin closed 6 months ago
@ndmitchell has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@ndmitchell merged this pull request in facebookexperimental/starlark-rust@c696737c7408e430ab40d928c81a382b0da10665.
The resolve root was calculated incorrectly for relative load statements in external repositories. Instead of removing the file's path relative to the external repository, it only kept this part. For example if the current file is
$(bazel info output_base)/external/foo/bar/BUILD
, it would compute the resolve root asbar/BUILD
, whereas it needs to be$(bazel info output_base)/external/foo
.