Get package from private repository for digital ocean functions

I am working on DO functions using golang. I have a separate package in a separate organization/user. I am a contributor.

I was able to fetch it from private repo locally using go get -u

When I try to deploy functions by the command doctl serverless deploy . --remote-build I am getting errors

fatal: could not read Username for '': terminal prompts disabled

Any help would be appreciated.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Wasn’t sure I understood this correctly, but after talking with DO support I do.

Unless your cloud function is self-contained or you’re doing an open source project, using Functions with Golang is a no-go. There is currently no way to import private repos into Golang functions.

Our function calls reusable code that would need to replicated in each function to match current capabilities.

Did you (or anyone else) find a workaround to this issue?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up