Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --offline capability #97

Open
matthiasbeyer opened this issue Apr 13, 2024 · 1 comment
Open

Add --offline capability #97

matthiasbeyer opened this issue Apr 13, 2024 · 1 comment

Comments

@matthiasbeyer
Copy link

I want to run the tool without internet access (inside a nix build).
But right now it does not seem to be possible.

Could a feature for this be added?

@Shnatsel
Copy link
Member

The tool fundamentally relies on fetching data from crates.io. But you could have it run offline if you fetch a database dump with cargo supply-chain update and then run the tool; it would not fetch extra data if the cache is up to date.

You can control how fresh the cache needs to be to be considered up to date via the --cache-max-age argument , e.g. cargo supply-chain publishers --cache-max-age=3d would be 3 days. Note that the crates.io database dumps can be behind the live data by up to 48 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants