Describe the bug
After running just init, cargo build (and any cargo command) fails because path-posix is missing from the root [workspace.dependencies] in Cargo.toml.
The upstream upgrade PR #1375 bumped rolldown to a version where rolldown_plugin_vite_import_glob added path-posix = { workspace = true } as a dependency. However, path-posix was not added to the root Cargo.toml, so Cargo cannot resolve it.
Error output:
error: failed to load manifest for workspace member `packages/cli/binding`
Caused by: failed to load manifest for dependency `rolldown_binding`
Caused by: failed to load manifest for dependency `rolldown_plugin_vite_import_glob`
Caused by: error inheriting `path-posix` from workspace root manifest's `workspace.dependencies.path-posix`
Caused by: `dependency.path-posix` was not found in `workspace.dependencies`
Reproduction
https://github.com/voidzero-dev/vite-plus
Steps to reproduce
- Clone the repo:
git clone https://github.com/voidzero-dev/vite-plus
- Run
just init (clones rolldown/vite upstreams and installs dependencies)
- Run
cargo check or any cargo command
Expected: Build succeeds
Actual: Error — path-posix not found in workspace dependencies
System Info
VITE+ - The Unified Toolchain for the Web
vp v0.0.0
Local vite-plus:
vite-plus v0.0.0
Tools:
vite v8.0.8
rolldown v1.0.0-rc.15
vitest v4.1.4
oxfmt v0.45.0
oxlint v1.60.0
oxlint-tsgolint v0.20.0
tsdown v0.21.8
Environment:
Package manager pnpm v10.28.0
Node.js v22.18.0 (.node-version)
Environment:
Version 22.18.0
Source .node-version
Tool Paths:
node /Users/han/.vite-plus/js_runtime/node/22.18.0/bin/node
Used Package Manager
pnpm
Logs
error: failed to load manifest for workspace member `/Users/han/repository/vite-plus/packages/cli/binding`
referenced by workspace at `/Users/han/repository/vite-plus/Cargo.toml`
Caused by:
failed to load manifest for dependency `rolldown_binding`
Caused by:
failed to load manifest for dependency `rolldown_plugin_vite_import_glob`
Caused by:
failed to parse manifest at `/Users/han/repository/vite-plus/rolldown/crates/rolldown_plugin_vite_import_glob/Cargo.toml`
Caused by:
error inheriting `path-posix` from workspace root manifest's `workspace.dependencies.path-posix`
Caused by:
`dependency.path-posix` was not found in `workspace.dependencies`
Validations
Describe the bug
After running
just init,cargo build(and any cargo command) fails becausepath-posixis missing from the root[workspace.dependencies]inCargo.toml.The upstream upgrade PR #1375 bumped rolldown to a version where
rolldown_plugin_vite_import_globaddedpath-posix = { workspace = true }as a dependency. However,path-posixwas not added to the rootCargo.toml, so Cargo cannot resolve it.Error output:
Reproduction
https://github.com/voidzero-dev/vite-plus
Steps to reproduce
git clone https://github.com/voidzero-dev/vite-plusjust init(clones rolldown/vite upstreams and installs dependencies)cargo checkor any cargo commandExpected: Build succeeds
Actual: Error —
path-posixnot found in workspace dependenciesSystem Info
VITE+ - The Unified Toolchain for the Web vp v0.0.0 Local vite-plus: vite-plus v0.0.0 Tools: vite v8.0.8 rolldown v1.0.0-rc.15 vitest v4.1.4 oxfmt v0.45.0 oxlint v1.60.0 oxlint-tsgolint v0.20.0 tsdown v0.21.8 Environment: Package manager pnpm v10.28.0 Node.js v22.18.0 (.node-version) Environment: Version 22.18.0 Source .node-version Tool Paths: node /Users/han/.vite-plus/js_runtime/node/22.18.0/bin/nodeUsed Package Manager
pnpm
Logs
Validations