Bazel-Central-Registry Hosted in Gitlab - Stack Overflow

I am in a disconnected environment and am hosting the bazel-central-registry in a gitlab repo.I am tr

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

Share edited Nov 19, 2024 at 19:45 Eric Stoces asked Nov 19, 2024 at 19:44 Eric StocesEric Stoces 12 bronze badges 1
  • This worked, although the url in the browser returns a 404. build --registry=http://my.gitlab/my_group/bazel-central-registry/raw/dev – Eric Stoces Commented Nov 19, 2024 at 20:43
Add a comment  | 

1 Answer 1

Reset to default 0

This 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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742402499a4437193.html

相关推荐

  • Bazel-Central-Registry Hosted in Gitlab - Stack Overflow

    I am in a disconnected environment and am hosting the bazel-central-registry in a gitlab repo.I am tr

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信