cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Multiple Locations in Cargo.toml

Open sanbox-irl opened this issue 5 years ago • 0 comments

Description

Workflow code

https://github.com/NPC-Studio/yy-boss/blob/master/.github/workflows/main.yml

(this is just the quickstart action without Clippy)

Action output

failed to get `yy-typings` as a dependency of package `yy-boss v0.1.1 (/home/runner/work/yy-boss/yy-boss)`

Expected behavior

see below

Additional context

This isn't really a bug, but a request for some guidance on a particular issue with Cargo. I hope this is a good place to ask! So the issue is because my Cargo.toml in that project has the following dependency:

yy-typings = { path = "../yy-typings", version = "0.1" }

This is because I develop this other crate, generally, at the same time, so it just makes sense to have a local path dependency on my local.

Is there some way to get the action to only build using the Crates.io referenced there? Right now, it builds on every push, but in the future, it will only build on tagged commits, so I will know that the crates.io version will be up to date.

sanbox-irl avatar Jul 19 '20 00:07 sanbox-irl