-
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
Propose syntax-sugar for referring to tasks in other crates #497
Comments
Interesting idea. dependencies = [ { cwd = "src/web", name = "dist", fork = true }, { name = "some-local-task" } ] which would trigger a sub cargo make process (as you did manually)? |
Yeah that could work, while making "some-local-task" and { name = "some-local-task" } equal. If you give some pointers I'd be happy to take a crack at it once we think about it a little more. |
@arlyon if you want create a PR (always happy to get help) here are the pointers i can give:
if you feel its too much, its ok. just tell me and i'll take it. |
Cool, I had a go at the first bit. Expect a PR soon :) |
@arlyon i was manually testing this one and i found a bug there when the path specifies a file name as well (i was actually testing the cross-file.toml you created). let mut proxy_task = create_proxy_task(&proxy_name, true, false);
proxy_task.cwd = Some(path.to_owned()); what i think you wanted to do is check that path and than if its a dir than ok, if its a file to break it down to path to put in cwd and filename to put in the cargo make args list. would you like to take care of it or should I fix it? |
i would also add a test for both scenarios to make sure the generated proxy task is as we wanted it to be. |
Hey! Yes it seems I missed that case, I thought that that was covered since the example I wrote worked but that was in the same directory. I'll get a patch up asap |
@arlyon are you taking care of this one or you prefer me to fix it? |
Hey, I've been working on this but its a bit more complex than I had initially thought regarding paths and things. |
i can take a look as well. |
Yes, that would be helpful. This next few days are quite busy with work wrapping up before the holidays and I understand it's kind-of time sensitive. Thank you (and sorry)! |
@arlyon fixed it. you can look at the relevant commit if you are interested. |
released |
I have a workspace with many crates. As part of the packaging process, I'd like to copy some files (html templates) between them. This copy stage depends on some preprocessing defined in
src/web/Makefile.toml
. In the rootMakefile.toml
I am having to create a dummy task that changes directory and runs the target I want.src/web/Makefile.toml
Makefile.toml
The combined result of which is:
My question: there is a little boilerplate task here, would it be an idea to provide some sugar and allow me to define a dependency as follows instead?:
web:dist could either be a path or a crate in the workspace, and it refers to the dist task inside the Makefile there.
The text was updated successfully, but these errors were encountered: