gpt4 book ai didi

dart - pubspec 中的 flutter 密码

转载 作者:IT王子 更新时间:2023-10-29 07:00:52 26 4
gpt4 key购买 nike

是否可以在 pubspec.yaml 依赖项中使用 passphrase:

dependencies:
customFramework:
url: git@gitlab.com:nameandurl..
ref: lkjdfksdjf
path: package/nameofpackage

我明白了

git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

我正在使用 passphrase,这是访问问题的原因。但我想我需要添加密码短语 - 但如何添加?

注意:passphrase 可能不应该在源代码中,但也许有办法。

最佳答案

您的 pubspec.yaml 语法错误。应该是

dependencies:
customFramework:
git:
url: git@gitlab.com:nameandurl..
ref: lkjdfksdjf
path: package/nameofpackage

如果您使用 git@... 路径(与 https://... 相反)设置 SSH 连接并在运行 之前连接pub get 应该可以工作。

https://help.github.com/articles/connecting-to-github-with-ssh/

关于dart - pubspec 中的 flutter 密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50813185/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com