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.

I looked through the installer.js script and it looked to me like only tags from https://github.com/golang/go/tags are supported as valid versions to install.

I would imagine that some users would also want to test their Go programs against tip to ensure that upcoming language changes/additions don’t break.

Go even provides a way to install tip via https://godoc.org/golang.org/dl/gotip (once you have a single Go version installed that is).

What do you think?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:24
  • Comments:41 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
tsatkecommented, Nov 2, 2019

I would like being able to use it in go_version: [1.11, 1.12, 1.13, tip]

4reactions
zikaerohcommented, Oct 17, 2021

For now, I’ve done the following:

- name: Install Go
  if: matrix.go != 'tip'
  uses: actions/setup-go@v2
  with:
    go-version: ${{ matrix.go }}

- name: Install gotip
  if: matrix.go == 'tip'
  run: |
    git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
    cd $HOME/gotip/src
    ./make.bash
    echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
    echo "$HOME/gotip/bin:$PATH" >> $GITHUB_PATH

Because I’m lazy I used gotip rather than cloning directly (EDIT: Updated to just clone and build as @mvdan suggested; it’s faster), but in addition to modifying $PATH, $GOROOT has to get set for some reason to get the correct $GOTOOLDIR (even though it should be inferred; probably some existing environment variable). No need to run setup-go to bootstrap this stage, since the builders come with a Go version already installed. Takes about 3 minutes to build.

I haven’t tested this with anything but a Linux host. It probably needs a shell option to say it’s a bash script. Probably could be simplified as well.

(EDIT: updated 2021-10-17 for new versions and GHA changes 😄)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Child Support Tip Line | cssd
Use the Child Support Tip Line to anonymously give information to help find non-custodial parents.
Read more >
Support Tip: Known Issues with Intune policy reports
We are working towards having consistent, accurate information across all the policy reports in the console. This includes device configuration ...
Read more >
Litigation Support Tip of the Night
Sean O'Shea has more than 15 years of experience in the litigation support field with firms in New York and San Francisco. A...
Read more >
Tent Support Tip - coleman pop up parts
These pins are commonly found on the center canvas support poles and awning poles. Measures 3/4 of an inch across the bottom where...
Read more >
Quad-Support Cane Tip | Mobility Accessories - Drive Medical
Quad-Support Cane Tip · FEATURES/BENEFITS · SPECIFICATION · Parts Diagram/Technical Resources & Downloads · HCPCS REIMBURSEMENT CODE.
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