in targets/target.go [227:242]
func (t *Target) goMD2Man() *dagger.File {
repo := "https://github.com/cpuguy83/go-md2man.git"
ref := "v2.0.2"
outfile := "/build/bin/go-md2man"
srcDir := t.client.Git(repo, dagger.GitOpts{KeepGitDir: true}).Commit(ref).Tree()
goRef := fmt.Sprintf("%s:%s", GoRepo, t.goVersion)
c := t.client.Container().
From(goRef).
WithDirectory("/build", srcDir).
WithWorkdir("/build").
WithEnvVariable("CGO_ENABLED", "0").
WithExec([]string{"go", "build", "-o", outfile})
return c.File(outfile)
}