Sitelet https://github.com/fsprojects/Paket/pull/3293
Skip to content

Env vars fix - #3293

Merged
forki merged 2 commits into
fsprojects:masterfrom
lexarchik:env_vars_fix
Jul 17, 2018
Merged

forki merged 2 commits into
fsprojects:masterfrom
lexarchik:env_vars_fix

Conversation

@lexarchik

Copy link
Copy Markdown
Contributor

fix #3290
plus expand env vars in env vars values to correctly process PATH like %SystemRoot% or %UserProfile%/something

Comment thread src/Paket.Core/Common/ProcessHelper.fs Outdated
else "")
else ""
with
| _ -> "")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we print the exception message and the bad path?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe always print something like "Error when searching <file> in <path>" and print exception message only in verbose mode?
Or print everything only in verbose?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd print that as a warning, otherwise people might not even be aware that they have something invalid in their PATH.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be confusing to see warn about some strange path after hit paket restore in random repository.
And in tryFindFile we dont know source of dirs parameter.
So i'm inclined to verbose-only trace.

@forki

forki commented Jul 17, 2018

Copy link
Copy Markdown
Member

thx

@forki
forki merged commit edde814 into fsprojects:master Jul 17, 2018
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.

Exception during restore

3 participants