-
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
Absolute CARGO_MAKE_WORKING_DIRECTORY? #142
Comments
file system paths is always an issue with windows, but will make it work |
Can't you just call |
ya hose leading chars it on windows caused me grief |
In that case it should be safe to just unconditionally remove them after canonicalizing |
@DianaNites I pushed the change for windows in the 0.15.2 branch. |
pushed to master and will be officially released today |
Problem Description
I'm working on an embedded project and want to use the Rust script runner after building, but unfortunately i have my embedded target set as the default in
.cargo/config
, which cargo sees when invoking cargo-script, causing that to fail.That can be trivially worked around by simply changing the working directory of the rust code task, but now I have no way to refer to any files in my project without hardcoding their path!
CARGO_MAKE_WORKING_DIRECTORY
in the current task will return the temporary directory, and saving it in another environment variable before the cwd change in another task thatrun_task
s the real one just returns a relative path in the form of "."In fact, as far as i can tell,
CARGO_MAKE_WORKING_DIRECTORY
doesn't work for anything? It only ever returns ".", unless you set cwd to an absolute path. In which case you know where you are anyway so don't need it?Can
CARGO_MAKE_WORKING_DIRECTORY
somehow be canonicalized, or another variable exposed that is?Alternatively, expose an environment variable
CARGO_MAKE_CRATE_MANIFEST
, which would be the full path toCargo.toml
?The text was updated successfully, but these errors were encountered: