Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Canonicalize dependency paths relative to manifest_dir - #27

Merged
phil-opp merged 1 commit into
phil-opp:masterfrom
NullP01nt:path-dependency-relative-to-cargo-toml
Sep 27, 2025
Merged

phil-opp merged 1 commit into
phil-opp:masterfrom
NullP01nt:path-dependency-relative-to-cargo-toml

Conversation

@NullP01nt

Copy link
Copy Markdown
Contributor

As per https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-path-dependencies a dependency's path should be given relative to the manifest's path.

The canonicalization of dependency paths in cargo-post implicitly uses the working directory to build the canonical path, this PR fixes that.

@phil-opp phil-opp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@phil-opp
phil-opp merged commit 7d662ba into phil-opp:master Sep 27, 2025
8 checks passed
@NullP01nt
NullP01nt deleted the path-dependency-relative-to-cargo-toml branch September 30, 2025 06:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants