Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build with unstable pre-releases of Go #11

Closed
skaldarnar opened this issue Dec 19, 2021 · 3 comments
Closed

How to build with unstable pre-releases of Go #11

skaldarnar opened this issue Dec 19, 2021 · 3 comments

Comments

@skaldarnar
Copy link

I'm trying to build a little extension and (for whatever esoteric reason) would like to build with the 1.18beta1 version of Go. Is there a way to do that?

I found a paragraph in the docs of actions/setup-go that looks like it should in theory be possible to specify non-release versions:

  - uses: actions/setup-go@v2
    with:
      stable: 'false'
      go-version: '1.14.0-rc1' # The Go version to download (if necessary) and use.

However, the corresponding part in this action only allows to set the go-version, but we cannot set the stable flag to false, can we?

- uses: actions/setup-go@v2
with:
go-version: ${{ inputs.go_version }}

Would a fix be as simple as adding another input option and passing that through?

@skaldarnar
Copy link
Author

Update: I took this journey further and was finally able to build my gh extension with Go 1.18beta1. See actions/setup-go#177 (comment) for more details.

Would 8c82798 be an acceptable contribution?

@mislav
Copy link
Contributor

mislav commented Dec 20, 2021

@skaldarnar That looks like it would solve it; PR welcome! 🙇

@mislav
Copy link
Contributor

mislav commented Jun 8, 2022

f2ea312

@mislav mislav closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@mislav @skaldarnar and others