multiversx / mx-chain-observing-squad

Docker images and scripts for setting up an MultiversX Observing Squad
11 stars 12 forks source link

utils/elrond-go-keygenerator: build fails on vendor dependency #31

Closed muhlemmer closed 1 year ago

muhlemmer commented 2 years ago

Description:

The build of the Dockerfile in utils/elrond-go-keygenerator fails on the vendor package github.com/herumi/bls-go-binary/bls:

Step 6/9 : RUN go build
 ---> Running in cc99ff9d1e43
# github.com/herumi/bls-go-binary/bls
../../vendor/github.com/herumi/bls-go-binary/bls/bls.go:17:10: fatal error: mcl/bn_c384_256.h: No such file or directory
 #include <mcl/bn_c384_256.h>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
The command '/bin/sh -c go build' returned a non-zero code: 2

Steps to reproduce

As per readme:

cd utils
docker image build . -t elrondnetwork/elrond-go-keygenerator:latest -f ./elrond-go-keygenerator

Work-around

Pin erlond-go version to tag v1.2.38, same as mainnet observer node image:

RUN git clone https://github.com/ElrondNetwork/elrond-go.git && cd elrond-go && git checkout --force tags/v1.2.38
iulianpascalau commented 1 year ago

This should be fixed by now as the afore mentioned error occurred because the go mod vendor call should not be done on golang versions higher than 1.13. Will close this issue, please re-open it if the problem still occurs. Thanks.