build-your-own-git icon indicating copy to clipboard operation
build-your-own-git copied to clipboard

Cargo lock file version (RUST)

Open ziggybaz opened this issue 11 months ago • 1 comments
trafficstars

Kindly update rustup to the latest version.

I was using the latest version which was running the lock file at version 4, and a quick look shows yours is on version 3, the fix was downgrading the version on my end.

Just to make it easier on everyone I think it would be better if it was updated on your build end instead of every user having to do so.

Logs:

remote: [build] >   lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
remote: [build] Error: process "/bin/sh -c cargo build --release --target-dir=/tmp/codecrafters-git-target" did not complete successfully: exit code: 101.
remote: [build] > error: failed to parse lock file at: /app/Cargo.lock
remote: [build] > 
remote: [build] > Caused by:
remote: [build] >   lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
remote: [build] Build failed. Check the logs above for the reason.

ziggybaz avatar Dec 01 '24 01:12 ziggybaz