-
Notifications
You must be signed in to change notification settings - Fork 280
Description
Steps to Reproduce
Build step-cli and Eexecute the go tests on linux 32 bit platforms (armhf, armv7 and x86)
The test github.com/smallstep/cli/internal/cast fails with:
cannot use math.MinInt32 - 1 (untyped int constant -2147483649) as int value in argument to cast.Int32 (overflows)
Your Environment
- OS linux 32bit armhf , armv7, x86
step
CLI Version -0.28.3
Expected Behavior
go test is successful on 32bit linux platforms
Actual Behavior
Failing test github.com/smallstep/cli/internal/cast_test :
github.com/smallstep/cli/internal/cast_test [github.com/smallstep/cli/internal/cast.test]
internal/cast/cast_test.go:59:40: cannot use math.MinInt32 - 1 (untyped int constant -2147483649) as int value in argument to cast.Int32 (overflows)
internal/cast/cast_test.go:63:40: cannot use math.MaxInt32 + 1 (untyped int constant 2147483648) as int value in argument to cast.Int32 (overflows)
internal/cast/cast_test.go:68:55: cannot use math.MaxUint32 (untyped int constant 4294967295) as int value in argument to cast.Uint32 (overflows)
internal/cast/cast_test.go:77:41: cannot use math.MaxUint32 + 1 (untyped int constant 4294967296) as int value in argument to cast.Uint32 (overflows)
internal/cast/cast_test.go:90:40: cannot use math.MaxUint32 + 1 (untyped int constant 4294967296) as int value in argument to cast.Uint8 (overflows)
see Build Logs:
https://gitlab.alpinelinux.org/wdev/aports/-/jobs/1740037
https://gitlab.alpinelinux.org/wdev/aports/-/jobs/1740032
https://gitlab.alpinelinux.org/wdev/aports/-/jobs/1740031
Additional Context
the new test was introduced witkh pull request #1363
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).