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

toolchain update #290

Merged
merged 8 commits into from
Nov 23, 2021
Merged

toolchain update #290

merged 8 commits into from
Nov 23, 2021

Conversation

ffromani
Copy link
Collaborator

Rotate the supported golang versions: golang 1.14, add golang 1.17. Includes fix to keep CI green.

Fixes: #289

After we fixed jaypipes#275 (allow marshal/unmarshal cycle for block.Info),
we discovered few more occourrences which also prevented
full JSON encode/decode/encode cycles (aka roundtrips).

All of the new findings still see unnecessary limitations,
so this patch adds the missing functions.

Fixes: jaypipes#283
Signed-off-by: Francesco Romani <fromani@redhat.com>
Let's begin the toolchain rotation by removing golang 1.14
from the supported set. It's just too old nowadays (november 2021).

Signed-off-by: Francesco Romani <fromani@redhat.com>
The minimum version of golang we recommend and test in CI is 1.15 anyway.

Signed-off-by: Francesco Romani <fromani@redhat.com>
This PR implements the changes automatically done using
```
gofmt -s -w .
```

Signed-off-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
Remove generic test that needs to be moved in the os-specific
test until the tier-2 platform (mac, win) catch up with the
implementation.

These tests are meant to be in the linux-specific test from
the beginning, they seem to have sneaked in the generic codebase
due to a rebase glitch.

Signed-off-by: Francesco Romani <fromani@redhat.com>
Add golang 1.17 to our supported matrix.

Signed-off-by: Francesco Romani <fromani@redhat.com>
We used golang 1.15 on mac only because it
was the latest version available.

Signed-off-by: Francesco Romani <fromani@redhat.com>
@ffromani ffromani changed the title WIP: toolchain update toolchain update Nov 23, 2021
Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you sir!

@@ -4,6 +4,7 @@
// See the COPYING file in the root project directory for full text.
//

//go:build linux
// +build linux
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in a future PR, we should move this to the top of the file, to be consistent with all the other files. Same with other _test.go fles...

@jaypipes jaypipes merged commit b1b38be into jaypipes:main Nov 23, 2021
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.

update golang stack in CI
2 participants