I'm struggling a bit with directories. Rather than having to pass a *dagger.Directory in as an arg to my function i'd like to hardcode the path. From looking at the go SDK docs it appears the way to do this would be using dagger.Client.Host().Directory("some-local-poath") however in 0.15.1 the Host() method doesnt appear to exist on the dag global?
I may be holding it wrong but am a bit confused right now. What would be the correct way to hardcode a directory. What i'd like to do in code is:
func (m *CI) BuildMyAwesomeComponent() *dagger.Container {
return m.GolangBuildContainer().
WithDirectory("/work", dag.Host().Directory("/path/to/checked/out/repo/root"))
}