How to use my own repo to test new rules?

51 views
Skip to first unread message

袁浩

unread,
Mar 5, 2023, 8:32:20 AM3/5/23
to bazel-go-discuss
Hi, 

I'm trying to contribute to rules_go, On my local pc, I'm using http_archive to fetch rules from my own repo. Here is a demo repo, Try 'bazel run //:runfiles' then you can see the error message : 

ERROR: Error computing the main repository mapping: Every .bzl file must have a corresponding package, but '@io_bazel_rules_go//go:deps.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.

I guess url I'm using is not correct. How do you use your own repo to test?

Thanks,
Hao
Reply all
Reply to author
Forward
0 new messages