#"dagger call" fails when removing boilerplate functions in module

1 messages · Page 1 of 1 (latest)

full tundra
#

Hi,

I created a Dagger Module using dagger init and when I remove one of the boilerplate functions the module doesn't work anymore. Steps to replicate it:

  1. Remove the ContainerEcho func from main.go
  2. Run dagger call <another-existing-func>

The error is:

Stderr:
# dagger/go-dagger
./dagger.gen.go:607:23: (*GoDagger).ContainerEcho undefined (type *GoDagger has no field or method ContainerEcho)
deep rune
#

That shouldn't happen, can you share more details? What version of the dagger cli are you using?

willow pumice
full tundra
#

Apparently the issue occurs when calling dagger call inside the module itself. If I call it from the parent directory, it works.

#

Thanks for looking into it @willow pumice

willow pumice