Skip to content
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

Adding PAKET_VERSION posix compliant environment variable for bootstrapper #2857

Merged

Conversation

TheAngryByrd
Copy link
Contributor

What's the issue?
Paket boostrapper supplies a way to use environment variables to instruct it which version of paket to get.
https://github.com/fsprojects/Paket/blob/master/src/Paket.Bootstrapper/ArgumentParser.cs#L40

However PAKET.VERSION is not posix compliant. Instead of just changing it as it might be a breaking change I've just added a new variable compliant for posix and windows.

I've also added docs on how to obtain different versions using paket.exe.config or environment variables in the docs.

@forki
Copy link
Member

forki commented Oct 20, 2017

/cc @vbfox

@matthid
Copy link
Member

matthid commented Oct 20, 2017

I was hit by this before so I’m happy that someone takes care of this :)

Copy link
Contributor

@vbfox vbfox left a comment

Choose a reason for hiding this comment

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

Code LGTM, just small fixes needed on doc :)


### Setting version in magic mode

There are a few ways to set the version requested in magic mode.
Copy link
Contributor

Choose a reason for hiding this comment

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

This section seem to summarize what's already in the file : why ?

Also :

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seemed non-obvious for magic mode to me. Maybe I should trim it to just mentioning paket.exe.config ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Think it's worth moving the how to do env var commands to under the env var heading?

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 on latest, maybe specifying in the Setting version in magic mode section that all methods (except for the command line one) works in this mode (with the note about renaming). But it can be changed later.

@TheAngryByrd TheAngryByrd force-pushed the bootstrapper-version-envvar-posix branch 2 times, most recently from 7c5e3eb to 8ad4a65 Compare October 20, 2017 18:56
```
* cmd
```
set PAKET_VERSION "5.119.7"
Copy link
Contributor

Choose a reason for hiding this comment

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

Missed that one, syntax for cmd is

set PAKET_VERSION=5.119.7

@TheAngryByrd TheAngryByrd force-pushed the bootstrapper-version-envvar-posix branch from 8ad4a65 to 731f56a Compare October 20, 2017 19:29
@TheAngryByrd
Copy link
Contributor Author

Ping 🏓

@forki forki merged commit 731f56a into fsprojects:master Nov 7, 2017
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.

None yet

4 participants