Closed Olshansk closed 2 years ago
I know we updated to go 1.17 between releases but I haven't seen that error before. I'll take a look to see if I can reproduce it.
@mikelodder7 Have you had a chance to try this out? Simply running the tests still fails for me.
I’m going to review in depth later this week. Hopefully can reproduce and adjust. Thanks for keeping on it
I'm facing the same issue. It seems to be build tag related when running on arm64 M1 Mac, for the package to build you need to specify --tags=generic
pakkage: github.com/coinbase/kryptology/pkg/core/curves/native/bls12-381
tagged files:
arithmetic_decl.go: //go:build amd64 && !generic
arithmetic_fallback.go: //go:build !amd64 && generic
git clone git@github.com:coinbase/kryptology.git
cd kryptolog
go mod download
git rev-parse HEAD
go version
go test ./...
...
go test -tags=generic ./...
GOARCH=amd64 go test ./...
Should be fixed in #49
Seems like there is an issue with the
bls12-381
package in the 1.5.4 release.Using
go get github.com/coinbase/kryptology@v1.5.3
in my working directory works, whilego get github.com/coinbase/kryptology@v1.5.4
does not and results in the same errors as when I run the tests (see the image below).I believe it is related to the fact that bls12-381/arithmetic_decl.go uses the package package bls12381.
According to https://go.dev/blog/package-names, package names should either be
camelCase
orsnake_case
and not be hyphenated. If it is hyphenated, the package name should replace-
with_
.I spent about 40 minutes trying to simply rename everything, but the issue is a little more complex because of conflicting name dependencies and autogenerated vs source code, so I've decided to open this issue instead.