Skip to content

Old lock file format is never written anymore #8696

Closed
@mathstuf

Description

@mathstuf

Problem

It seems to no longer be possible to get the old lock file format written anymore. Running nightly toolchains which touch the file seem to update it causing me to have to nuke it (since we support and test older toolchains too).

This mainly affects my wish to test minimal versions where -Z minimal-versions forces it to use a newer toolchain which then blocks out testing with the older toolchain (to ensure compatibility).

Steps

  1. cargo +1.32.0 update
  2. cargo +nightly update -Z minimal-versions
  3. echo "Cargo.lock no longer works with 1.32"

Possible Solution(s)

Support a flag to write out the old lock file format. It used to be auto-detecting and not upgrade, but that changed at some point.

Notes

Output of cargo version:

cargo 1.48.0-nightly (875e01232 2020-09-08)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions