Skip to content

Regression: git ignored Cargo.lock prevents cargo publish #7705

Closed
@DoumanAsh

Description

@DoumanAsh

Problem
git ignored Cargo.lock prevents cargo publish

> cargo publish
    Updating crates.io index
error: 1 files in the working directory contain changes that were not yet committed into git:

Cargo.lock

Steps

  1. put Cargo.lock into gitignore like *.lock
  2. cargo publish

Possible Solution(s)
This is likely a regression, because it was ok before 1.39
Should be reverted back

Notes

Output of cargo version:
cargo 1.39.0 (1c6ec66 2019-09-30)

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