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

Copy paket exe to cwd on init #853

Merged
merged 7 commits into from
Jun 2, 2015

Conversation

Bomret
Copy link
Contributor

@Bomret Bomret commented Jun 1, 2015

As discussed in Paket.Atom issue 14 Paket should download the paket.bootstrapper into the .paket dir on init. I created a new module Paket.Releases which handles downloading the latest versions of paket.exe, the bootstrapper and paket.targets.

Stefan Reichel and others added 5 commits June 1, 2015 18:38
Renamed DownloadAssemblies to Releases and added functions to download
bootstrapper, bootstrapper and targets and a custom list of files.
@forki
Copy link
Member

forki commented Jun 2, 2015

/cc @theimowski could you please take a short look?

currentVersion < latest

let downloadLatestVersionOf files destDir =
let releasesUrl = "https://api.github.com/repos/fsprojects/Paket/releases";
Copy link
Member

Choose a reason for hiding this comment

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

please move this into the Constants module

@theimowski
Copy link
Member

apart from the comments, LGTM

Stefan Reichel added 2 commits June 2, 2015 17:41
Renamed notExistsOrIsNewer to doesNotExistOrIsNewer (it was late last
night ;))
@Bomret
Copy link
Contributor Author

Bomret commented Jun 2, 2015

I moved the URLs and other stuff into the Constants module and added comments on the functions. @theimowski what exactly did you mean by "inline these and above functions"? Remove the downloadLatestBootstrapper* functions and only call downloadLatestVersionOf?

@forki
Copy link
Member

forki commented Jun 2, 2015

I think he meant, that you just remove the functions and use the code directly without a separate function

@Bomret
Copy link
Contributor Author

Bomret commented Jun 2, 2015

But this would be unnecessary duplication? The way it is now the downloadLatestVersionOf function can be used to easily extend the functionality of the module later for other files.

@forki
Copy link
Member

forki commented Jun 2, 2015

Ok. Thanks a lot
On Jun 2, 2015 20:22, "Stefan Reichel" [email protected] wrote:

But this would be unnecessary duplication? The way it is now the
downloadLatestVersionOf function can be used to easily extend the
functionality of the module later for other files.


Reply to this email directly or view it on GitHub
#853 (comment).

@Bomret
Copy link
Contributor Author

Bomret commented Jun 2, 2015

And both other functions are used in the publicAPI module. Or do I still get it wrong?

forki added a commit that referenced this pull request Jun 2, 2015
@forki forki merged commit a9ea4aa into fsprojects:master Jun 2, 2015
@forki
Copy link
Member

forki commented Jun 2, 2015

thx. released in 1.10

@theimowski
Copy link
Member

Ok nvmd, I've not looked at the call sites for those functions - they just seemed extraordinary at first glance

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.

3 participants