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 use Go 1.16 beta? #92

Closed
marten-seemann opened this issue Dec 19, 2020 · 2 comments
Closed

How to use Go 1.16 beta? #92

marten-seemann opened this issue Dec 19, 2020 · 2 comments

Comments

@marten-seemann
Copy link

I have a Go 1.16 project that I'd like to test, but as far as I can see, the beta is neither available on go-versions nor on go dist.

This would be really helpful for the Go ecosystem, as beta (and RC) versions need to be actually used if we are supposed to actually find and report bugs before the official release.

@marten-seemann
Copy link
Author

Figured it out:

uses: actions/setup-go@v2
    with:
          stable: false
          go-version: '1.16.0-beta1'

It actually is available on go dist, the directory listing just doesn't doesn't show all available versions (looks like the XML is truncated at some point).

@marten-seemann
Copy link
Author

marten-seemann commented Dec 23, 2020

Tip: Here's how you could use this in a matrix build.

strategy:
    matrix:
        go: [ "1.15", "1.16.0-beta1" ]
    steps:
        - uses: actions/setup-go@v2
            with:
                stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
                go-version: ${{ matrix.go }}

EDIT: The logic for stable was the wrong way around. Fixed that.

kolyshkin added a commit to kolyshkin/runc that referenced this issue Jan 26, 2021
Courtesy of actions/setup-go#92

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
kolyshkin added a commit to kolyshkin/runc that referenced this issue Jan 26, 2021
Courtesy of actions/setup-go#92

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
kolyshkin added a commit to kolyshkin/runc that referenced this issue Jan 26, 2021
Courtesy of actions/setup-go#92

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
kolyshkin added a commit to kolyshkin/runc that referenced this issue Jan 26, 2021
Courtesy of actions/setup-go#92

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
kolyshkin added a commit to kolyshkin/runc that referenced this issue Jan 26, 2021
Courtesy of actions/setup-go#92

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
kolyshkin added a commit to kolyshkin/runc that referenced this issue Jan 28, 2021
Courtesy of actions/setup-go#92

[v2: update from beta1 to rc1]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
dqminh pushed a commit to dqminh/runc that referenced this issue Feb 3, 2021

Verified

This commit was signed with the committer’s verified signature.
dqminh Daniel, Dao Quang Minh
Courtesy of actions/setup-go#92

[v2: update from beta1 to rc1]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
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

1 participant