ipfs / ipfs-update

An updater tool for Kubo IPFS binary
https://dist.ipfs.tech/#ipfs-update
MIT License
137 stars 60 forks source link

ipfs-update in dockerfile failing - cannot load crypto/ed25519 #114

Closed mitra42 closed 4 years ago

mitra42 commented 4 years ago

ipfs-update is failing again in dockers .... symptom is a line like

build github.com/ipfs/ipfs-update: cannot load crypto/ed25519: cannot find module providing package crypto/ed25519

during the go get of ipfs-update.

I'll post more details below ....

mitra42 commented 4 years ago

Dockerfile extracts ....

FROM ubuntu:rolling
...
ENV GOPATH=/go
ENV PATH=${GOPATH}/bin:${PATH}
...
RUN apt-get -y install golang
...
RUN cd ${GOPATH} \
    GO111MODULE=on go get -u -v github.com/ipfs/ipfs-update \
    && ipfs-update install latest \
    || echo "ERROR: ===== ipfs-update failing again, will run without enabling IPFS ====="
mitra42 commented 4 years ago

Suggestions elsewhere in https://github.com/micro/go-micro/issues/748 suggest you need Go 1.13 to solve this (the other suggestions there didn't work) BUT ubuntu is still on 1.12,

Is there a solution or is ipfs-update no longer docker compatible till ubuntu ups the Go version to 1.13 ?

Stebalien commented 4 years ago

Don't pass -u to go get. That tells go to update the dependencies (which won't work on go 1.12).

mitra42 commented 4 years ago

Thanks - that fixed it