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

Refactor tool downloading and output, add Windows MiniForge example #98

Merged

Conversation

bollwyvl
Copy link
Contributor

@bollwyvl bollwyvl commented Nov 16, 2020

Code Changes:

  • rework the download to unify the behavior of the miniconda downloader (which was obvioiusly working) and the custom one
  • rework outputs
  • in example 5, update miniforge, add windows examples, use "nasty" urls with &?#

src/setup.ts Outdated Show resolved Hide resolved
@bollwyvl
Copy link
Contributor Author

Very close now...

@goanpeca goanpeca added this to the v2.1.0 milestone Nov 17, 2020
@bollwyvl bollwyvl changed the title [wip] Add Windows MiniForge example Refactor tool downloading and output, add Windows MiniForge example Nov 17, 2020
@@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ./
with:
installer-url: https://github.com/conda-forge/miniforge/releases/download/4.8.3-2/Miniforge-pypy3-4.8.3-2-MacOSX-x86_64.sh
installer-url: https://github.com/conda-forge/miniforge/releases/download/4.9.0-3/Miniforge-pypy3-4.9.0-3-MacOSX-x86_64.sh?foo=bar&baz
Copy link
Member

Choose a reason for hiding this comment

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

?foo=bar&baz Is this related to cache?

Copy link
Member

Choose a reason for hiding this comment

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

Oh nevermind, you used it to test the url parsing.

Right @bollwyvl ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, just want to make sure we've got an out for the inevitable s3 trash or wherever people are putting these things. Actually, going to add some docs about that...


## Fixes

- [#97][] fixes `installer-url` on Windows
Copy link
Member

Choose a reason for hiding this comment

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

Hmm good point should have added this to the other PRs :-p

@jaimergp would you like to update this on the changelog with the PRs you started?

Copy link
Member

Choose a reason for hiding this comment

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

Oops, yep, will do!

Copy link
Member

Choose a reason for hiding this comment

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

No worries I forgot too 🤦🏽

Copy link
Member

@goanpeca goanpeca left a comment

Choose a reason for hiding this comment

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

Awesome work @bollwyvl

Thanks a lot!

@bollwyvl
Copy link
Contributor Author

Thanks for the review!

Looking over the logs, tc.find never seems to get a cache hit... will investigate.

@bollwyvl
Copy link
Contributor Author

Ah, I was banging my head against paths and escaping: turns out tar is just broken on windows: actions/toolkit#632

I still think we want to use the exec(cmd[0], cmd.slice(1)) everywhere, just seems like fewer surprises...

@goanpeca
Copy link
Member

I still think we want to use the exec(cmd[0], cmd.slice(1)) everywhere, just seems like fewer surprises...

Agreed. Good to merge then?

@bollwyvl
Copy link
Contributor Author

Sorry my attention is a bit async right now... it looks like file:/// works like a boss (probably a PITA on windows, but so it goes), but this is pretty clutch for being able to test an installer built somewhere else during a workflow without turning on a web server or something.

No further changes planned!

@goanpeca
Copy link
Member

No further changes planned!

You pinky promise?

@bollwyvl
Copy link
Contributor Author

we swears. I'm working conda-forge chores now 😫

@bollwyvl bollwyvl mentioned this pull request Nov 17, 2020
@goanpeca goanpeca merged commit 8246c3d into conda-incubator:master Nov 17, 2020
@goanpeca goanpeca modified the milestones: v2.1.0, v2.0.1 Nov 29, 2020
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.

installer-url option triggers an error on windows
3 participants