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

Use portable code to find user home directory #86

Closed beppler closed 1 year ago

beppler commented 1 year ago

This make possible to use the tool on Windows without the need of create the HOME environment variable using portable go code.

Method os.UserHomeDir returns the current user's home directory.

beppler commented 1 year ago

I don't know why is this failing, the tests on local works and even the first invocation of the workflow when I pushed the code for the first time worked as shown here: https://github.com/beppler/gobrew/actions/runs/3902607537.

beppler commented 1 year ago

I found that running curl -sLk https://git.io/gobrew from action-gobrew on test pipe is returning HTTP error 503, then gobrwe is not installed. Probably related to: https://github.blog/changelog/2022-04-25-git-io-deprecation/

kevincobain2000 commented 1 year ago

Will update to raw GitHub url then

codecov-commenter commented 1 year ago

Codecov Report

Merging #86 (eec6ca4) into master (0768190) will increase coverage by 1.03%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
+ Coverage   50.31%   51.34%   +1.03%     
==========================================
  Files           1        1              
  Lines         479      483       +4     
==========================================
+ Hits          241      248       +7     
+ Misses        211      209       -2     
+ Partials       27       26       -1     
Impacted Files Coverage Δ
gobrew.go 51.34% <100.00%> (+1.03%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.