3 ms·
Why would a CI build need the index at all? The lock file should already contain all the dependencies and their hashes.
by CodesInChaos 4y ago
Why would a CI build need the index at all? The lock file should already contain all the dependencies and their hashes.
- kibwen 4y agoYou're correct that Cargo doesn't check the index if it's building using a lockfile, but I think the problem is that a freshly-installed copy of Cargo assumes that it needs to get the index the first time that any command is run. I assume (but haven't verified in the slightest) that this behavior will change with the move to an on-demand index by default.