list stuff

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 22:59:08 +02:00
parent 3123986512
commit 5b43195fef
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -37,6 +37,8 @@ func Build(builder *internal.Builder, imageTag string) error {
for _, d := range dir {
log.Printf("content: %s\n", d.Name())
}
} else {
return err
}
log.Println("listing files in /src/docker")
@ -47,6 +49,14 @@ func Build(builder *internal.Builder, imageTag string) error {
}
}
log.Println("listing files in /src/")
dir, err = os.ReadDir("/src/")
if err == nil {
for _, d := range dir {
log.Printf("content: %s\n", d.Name())
}
}
golang := client.Container().From("golang:latest")
golang = golang.WithMountedDirectory("/src/build", src).WithWorkdir("/src")
_, err = golang.Exec(dagger.ContainerExecOpts{