-
Notifications
You must be signed in to change notification settings - Fork 296
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
Golang 1.17 compat #337
base: main
Are you sure you want to change the base?
Golang 1.17 compat #337
Conversation
Signed-off-by: Evan Lezar <[email protected]>
Signed-off-by: Evan Lezar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only a nit, the rest works for me
@@ -0,0 +1,27 @@ | |||
/** | |||
# Copyright 2023 NVIDIA CORPORATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24
//go:build !go1.20 | ||
|
||
/** | ||
# Copyright 2023 NVIDIA CORPORATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24
//go:build go1.20 | ||
|
||
/** | ||
# Copyright 2023 NVIDIA CORPORATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24
Some customers need to build the components of the NVIDIA Container Toolkit from source using Golang 1.17.
This MR defines some minor change that allow the project to be built using Go 1.17, with an
internal/errors
package being used to provide basicerrors.Join
functionality. This is the only feature we currently use from Go 1.20.Migrated from https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/merge_requests/516