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

Drop Go 1.15 support #3245

Merged
merged 4 commits into from
Oct 17, 2021
Merged

Drop Go 1.15 support #3245

merged 4 commits into from
Oct 17, 2021

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Oct 13, 2021

Drop Go 1.15 support, requiring Go >= 1.16. Motivated by #3242 (comment), should unblock that PR.

The last commit drops use of io/ioutil, which is not really required and can be postponed for later time (say after Go 1.18 release, which will probably mark ioutil package as deprecated).

@h-vetinari
Copy link

The commit message "Require Go <= 1.16" looks like it's the wrong way around.

@kolyshkin
Copy link
Contributor Author

libcontainer/devices/device_unix_test.go:67:24: undefined: fs.FileInfoToDirEntry

@kolyshkin
Copy link
Contributor Author

Reading package lists...
W: GPG error: https://download.opensuse.org/repositories/devel:/tools:/criu/xUbuntu_20.04 InRelease: The following signatures were invalid: EXPKEYSIG 30A8343A498D5A23 devel:tools OBS Project devel:[email protected]

@thaJeztah
Copy link
Member

Reading package lists...
W: GPG error: https://download.opensuse.org/repositories/devel:/tools:/criu/xUbuntu_20.04 InRelease: The following signatures were invalid: EXPKEYSIG 30A8343A498D5A23 devel:tools OBS Project devel:[email protected]

YUP 😔 moby/moby#42935

Jobs verify/compile-buildtags and verify/deps relied on whatever Go
version is available from the Ubuntu-20.04 image, which seems to be
1.15.x).

Job test/cross-i386 was installing whatever Go version is considered to
be the default one by actions/setup-go@v2, which seems to be go 1.15.15
at the moment.

Fix all three jobs to install Go 1.x (which should translate to latest
stable Go version, i.e. 1.17.2 as of now).

Signed-off-by: Kir Kolyshkin <[email protected]>
Go 1.15 is not supported since Go 1.17 release (16 Aug 2021), and some
packages that we use already require Go 1.16+ (notably,
github.com/cilium/ebpf v0.7.0).

Let's require Go 1.16+.

Remove Go version requirement from README when describing dependencies,
since it is no longer needed:

	$ GO=go1.15.15 make vendor
	go1.15.15 mod tidy
	go mod tidy: go.mod file indicates go 1.16, but maximum supported version is 1.15
	make: *** [Makefile:141: vendor] Error 1

Signed-off-by: Kir Kolyshkin <[email protected]>
One less TODO in the code, yay!

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Contributor Author

Rebased on top of just merged #3246; should fix CI

@kolyshkin kolyshkin changed the title [WIP] Drop Go 1.15 support Drop Go 1.15 support Oct 15, 2021
@kolyshkin
Copy link
Contributor Author

This one is ready to go, @AkihiroSuda @thaJeztah PTAL

I have removed go 1.15 checks from the list of required ones. Close/reopen to kick CI.

@kolyshkin kolyshkin closed this Oct 15, 2021
@kolyshkin kolyshkin reopened this Oct 15, 2021
@kolyshkin
Copy link
Contributor Author

@thaJeztah @cyphar PTAL

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 6d35069 into opencontainers:master Oct 17, 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.

4 participants