-
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
Creating an environment variable from a #196
Comments
I'll take a look. thanks!!! |
Is there anything I can do to help you on that subject ? |
well... didn't have a chance to look at it yet. if not, I'll probably take a look at it this weekend or so ... |
ok, so it has been eons since i wrote that piece of code. if lines.len() > 0 {
let line = lines[lines.len() - 1].to_string(); so... in order not to break backward compatibility, i'm thinking of introducing a flag to enable multi line output support, something like: MULTI_LINE_SCRIPT = { script = ["cat ./somefile.txt"], multi_line = true} |
Well, I don't know what user base you have, but I think the sensible default in that case is to get all lines, and allow the ability to get only the last line through a flag. Do you see my point ? (and I think most of the Windows users of cargo make - provided they exist ;-) - already have coping strategies, which will make that flag useless. But as you're the developer, I guess my opinion is only an opinion :-) |
I had bad experience with this in the past. Also be aware that although i have a multi line output of the script, when I push it via env::set_var (rust api), it gets pushed as a huge single line value. |
To test that version, I guess I'll have to checkout cargo make, run cargo build ... |
no need for that. you can run cargo install on a git branch directly. --git <URL> Git URL to install the specified crate from
--branch <BRANCH> Branch to use when installing from git |
Well ... I've updated cargo make
And ... It's unfortunatly a nope
I think I'll try another solution, because multiline env variables in Windows are a total pity. Thanks anyway for your effort |
releasing it today as part of 016.9 |
Describe the bug
On Windows, the created environment variable is trunctaed to one line
To Reproduce
I've created the following cargo makefile
When I run that makefile, I have the following output log
Whereas running
git journal 0.1.3
gives the following outputNotice that there are three lines in standalone run, vs one line in environment variable built by cargo make.
What is wrong ? Have I missed something in cargo make configuration ?
The text was updated successfully, but these errors were encountered: