-
Notifications
You must be signed in to change notification settings - Fork 1.6k
assert: remove deprecated build constraints #1671
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
base: master
Are you sure you want to change the base?
assert: remove deprecated build constraints #1671
Conversation
I'm not confident enough that there aren't people out there using go <= 1.17. While we express support for 1.19 we wont do things that would break earlier versions when we don't need to. |
@brackendawson There are no people who use testify with Go 1.16 and below because it's not possible. It simply does not compile: ❯ go1.16 build ./...
# github.com/stretchr/testify/assert
assert/assertion_compare.go:316:17: obj1Value.CanConvert undefined (type reflect.Value has no field or method CanConvert)
assert/assertion_compare.go:342:17: obj1Value.CanConvert undefined (type reflect.Value has no field or method CanConvert)
assert/assertions.go:100:23: field.IsExported undefined (type reflect.StructField has no field or method IsExported)
note: module requires Go 1.17 |
Ooh, maybe then. |
@dolmen added both forms of build tag far more recently than we set the go directive to 1.17. Was there a reason for adding the older form that we're not aware of? |
e068510
to
f3e6f1a
Compare
f3e6f1a
to
0b6039e
Compare
Summary
This PR removes outdated build constraints.
Changes
Remove unnecessary
// +build
comments from files in theassert/yaml
package.Motivation
To cleanup the code.
The "Build constraints" says:
It's a safe change because the minimum supported version by
testify
is Go 1.17.