I seem to be having an issue resolving private go packages, but only when I chain one dagger module to another, and only when running in GitHub Actions for some reason I can't quite yet figure out..
Setup:
- GitHub Actions -> private dag module #1 ("entrypoint")
- private dag mod #1 -> private dag mod #2 ("do-stuff")
- both private dagger modules have private go module dependencies
goprivateis set in the dagger.json for both dagger modules to"github.com/my-org/*"- first module codegen is fine
- second module codegen seems to no longer have access to the ssh key / ssh agent socket needed to complete its
go mod tidystep
I've tried putting all the dagger modules into a monorepo and installing the "do-stuff" module as a dependency of the "entrypoint" module, but same results as when the two dagger modules are in different repos.
I've tested it w/out GitHub Actions, and it seems to work fine locally.
If the SSH_AUTH_SOCK wasn't being forwarded at all, even the first module would not build, as it also has private go module dependencies. (a different one, in case that matters)
For now, the ssh key I'm using is the same locally and in github actions, and it has access to all the repos (private dagger modules and private go modules) needed.
Is there something special that happens when I chain the modules like that, and run it inside of GitHub Actions Runners that I'm missing / something I need to tweak for this case?
Many thanks if anyone can take a moment and just point me in a sane direction here. (or an insane one, as long as I can move forward, that's fine too)