#Initialize golang module in a hidden path breaks dagger

1 messages · Page 1 of 1 (latest)

twilit ember
#

Seems like initializing a new golang module with a . in front of the module name won't work

dagger init --sdk go --name .dagger --source .dagger .dagger
results in:

Stderr:
Error: generate code: template: module.go.tmpl:85:3: executing "_dagger.gen.go/module.go.tmpl" at <ModuleMainSrc>: error calling ModuleMainSrc: cannot find default codegen GraphQLMarshaller interface in:
[Dagger, DaggerObject, ExecError, Tracer, dag, marshalCtx, setMarshalContext]
#

Initialize golang module in a hidden path breaks dagger

#

Is this a know issue?

exotic cradle
#

Yeah, module names shouldn’t have dots. Should only use a dash apart from letters.

twilit ember
#

Oh, so a concious decision that is then 🙂

exotic cradle
#
dagger init --sdk=go --source=.dagger
twilit ember
#

👍

exotic cradle
#

This will put dagger.json in current directory with the same name. You can choose another name.