Question

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

GOPRIVATE=github.com go get -u github.com/org/go-pack

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

fatal: could not read Username for 'https://github.com': terminal prompts disabled

Any help would be appreciated.

Show comments

Submit an answer
Answer a question...

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?