Hi, I am unable to resolve this issue so hopefully reaching out to maybe get some help. Essentially my golang service uses a private module hosted on github. Having this in the root go.mod has completely broken dagger. The directory containing dagger has its on go.mod/sum file and I am using go.work. The structure is like the following:
|- dagger/
- go.mod
- go.sum
- main.go
|- cmd/
|- service1
- main.go
|- pkg/
|- foo/
- foo.go
- go.mod <- contains the private module reference
- go.sum
- go.work
I've stripped out everything from dagger/main.go but getting the following: on any dagger call
Error: input: module.withSource.initialize resolve: failed to initialize module: failed to call module "services-foo" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
internal/dagger/dagger.gen.go:17:2: github.com/foo/bar@v0.0.0-20241003134503-1005ef8b342d: invalid version: git ls-remote -q origin in /go/pkg/mod/cache/vcs/3ad0407fede9804847d8af0ca1762538df78a9d4576bacbd52dec9cdf79066f0: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Im not even trying to build the application, which I would have expected as I would need to pass the container the SSH_AUTH_SOCK
Im at a loss as to resolve this - even tried vendoring.