Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Golang dependencies not working #47

Open
fbremec opened this issue Oct 17, 2019 · 3 comments
Open

Golang dependencies not working #47

fbremec opened this issue Oct 17, 2019 · 3 comments

Comments

@fbremec
Copy link

fbremec commented Oct 17, 2019

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 ?

@fbremec fbremec changed the title Golang dependencies not work Golang dependencies not working Oct 17, 2019
@andresmgot
Copy link
Contributor

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?

@fbremec
Copy link
Author

fbremec commented Oct 21, 2019

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.

@andresmgot
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants