Skip to content

[regression] cargo vendor keeps workspace inheritance for some things #13843

@glandium

Description

@glandium

Problem

With 1.77.2, a vendored Cargo.toml might contain something like:

[lints.clippy.pedantic]
level = "warn"
priority = -1

instead of what's in the original crate (vendored via git):

[lints]
workspace = true

with 1.79.0-beta.1, you see what's in the original crate.

It happens with nightly-2024-04-28 but not nightly-2024-04-27, which would put the regression in the range c939267..b60a155. Edit: fixed the versions.

Presumably this could affect cargo publish too.

Steps

  1. cargo new testcase; cd testcase
  2. add the following dependency to Cargo.toml: neqo-common = { tag = "v0.7.5", git = "https://github.com/mozilla/neqo" }
  3. cargo vendor vendoring
  4. Look at the file vendoring/neqo-common/Cargo.toml

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-workspace-inheritanceArea: workspace inheritance RFC 2906C-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.regression-from-stable-to-betaRegression in beta that previously worked in stable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions