Skip to content

🐞 Go SDK codegen fails on private transitive Go module deps since v0.20.4 #13056

Closed

Description

@tmablunar

What is the issue?

Dagger v0.20.4+ fails to load any Go-based Dagger module whose go.mod has a private transitive Go dependency (github.com/org/private/libs).

The failure happens during SDK codegen

Might have been introduced in #11826

Works on v0.20.3

Dagger version

v0.20.4

Steps to reproduce

Create a dagger module using go with a dependency on a private go library

{
  "name": "test-module",
  "engineVersion": "v0.20.4",
  "sdk": {
    "source": "go",
    "config": {
      "goprivate": "github.com/test-org/private/libs"
    }
  }
}

Build the module

dagger call -m ./test-module --socket=$(echo $SSH_AUTH_SOCK)

Log output

INFO writing path=internal/dagger/dagger.gen.go
INFO needs another pass...
go: github.com/test-org/private/[email protected]...: invalid version:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Error: ensure dagger package: failed to get dagger.io/dagger@: exit status 1

Activity

  1. self-assigned this
    on Apr 29, 2026
  2. tmablunar commented on May 26, 2026

    @tmablunar
    Author

    Any update on this? We are still pinned to v0.20.3 because of this.

  3. tmablunar commented on Jun 11, 2026

    @tmablunar
    Author

    @grouville are you able to give a status on this?

  4. grouville commented on Jun 16, 2026

    @grouville
    Member

    Sorry I forgot about it. Thanks for the ping 🙏 The fix is ready to be merged

  5. grouville commented on Jun 16, 2026

    @grouville
    Member

    @grouville are you able to give a status on this?

    We are releasing a new version to unlock you today / this week 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions