这是indexloc提供的服务,不要输入任何密码
Skip to content

Dirty directory error, but cargo-workspaces is responsible #103

@aasseman

Description

@aasseman

I am trying to use cargo workspaces publish --from-git on my repo, but I get:

error: 1 files in the working directory contain changes that were not yet committed into git:

Cargo.toml

to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
error: unable to publish package tap_core

The problem is that I am 100% sure the directory is not dirty, but in fact cargo workspaces publish modifies the Cargo.toml, then complains about it. Here's a video:

Screencast_20230629_155911.webm.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions