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

Find embedsrcs built in different configurations #3113

Merged
merged 1 commit into from
May 4, 2022

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented Apr 11, 2022

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Previously, embedsrcs under configuration roots different from that of
the Go target itself or its source files weren't found.

This is fixed by considering all combinations of roots of embedsrcs and
root-relative paths of source files and compilation outputs.

Which issues(s) does this PR fix?

Fixes #3114

Other notes for review

This blocks #3108, which causes the underlying bug to manifest itself in many simple situations.

@fmeum fmeum marked this pull request as ready for review April 11, 2022 17:03
Previously, embedsrcs under configuration roots different from that of
the Go target itself or its source files weren't found.

This is fixed by considering all combinations of roots of embedsrcs and
root-relative paths of source files and compilation outputs.
@fmeum fmeum force-pushed the fix-embedsrc-config-roots branch from 6f21523 to 102f5af Compare April 11, 2022 17:16
@achew22 achew22 merged commit 3e49c5e into bazel-contrib:master May 4, 2022
@fmeum fmeum deleted the fix-embedsrc-config-roots branch May 4, 2022 18:19
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.

embedsrcs in different configurations aren't found
2 participants