Skip to content

"cargo install --path" ignores lockfile #6983

Closed
@RalfJung

Description

@RalfJung

Problem

In a project with a local lockfile, cargo install --path . seems to ignore that lockfile.

Steps

  1. Have a lockfile with some outdated dependencies.
  2. Do cargo install --path .

This will use the latest version of the dependency even though the lockfile says otherwise.

Possible Solution(s)

I suggest that cargo install --path . should respect the lockfile in that directory.

Notes

Output of cargo version:
cargo 1.36.0-nightly (c4fcfb7 2019-05-15)

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