Skip to content

Feature request: lading bump should update [workspace.dependencies] #53

Description

@leynos

Summary

Please extend lading bump to update version entries inside
[workspace.dependencies], [[workspace.dependencies]] (if present), and
optionally the corresponding workspace.dev-dependencies / workspace.build-dependencies
sections. Today, only [dependencies], [dev-dependencies], and
[build-dependencies] inside manifests are updated.

Motivation

Workspaces that centralize dependency versions in [workspace.dependencies]
expect a single lading bump run to keep all version references consistent.
In the current behaviour, workspace entries are left unchanged, which can be
misleading for crates that rely on workspace dependency inheritance (e.g.
dependency.workspace = true). It also means internal path dependencies
specified in [workspace.dependencies] can remain stale.

Current behaviour

  • lading bump updates [package].version in workspace members.
  • It updates dependency versions in [dependencies], [dev-dependencies], and
    [build-dependencies] in each manifest.
  • It does not update [workspace.dependencies] in the root Cargo.toml.

Expected behaviour

  • When lading bump <version> is run, the tool should also update version
    entries for workspace crates in [workspace.dependencies] (and, ideally,
    workspace.dev-dependencies / workspace.build-dependencies).

Proposed approach

  • Extend the dependency section list in the bump logic to include
    workspace.dependencies (and the dev/build variants).
  • Reuse the existing dependency update logic to keep behaviour consistent with
    crate-level dependency sections.

Optional configuration

If desired, this could be gated behind a config flag, but defaulting to “on”
would match expectations for workspace-managed dependency versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions