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

embedsrcs fails when downloading files with http_archive #1676

Open
bc185174 opened this issue Nov 30, 2023 · 0 comments
Open

embedsrcs fails when downloading files with http_archive #1676

bc185174 opened this issue Nov 30, 2023 · 0 comments

Comments

@bc185174
Copy link

What version of gazelle are you using?

v0.33.0

What version of rules_go are you using?

v0.41.0

What version of Bazel are you using?

6.3.2

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

Yes

What operating system and processor architecture are you using?

Ubuntu, amd64.

What did you do?

Downloaded external dependency:

http_archive(
        name = "manifests",
        build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
    name = "file",
    srcs = glob(["*"]),
    visibility = ["//visibility:public"],
)
        """
        sha256 = "56e7256bef10fc2a30c5c287c54ae95312608c56a3fd7917e3a5708f32198fce",
        urls = ["https://github.com/linkerd/linkerd2/archive/refs/tags/{version}.tar.gz".format(
            version = VERSION,
        )],
    )
go_library(
    name = "example",
    srcs = ["main.go"],
    embedsrcs = ["@manifests//:file"],  # keep
    importpath = "...",
    visibility = ["//visibility:public"],
)

main.go attempts to embed the files downloaded //go:embed all:*.

What did you expect to see?

Should be able to embed files that are downloaded externally.

What did you see instead?

could not embed all:*: no matching files found
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

No branches or pull requests

1 participant