#(Golang) Dumb question, When should you use dagger.io/dagger versus dagger/<module>/internal/dagger?

1 messages · Page 1 of 1 (latest)

clear cypress
#

I'm trying to have a ci workflow that checks out n repositories and executes different builds of their components. However I'm unsure if I should use the module workflow or just directly execute them with something like this: https://dagger.io/blog/dockerfiles-with-dagger

The real question stems from dagger.Connect The internal version takes no parameters versus the dagger.io version takes two parameter(ctx, opts). I think I've got something wrong in my mental model

#

It looks like the internal version has to do with the golang generated code specifically for managing the module?

warm reef
#

That's correct. You use the published library when not using modules, like with dagger run go run script.go.