Open davis190 opened 3 years ago
Had the same on armhf. Did a quick hack and this got it building but its far from optimal. Im sure there is a better way but im out of time:
RUN export PATH=$PATH:$GOPATH/bin GODEBUG=netdns=go
RUN cd /usr/app/src/github.com/DataDog/datadog-agent
RUN mkdir -p $GOPATH/src/golang.org/x \
&& git clone https://github.com/golang/lint.git $GOPATH/src/golang.org/x/lint \
&& go get -u golang.org/x/lint/golint
RUN mkdir -p $GOPATH/src/github.com/spf13/pflag \
&& git clone https://github.com/spf13/pflag.git $GOPATH/src/github.com/spf13/pflag \
&& go get -u github.com/spf13/pflag
RUN invoke deps -v
I did something similar for my workaround, also not ideal.
RUN go get -d github.com/spf13/pflag
RUN mkdir -p /usr/app/src/github.com/spf13/pflag
RUN cp -r /usr/app/pkg/mod/github.com/spf13/pflag@v1.0.5/* /usr/app/src/github.com/spf13/pflag
RUN export PATH=$PATH:$GOPATH/bin GODEBUG=netdns=go && \
cd /usr/app/src/github.com/DataDog/datadog-agent && \
invoke deps -v
Hi @davis190 @jezzab thank you for sharing your solutions. Can you please open a PR with your changes?
With the repo maintainers, we can all work together to clean up and merge the changes.
My build is also failing with same error, can you please post the whole Dockerfile.template, which is working. Thx
Using the link from here: https://www.balena.io/blog/monitoring-your-balena-devices-with-datadog/ and building on generic x86_64 the build is failing.
Logs
From balena UI
From running
balena deploy <APP> --debug
Steps to reproduce: