Skip to content

do not export the MSBuild env-var to the outer shell - #2754

Merged
matthid merged 2 commits into
fsprojects:masterfrom
0x53A:do-not-export-variables
Sep 17, 2017
Merged

matthid merged 2 commits into
fsprojects:masterfrom
0x53A:do-not-export-variables

Conversation

@0x53A

@0x53A 0x53A commented Sep 10, 2017

Copy link
Copy Markdown
Contributor

fixes #2751

/cc @vbfox, sorry about that.

Please review by someone who knows more about batch than me.

@vbfox

vbfox commented Sep 11, 2017

Copy link
Copy Markdown
Contributor

Nice.

Windows version looks 👍 to me, you don't need endlocal btw the end of the script does the same.

About the bash version, bash support setting env variables for only one command:

VAR=value cmd args

@0x53A

0x53A commented Sep 11, 2017

Copy link
Copy Markdown
Contributor Author

you don't need endlocal btw the end of the script does the same.

but it doesn't hurt, right?

bash support setting env variables for only one command:

done. but this is only in the windows branch of the bash script, so I doubt anyone even triggers this codepath.

(the bundled msbuild crashes hard on linux, so the mono msbuild is still used)

Thanks!

@vbfox

vbfox commented Sep 11, 2017

Copy link
Copy Markdown
Contributor

but it doesn't hurt, right?

No, it just restore the env explicitly instead of implicitly.

@matthid

matthid commented Sep 11, 2017

Copy link
Copy Markdown
Member

0x53A the windows code path is for me ;)
I'm using git bash ever since as I don't like cmd or powershell ;)

@0x53A

0x53A commented Sep 11, 2017

Copy link
Copy Markdown
Contributor Author

I don't like cmd or powershell ;)

I can't understand that at all.

@0x53A

0x53A commented Sep 17, 2017

Copy link
Copy Markdown
Contributor Author

@matthid I think this is ready, unless you or @vbfox have any additional feedback.

@matthid
matthid merged commit dd523ee into fsprojects:master Sep 17, 2017
@0x53A
0x53A deleted the do-not-export-variables branch September 17, 2017 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building paket corrupt local build env

3 participants