Comments (2)
By default, Alexandrie already manages its crate index using the git
command line utility instead of libgit2
, as specified in the default alexandrie.toml
file:
Lines 20 to 22 in 1eb1b3c
The issue with a crate index configured using SSH is that the issue we mentioned arises on the users' machine (the consumers of the libraries hosted by the instance) when they perform cargo build
or cargo search
.
It is an issue happening outside of Alexandrie's reach.
Fixing the default can only be done within Cargo itself; here is a direct link to the libgit2
authentication handling in Cargo's source code.
This is the piece of code that, reportedly, does not always find the needed credentials to pull/push through SSH.
And by setting CARGO_NET_GIT_FETCH_WITH_CLI
, we tell Cargo to not attempt to find the credentials and do things itself, but rather to let the system git
utility to sort it out for us.
from alexandrie.
Your explanations clarified for me.
I have also found out from cargo's https://doc.rust-lang.org/cargo/reference/config.html , that instead of the environment variable CARGO_NET_GIT_FETCH_WITH_CLI, I can also write this
[net]
git-fetch-with-cli = true # use the `git` executable for git operations
into top level cargo config file:
Windows: %USERPROFILE%\.cargo\config.toml
Unix: $HOME/.cargo/config.toml
Since this is an easy workaround, there is no need for changing any defaults, I changed my mind.
from alexandrie.
Related Issues (20)
- Some potential data racing issues
- Self-modifying login form password field interferes with the Firefox remember password feature
- ERROR: insert or update on table "sessions" violates foreign key constraint "sessions_author_id_fkey" HOT 1
- After updating to Merge pull request #116 ,i can't publish new version of crates
- Question about database and build process
- Best method to remove/delete a crate HOT 1
- Enable git HTTPS authentication via username/password
- TLS support HOT 3
- Cargo checksum verification fails HOT 14
- Running error!!![frontend] missing field `origin` HOT 4
- cargo owner --add error HOT 4
- Consider switching to tokio/axum/hyper stack HOT 9
- Add `WebIdentityProvider` to AWS credentials chain
- IO error: No such file or directory (os error 2) HOT 1
- feat: verdaccio equivalent
- Consider if migrating to `tower-sessions` is appropriate HOT 8
- Option to enable authentication for all cargo API routes HOT 2
- Hide login and register buttons if they are disabled HOT 1
- Adding Categories and Keywords pages to help browsing and discovering of new crates
- Github OAuth breaks on second OAuth attempt, after first prompt was denied by user.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexandrie.