-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obtaining the workspace root #382
Comments
you mean you have a bunch of crates which are in the same workspace, right? |
CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY does the trick when running from the root; however I'd like the scripts to also work when ran from other directories. Basically I need to access the root |
so currently i don't have that. but could try to add it if you run it from the root of some member crate. |
There should be a way to access it through Cargo I reckon; since it is able to figure out where to place all artifacts, even when I'm running cargo make from different directories. |
ya, didn't say its not possible :) |
That'd be great. Let me know if I can help out. |
@KaiserKarel I just pushed a commit to the dev branch to setup CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY correctly even when starting the build in the member crate directly and not in the workspace level. |
Sorry, bit hectic last couple of days; but it seems to work perfectly! |
great. will probably release a new official version today/tomorrow. |
@KaiserKarel just release an official version with this fix. |
Perfect, thanks for the quick feature addition! |
I'm using a bunch of workspaces, sharing target directories. I'd like to refer to the root (the directory containing the Cargo.toml with the
workspace.members
key) from one of the nested workspaces. How can I accomplish this?The text was updated successfully, but these errors were encountered: