Skip to content

Adding PAKET_VERSION posix compliant environment variable for bootstrapper - #2857

Merged
forki merged 1 commit into
fsprojects:masterfrom
TheAngryByrd:bootstrapper-version-envvar-posix
Nov 7, 2017
Merged

forki merged 1 commit into
fsprojects:masterfrom
TheAngryByrd:bootstrapper-version-envvar-posix

Conversation

@TheAngryByrd

Copy link
Copy Markdown
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

forki commented Oct 20, 2017

Copy link
Copy Markdown
Member

/cc @vbfox

@matthid

matthid commented Oct 20, 2017

Copy link
Copy Markdown
Member

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

@vbfox vbfox left a comment

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.

Code LGTM, just small fixes needed on doc :)

Comment thread docs/content/bootstrapper.md Outdated

### Setting version in magic mode

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

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.

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

Also :

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.

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

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.

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

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.

👍 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
Comment thread docs/content/bootstrapper.md Outdated
```
* cmd
```
set PAKET_VERSION "5.119.7"

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.

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
Copy Markdown
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.

4 participants