我在github中有私人仓库,并在我的项目中将其用作软件包。在pubspec.yaml中,我是这样写的。
dependencies:
shared_preferences: ^0.4.3
atomic_app_customer_musteat_id:
git: git@github.com:organization/my_github_repo_ssh .git
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
但是错误是“在我的github_repo中找不到名为“ pubspec.yaml”的文件”
我在帐户中添加了ssh,并尝试在github中配置计算机用户。然后,我尝试将其更改为正常的https链接,并且没有错误。但是当我尝试在bitrise的ci / cd上构建并得到错误时。
pub get failed (69) -- attempting retry 5 in 16 seconds...
Git error. Command: git fetch
fatal: not a git repository
但是仍然不知道如何解决这个问题。
答案 0 :(得分:2)
像这样使用url
行:
dependencies:
my_project:
git:
url: ssh://git@gitserver/path/my_project.git