Comments (4)
The git index is how cargo does the dependency resolution/interacts with a registry, see https://doc.rust-lang.org/cargo/reference/registries.html#index-format
from ktra.
Hi @garyanaplan, thank you for using Ktra.
To come to the point, and unfortunately, it is not possible to restore deleted database and crates data from the index git repository.
A metadata sent by cargo when you hit cargo publish
command is similar to the index data but not the same. The metadata can map onto the index data but not vice versa.
Additionally, the checksum of crate binary data is calculated when it is published so if you remove crates directory you cannot retrieve it too.
Feel free to write a comment if you have more questions 👍.
from ktra.
That's totally fine. I wanted to get a better idea of how things worked and you've made that very clear. Thank you!
from ktra.
@moriturus I have a follow up question.
What's the purpose of git index if it contains only a subset of data published to the database? It sounds redundant as it'd seem that database+crates tars (archives) should be enough but I'm surely missing something?
from ktra.
Related Issues (20)
- Delete versions / crates
- Add verbosity option to `ktra` command?
- Dependency listed incorrectly if it has aliased
- Announcement: About the development of Ktra in future HOT 4
- Error 404 when trying to publish without a token (should be 400) HOT 2
- git error: corrupted loose reference file: FETCH_HEAD when trying to mirror crates.io
- No push to remote repo HOT 2
- Renamed packages aren't usable HOT 2
- Downloading ktra's crates.io mirror may fail when tried from some Cargo versions
- Change error message for unauthorized push to show name or login
- Self contained docker stack
- Add auth feature to manage download crates HOT 4
- Add https for the server HOT 4
- [Maintenance] Publish 0.7.0 HOT 4
- Ktra panics when using Mongo db backend HOT 3
- Store crates on S3
- Ktra openid doesn't install via cargo HOT 2
- ktra 0.7.0 - Failed to build with "--no-default-features --features=secure-auth,db-mongo" and "--no-default-features --features=secure-auth,db-redis"
- feat: verdaccio equivalent
- cargo build fails HOT 1
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 ktra.