-
Notifications
You must be signed in to change notification settings - Fork 239
Bump Expected Minimum Go Version to 1.17 #933
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
Labels
enhancement
New feature or request
Milestone
Comments
bflad
added a commit
that referenced
this issue
Apr 11, 2022
Reference: #933 Previously from `tenv` linter: ``` helper/schema/schema_test.go:29:2: os.Setenv() can be replaced by `t.Setenv()` in TestEnvDefaultFunc (tenv) if err := os.Setenv(key, "foo"); err != nil { ^ helper/schema/schema_test.go:67:2: os.Setenv() can be replaced by `t.Setenv()` in TestMultiEnvDefaultFunc (tenv) if err := os.Setenv(keys[0], "foo"); err != nil { ^ helper/schema/schema_test.go:85:2: os.Setenv() can be replaced by `t.Setenv()` in TestMultiEnvDefaultFunc (tenv) if err := os.Setenv(keys[1], "foo"); err != nil { ^ helper/schema/schema_test.go:8479:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorDefaultsFalse (tenv) os.Setenv("TF_ACC", "") ^ helper/schema/schema_test.go:8484:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorDefaultsFalse (tenv) os.Setenv("TF_ACC", oldEnv) ^ helper/schema/schema_test.go:8490:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorTF_ACCSet (tenv) os.Setenv("TF_ACC", "1") ^ helper/schema/schema_test.go:8495:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorTF_ACCSet (tenv) os.Setenv("TF_ACC", oldEnv) ^ ```
bflad
added a commit
that referenced
this issue
Apr 12, 2022
Reference: #933 Previously from `tenv` linter: ``` helper/schema/schema_test.go:29:2: os.Setenv() can be replaced by `t.Setenv()` in TestEnvDefaultFunc (tenv) if err := os.Setenv(key, "foo"); err != nil { ^ helper/schema/schema_test.go:67:2: os.Setenv() can be replaced by `t.Setenv()` in TestMultiEnvDefaultFunc (tenv) if err := os.Setenv(keys[0], "foo"); err != nil { ^ helper/schema/schema_test.go:85:2: os.Setenv() can be replaced by `t.Setenv()` in TestMultiEnvDefaultFunc (tenv) if err := os.Setenv(keys[1], "foo"); err != nil { ^ helper/schema/schema_test.go:8479:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorDefaultsFalse (tenv) os.Setenv("TF_ACC", "") ^ helper/schema/schema_test.go:8484:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorDefaultsFalse (tenv) os.Setenv("TF_ACC", oldEnv) ^ helper/schema/schema_test.go:8490:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorTF_ACCSet (tenv) os.Setenv("TF_ACC", "1") ^ helper/schema/schema_test.go:8495:2: os.Setenv() can be replaced by `t.Setenv()` in TestPanicOnErrorTF_ACCSet (tenv) os.Setenv("TF_ACC", oldEnv) ^ ```
Completed yesterday: #934 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
terraform-plugin-sdk version
Use cases
Following the Go support policy and given the ecosystem availability and stability of the latest Go minor version, it's time to upgrade. This will ensure that this project can use recent improvements to the Go runtime, standard library functionality, and continue to receive security updates
Proposal
//+build
:.github/workflows/*.yml
) use 1.18 in place of any 1.17 and 1.17 in place of any 1.16 or earlier.go-version
is at least 1.17 or latertenv
linter in.golangci.yml
and remediate any issues.References
The text was updated successfully, but these errors were encountered: