kevincobain2000 / gobrew

Go version manager, written in Go. Super simple tool to install and manage Go versions. Install go without root. Gobrew doesn't require shell rehash.
https://medium.com/web-developer/go-version-manager-gobrew-c8750157dfe6
MIT License
374 stars 26 forks source link

Add windows support for version check and download #80

Closed beppler closed 1 year ago

beppler commented 1 year ago

This PR fixes the version evaluation and the archive download to make it work on Windows.

It changes CurrentVersion function to use the operating system path separator during the file name cleanup.

It also changes the downloadAndExtract function to download the zip file when the program is running on Windows.

kevincobain2000 commented 1 year ago

Wow. Big thanks. Will check. Although I don’t have windows so will only check if there is no impact on current arcs