Closed vmx closed 9 months ago
This error is from a Go 1.21 runtime. My fix is failing because it's running on a Go 1.17 runtime.
Your CI link avoids the Go 1.17 install step.
The proper command for Go >= 1.21 is in branch: fix431 Otherwise the line is correct for Go <= 1.20
What version of Go should be be using here? We should probably ensure it because it appears that tests are being ran with different Go versions. I don't think we require Go 1.21 yet in Lotus, so we really shouldn't be seeing the bug (yet). So the right fix will be to pin the right version of Go.
If you would like help with that, let me know which version you're building this for.
So the right fix will be to pin the right version of Go.
The Lotus team should make the call on which version of Go it makes sense to run the CI on. I agree that all tests should be run on the same Go version.
As Lotus is requiring Go 1.20 I decided to go for that in https://github.com/filecoin-project/filecoin-ffi/pull/435.
https://github.com/filecoin-project/filecoin-ffi/pull/435 fixed this issue.
Currently master if failing on CI: https://app.circleci.com/pipelines/github/filecoin-project/filecoin-ffi/3025/workflows/6477ffa8-3057-4d33-82f5-cdc665d478e1/jobs/18154
due to:
Note that it only fails on ARM.
It seems to be triggered by these lines:
https://github.com/filecoin-project/filecoin-ffi/blob/441fa8e61189dc32c2960c1f8d8ba56269f20366/.circleci/config.yml#L354-L357