Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't quite remember the context but we purposely chose to use
git@
rather than usehttps
in #313.I'm not able to reproduce your error on my end through importing. Perhaps your import error is related to rust-lang/cargo#12295? From that issue, it looks like there was a bug when a submodule used
git@github.com:...
for some Rust/cargo versions. Maybe you'll need to update your Rust/cargo version?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reply and the pointer to the Cargo issue.
I updated to latest rust toolchain (
rustc 1.75.0-nightly (df871fbf0 2023-10-24)
andcargo 1.75.0-nightly (d2f6a0485 2023-10-20)
). While the issue still remains, the error is different.I suspect the reason why it might be working for you could be because you have privileged access to
partiql/partiql-tests.git
repository (see below).After updating to latest rust toolchain, when I did
cargo update
, it nudged me to setnet.git-fetch-with-cli=true
.Once
net.git-fetch-with-cli=true
was set, the error seems to be more precise. My GitHub public key cannot be used for the repository -git@github.com: Permission denied (publickey). Please make sure you have the correct access rights and the repository exists.
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm
partiql/partiql-tests
is a public repo so I don't believe that should cause the permission issue you're seeing. Could you verify that you have anssh-agent
running (relevant cargo doc)? And that the ssh key on your computer (runningssh-add -l
) matches up with what's displayed on https://github.com/settings/keys? This was an issue I faced when GitHub updated the SSH host keys earlier this year.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI the above cargo doc link states
I believe this note only applies to shorthand URLs specified in the
Cargo.toml
files and not in the.gitmodules
submodule file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right! Turns out this was an "authentication" issue. When cloning using
git@github.com:...
, it seems authentication is mandatory, and that extends even to git submodules viacargo
.I use
git@github.com:...
URIs only for the repositories that I own and store my SSH key in a hardware token. Since my hardware token was not available when doingcargo update
, and becausecargo
andgit
were trying to authenticate, and this was failing.Inserting my hardware token and doing a
cargo update
work. Thanks for the help and the pointers.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, glad we were able to find the issue! I'll close this PR then.
Feel free to add to add comments or reopen if you face further issues w/ the git submodule.