运行bundle install时出现错误:
Fetching https://x-oauth-basic@github.com/MyCompanny/fiscal_calendar.git
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/MyCompanny/fiscal_calendar.git/'
Retrying `git clone 'https://x-oauth-basic@github.com/MyCompanny/fiscal_calendar.git'
虽然在Gemfile中声明了,但它最终会失败。
pat = "OUR PERSONAL TOKEN HERE"
gem 'fiscal_calendar', '~> 0.1.2', git: "https://#{pat}:x-oauth-basic@github.com/MyCompanny/fiscal_calendar.git"
我们确信我们的个人令牌是有效的,但我们仍然收到错误消息“用户名或密码无效”。
虽然在日志中它说:
git clone 'https://x-oauth-basic@github.com/MyCompanny/fiscal_calendar.git'
所以,看起来没有使用个人令牌?
有什么想法吗?
bundle config
在带外设置它们。请参阅https://bundler.io/v1.15/bundle_config.html上的“Gem源凭据”部分。 - fredrik``` 但仍然遇到同样的问题,一直要求输入密码。
- eftikhar