Golang dependencies not working
fbremec opened this issue · 3 comments
Hello,
The golang dependencies not working for me. I run the command below :
kubeless function deploy create-account --runtime go1.12 --handler handler.CreateAccount --from-file ./createaccount.go --dependencies Gopkg.toml
the result error is :
failed to list versions for http://github.com/go-bongo/bongo: fatal: unable to access 'http://github.com/go-bongo/bongo/': Could not resolve host: github.com
: exit status 128
Can you please suggest if i am missing anything ?
Hi @fbremec,
I am not able to reproduce your issue. I assume that go-bongo/bongo
is a dependency listed in your Gopkg.toml
, right?
Apparently, the pod installing dependencies has no internet access (it cannot reach github). Could that be the reason?
Yes the dependency is in the Gopkg.toml.
I run the function into a minikube cluster. My host have an internet access and i run the minikube cluster without vm driver so i think that minikube cluster have internet access.
mm, in that case, it should be able to connect. What's your output when executing:
kubectl get po -o yaml <pod_name>
(being ` the name of your function pod)
That should show a bit more of information about what can be wrong.