dart包是否可能依赖于由bitbucket托管的私有存储库?

时间:2019-01-30 10:12:04

标签: dart flutter bitbucket

是否可能有一个引用私有bitbucket存储库的软件包?如下所示,但我需要提供密码和用户名。 Dart完全有可能吗?

dependencies:  
  secreterepo:
    git: https://blah@bitbucket.org/blah/secretrepo.git

1 个答案:

答案 0 :(得分:1)

您可以设置SSH以创建到BitBucket的身份验证连接,然后在依赖项中使用SSH URL,例如git@bitbucket.org:blah/secretrepo.git