Sarita Singh
unread,Jul 16, 2023, 3:46:32 PM7/16/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I am getting errors in packages.Load() when passes a packgae whose BUILD.bazel file has genrule to autogenerate code in some other location. The genrule is like:
genrule(
name = "copy_files",
srcs = [
"@someplace//:files",
],
outs = [
"x.json",
"y.json",
],
cmd = "cp -r $(locations @someplace//:files) $(RULEDIR)",
)
How can I solve this error? Is there some flags using which I can disable type checking in packages.Load() function?