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
358 stars 24 forks source link

unable to obtain mod version #155

Closed kevincobain2000 closed 8 months ago

kevincobain2000 commented 8 months ago
╰─$ go run cmd/gobrew/main.go use mod                                                                                                                                                                      
==> [Info] Fetching remote versions

==> [Info] Downloading version: mod
==> [Info] Downloading from: https://go.dev/dl/gomod.darwin-arm64.tar.gz
==> [Info] Downloading to: /Users/pulkit.kathuria/.gobrew/downloads
==> [Info] Downloading version failed: https://go.dev/dl/gomod.darwin-arm64.tar.gz returned status code 404
==> [Error]: Please check connectivity to url: https://go.dev/dl/gomod.darwin-arm64.tar.gz
                                                                   ↑ Fixes
kevincobain2000 commented 8 months ago

Sorry let me merge without review, our other CI has been failing.

github-actions[bot] commented 8 months ago

Summary CoverItUp: kevincobain2000/gobrew

Type master feature/mod-bug
coverage 66.2 % 66.2 %
go-binary-size 5.9k KB 5.8k KB -
go-mod-dependencies 28 28
go-sec-issues 6 6
build-time 5 sec 3 sec -
unit-test-run-time 128 sec 107 sec -

Generated by Cover It Up. View full report https://coveritup.app/kevincobain2000/gobrew

juev commented 8 months ago

What test data can be used for verification?

On which repository did you conduct tests?

kevincobain2000 commented 8 months ago

repo: actually testing right now Screenshot 2023-11-12 at 20 30 36

kevincobain2000 commented 8 months ago

Before and After Update

╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/aketemite ‹master●›
╰─$ cat go.mod|grep go|head -1
go 1.21.4
╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/aketemite ‹master●›
╰─$ gobrew use mod
==> [Info] Fetching remote versions

==> [Info] Downloading version: mod
==> [Info] Downloading from: https://go.dev/dl/gomod.darwin-arm64.tar.gz
==> [Info] Downloading to: /Users/pulkit.kathuria/.gobrew/downloads
==> [Info] Downloading version failed: https://go.dev/dl/gomod.darwin-arm64.tar.gz returned status code 404
==> [Error]: Please check connectivity to url: https://go.dev/dl/gomod.darwin-arm64.tar.gz
╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/aketemite ‹master●›
╰─$ gobrew self-update                                                                                                                                                                                      1 ↵
Downloading 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (6.0/6.0 MB, 1.8 MB/s)
Upgrade successful
╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/aketemite ‹master●›
╰─$ gobrew use mod
==> [Info] Version: 1.21.4 exists
==> [Info] Changing go version to: 1.21.4
==> [Success] Changed go version to: 1.21.4
╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/aketemite ‹master●›
╰─$ gobrew version
[INFO] gobrew version is 1.9.7
juev commented 8 months ago

Cool, thank you!