Skip to content

Updating error with Cargo.lock #311

Closed
@alexchandel

Description

@alexchandel

If I had cargo had built repos before Cargo.lock was introduced, then it fails to update them.

$ cargo build -u
The -u flag has been deprecated, please use the `cargo update` command instead
$ cargo update
A Cargo.lock must exist before it is updated

And of course cargo build fails because the packages are outdated.

This is fixed by deleting ~/.cargo. To say nothing about the inappropriate location of this folder, which should be ~/.cache/cargo, as #148 recommends.

PistonDevelopers/hematite#54 and PistonDevelopers/sdl2_window#23 are related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions