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

update Go to 1.17.0 #568

Merged
merged 1 commit into from
Aug 24, 2021
Merged

update Go to 1.17.0 #568

merged 1 commit into from
Aug 24, 2021

Conversation

dekkagaijin
Copy link
Member

Signed-off-by: Jake Sanders jsand@google.com

Signed-off-by: Jake Sanders <jsand@google.com>
@dlorenc
Copy link
Member

dlorenc commented Aug 24, 2021

@dekkagaijin
Copy link
Member Author

I think you missed one spot here: https://github.com/sigstore/cosign/blob/main/release/cloudbuild.yaml

They've always lagged a bit behind upstream Go releases: ghcr.io/gythialy/golang-cross

@dlorenc dlorenc merged commit 2f805aa into main Aug 24, 2021
@dlorenc dlorenc deleted the go-version branch August 24, 2021 21:56
@cpanato cpanato added this to the v1.1.0 milestone Aug 25, 2021
znewman01 added a commit to znewman01/cosign that referenced this pull request Jan 19, 2022
[sigstore#568](sigstore#568) bumps the Go version
for tests to 1.17. Now they break for 1.16:

```sh
TMPDIR=$(mktemp -d)
cd $TMPDIR
git clone https://github.com/sigstore/cosign 2> /dev/null
cd cosign

for go in go_1_16 go_1_17; do
  nix-shell \
    -p ${go} \
    -p gnumake \
    --command 'make test' \
    > /dev/null 2>&1
  if [ $? -eq 0 ]; then
    echo ${go} good
  else
    echo ${go} bad
  fi
done
```

[sigstore#1252](sigstore#1252) adds a call to
`testing.T.Setenv`, added in
[1.17](https://go-review.googlesource.com/c/go/+/326790/3/api/go1.17.txt),
which caused this breakage.

(We're still testing *builds* on 1.16, so that's fine.)
znewman01 added a commit to znewman01/cosign that referenced this pull request Jan 19, 2022
[sigstore#568](sigstore#568) bumps the Go version
for tests to 1.17. Now they break for 1.16:

```sh
TMPDIR=$(mktemp -d)
cd $TMPDIR
git clone https://github.com/sigstore/cosign 2> /dev/null
cd cosign

for go in go_1_16 go_1_17; do
  nix-shell \
    -p ${go} \
    -p gnumake \
    --command 'make test' \
    > /dev/null 2>&1
  if [ $? -eq 0 ]; then
    echo ${go} good
  else
    echo ${go} bad
  fi
done
```

[sigstore#1252](sigstore#1252) adds a call to
`testing.T.Setenv`, added in
[1.17](https://go-review.googlesource.com/c/go/+/326790/3/api/go1.17.txt),
which caused this breakage.

(We're still testing *builds* on 1.16, so that's fine.)

Signed-off-by: Zachary Newman <z@znewman.net>
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

Successfully merging this pull request may close these issues.

3 participants