question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Print installed version and environment info after installing

See original GitHub issue

With allowed versions like 1.13.x, and potentially latest (#31) / tip (#21) in the future, I’d like to see the action print out the version it installed after it completes. Right now, you just get:

Run actions/setup-go@v1
  with:
    go-version: 1.12.x
/bin/tar xzC /home/runner/work/_temp/a019414e-aed8-4b3a-ab61-ad7003d09d12 -f /home/runner/work/_temp/8575e7d9-8f51-4d45-b8d0-0461f5b12f08
Added matchers: 'go'. Problem matchers scan action output for known warning or error strings and report these inline.

Which says nothing about what actually got installed.

Compare this to travis_setup_go, which will give you:

$ travis_setup_go
go version go1.13.5 linux/amd64
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.13.5.linux.amd64/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.0/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin"
$ export GO111MODULE="on"
$ gimme version
v1.5.3
$ go version
go version go1.13.5 linux/amd64
$ go env
< snipped >

Or for tip:

$ travis_setup_go
go version devel +7d30af8e17 Fri Dec 13 20:41:04 2019 +0000 linux/amd64
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.0/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin"
$ export GO111MODULE="on"
$ gimme version
v1.5.3
$ go version
go version devel +7d30af8e17 Fri Dec 13 20:41:04 2019 +0000 linux/amd64
$ go env
< snipped >

Which gives much more information about the Go environment that the job used.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bryanmacfarlanecommented, Apr 6, 2020

@sagikazarmark - here ya go. in master now. I’ll push to v2-beta

Screen Shot 2020-04-06 at 8 44 54 AM
1reaction
sagikazarmarkcommented, Apr 3, 2020

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

KB5005652—Manage new Point and Print default driver ...
Install print drivers when the new default setting is enforced. If you set RestrictDriverInstallationToAdministrators as not defined or to 1, depending on your ......
Read more >
How to List Installed Python Packages - ActiveState
To list installed packages in an Anaconda environment using Anaconda Navigator, do the following: Start the Anaconda Navigator application.
Read more >
python - Find which version of package is installed with pip
I know about pip install XYZ --upgrade but I am wondering if there is anything like pip info XYZ . If not what...
Read more >
Check the version of Python package/library - nkmk note
If you are using the Python package management system pip, you can check the information of the installed package with the following command....
Read more >
Managing environments - Conda
With conda, you can create, export, list, remove, and update environments that have different versions of Python and/or packages installed in them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found