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

go_path: Support embedsrcs of generated files #3284

Closed
S-Chan opened this issue Sep 9, 2022 · 1 comment · Fixed by #3285
Closed

go_path: Support embedsrcs of generated files #3284

S-Chan opened this issue Sep 9, 2022 · 1 comment · Fixed by #3285

Comments

@S-Chan
Copy link
Contributor

S-Chan commented Sep 9, 2022

What version of rules_go are you using?

v0.34.0

What version of gazelle are you using?

v0.24.0

What version of Bazel are you using?

Bazelisk version: development
Build label: 5.1.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Mar 24 14:10:21 2022 (1648131021)
Build timestamp: 1648131021
Build timestamp as int: 1648131021

Does this issue reproduce with the latest releases of all the above?

Yes.

What operating system and processor architecture are you using?

Darwin x86_64

Any other potentially useful information about your toolchain?

What did you do?

Added a Go library that uses go:embed as a dependency to a go_path rule. The go:embed file was generated with a copy_file rule.

What did you expect to see?

Files embedded in Go library to be copied into the generated GOPATH.

What did you see instead?

fail("Path '%s' is not beneath '%s'" % (path, start))
Error in fail: Path 'bazel-out/k8-fastbuild/bin/foo/bar' is not beneath 'foo'

Exact filenames edited

@S-Chan
Copy link
Contributor Author

S-Chan commented Sep 9, 2022

This is an enhancement of #3162

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 a pull request may close this issue.

1 participant