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

cc_fuzztest_grammar_library bazel macro cannot be used outside of com_google_fuzztest repo #912

Open
racko opened this issue Jan 17, 2024 · 1 comment · May be fixed by #913
Open

cc_fuzztest_grammar_library bazel macro cannot be used outside of com_google_fuzztest repo #912

racko opened this issue Jan 17, 2024 · 1 comment · May be fixed by #913

Comments

@racko
Copy link

racko commented Jan 17, 2024

# some/package/BUILD
load("@com_google_fuzztest//build_defs:cc_fuzztest_grammar_library.bzl", "cc_fuzztest_grammar_library")


cc_fuzztest_grammar_library(
    name = "some_grammar",                                                    
    srcs = ["some_grammar.g4"],                                                       
    top_level_rule = "some_rule",                                                      
)

results in

ERROR: no such package 'fuzztest': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /path/to/my/workspace/fuzztest
ERROR: /path/to/my/workspace/some/package/BUILD:122:28: no such package 'fuzztest': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /path/to/my/workspace/fuzztest and referenced by '//some/package:some_grammar'
ERROR: Analysis of target '//some/package:some_grammar' failed; build aborted: Analysis failed

The linked PR fixes the issue.

@racko racko changed the title cc_fuzztest_grammar_library bazel rule cannot be used outside of com_google_fuzztest repo cc_fuzztest_grammar_library bazel macro cannot be used outside of com_google_fuzztest repo Jan 17, 2024
@racko
Copy link
Author

racko commented Jul 17, 2024

#1257 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant