herumi / bls-go-binary

22 stars 22 forks source link

release doesn't work properly in `go mod` #20

Closed cnlangzi closed 1 year ago

cnlangzi commented 1 year ago

the release branch is deleted from git when a version is released by https://github.com/herumi/bls-go-binary/actions/workflows/release.yml

it will throw below error. It is better to use fixed release branch to create new release, and never delete it from git.

# github.com/0chain/gosdk/zcncore/sample.test
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: directory not found for option '-L/Users/geax/code/go/pkg/mod/github.com/herumi/bls-go-binary@v1.30.4/bls/lib/darwin/amd64'
ld: library not found for -lbls384_256
clang: error: linker command failed with exit code 1 (use -v to see invocation)

# github.com/0chain/gosdk/zcncore.test
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: directory not found for option '-L/Users/geax/code/go/pkg/mod/github.com/herumi/bls-go-binary@v1.30.4/bls/lib/darwin/amd64'
ld: library not found for -lbls384_256
clang: error: linker command failed with exit code 1 (use -v to see invocation)

# github.com/0chain/gosdk/zcnswap/utils.test
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: directory not found for option '-L/Users/geax/code/go/pkg/mod/github.com/herumi/bls-go-binary@v1.30.4/bls/lib/darwin/amd64'
ld: library not found for -lbls384_256
clang: error: linker command failed with exit code 1 (use -v to see invocation)

# github.com/0chain/gosdk/zmagmacore/magmasc.test
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: directory not found for option '-L/Users/geax/code/go/pkg/mod/github.com/herumi/bls-go-binary@v1.30.4/bls/lib/darwin/amd64'
ld: library not found for -lbls384_256
clang: error: linker command failed with exit code 1 (use -v to see invocation)