Hello, new dagger user here.
I see the documentation for authenticating with a private git repo is 1) for an old version of dagger and 2) uses the client = dagger.Client form instead of the quickstart's preinitialized dag.
Thus the recommendation of:
readme, err := client.
Git("git@private-repository.git", dagger.GitOpts{
SSHAuthSocket: client.Host().UnixSocket(sshAgentPath),
}).
...
Doesn't work. The dag object doesn't have a Host() method and the dag.Git() function cannot accept the dagger.GitOpts because it is the wrong type. It is asking for a GitOpts from a module local source.
How do I translate to/from the client = dagger.Client form and preinitialized dag form?