admin管理员组文章数量:1336175
I am in a disconnected environment and am hosting the bazel-central-registry in a gitlab repo. I am trying to specify the registry in my .bazelrc file. I can get it to work with a local file system path:
build --registry=file:///D:/repos/bazel-central-registry
But when I use the gitlab repo as the registry I get errors that bazel can't parse metadata.json. Is this the correct way to reference the gitlab repo? Examples I have seen use raw url on github, but I haven't found an example using gitlab repo...
build --registry=/my_group/bazel-central-registry/-/tree/dev
I am in a disconnected environment and am hosting the bazel-central-registry in a gitlab repo. I am trying to specify the registry in my .bazelrc file. I can get it to work with a local file system path:
build --registry=file:///D:/repos/bazel-central-registry
But when I use the gitlab repo as the registry I get errors that bazel can't parse metadata.json. Is this the correct way to reference the gitlab repo? Examples I have seen use raw url on github, but I haven't found an example using gitlab repo...
build --registry=http://my.gitlab/my_group/bazel-central-registry/-/tree/dev
1 Answer
Reset to default 0This worked, although the url in the browser returns a 404.
bazel build //example:hello-world --registry=http://my.gitlab/my_group/bazel-central-registry/raw/dev
本文标签: BazelCentralRegistry Hosted in GitlabStack Overflow
版权声明:本文标题:Bazel-Central-Registry Hosted in Gitlab - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742402498a2468166.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
build --registry=http://my.gitlab/my_group/bazel-central-registry/raw/dev
– Eric Stoces Commented Nov 19, 2024 at 20:43