Skip to content

cargo-workspace plugin does not support Cargo.toml outside of repository root #2589

@david-chandler-cko

Description

@david-chandler-cko

When using the cargo-workspace plugin with a monorepo where Cargo.toml is not in the root of the repository, Release Please fails with release-please failed: Failed to find file: Cargo.toml.

See

const cargoManifestContent = await this.github.getFileContentsOnBranch(
; it looks like the path is hard-coded.

I am creating a multi-language implementation of a library and would like to be able to nest each framework's configuration within its own subfolder.

Environment details

  • OS: ubuntu
  • Node.js version: v22.14
  • npm version: 10.9.2
  • release-please version: 17.1.2

Steps to reproduce

  1. Create a multi-language monorepo with a Rust workspace in a subdirectory (e.g., ./rust) where the Cargo.toml file describing the workspace is stored under ./rust/Cargo.toml
  2. Reference this using the cargo-workspace plugin

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions