You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a go module with a weird name with single dotted characters in it (e.g. "m.a.s.h"). I was running through the setup script when I encountered a weird error, "unable to find main object". I determined this error only occurs when there are single-dotted characters in the name field of dagger.json. I suspect the culprit is a mismatch between the arguments informing the generated go struct name
Yes, that error appears when there's no object in the module's code that match the module's name, taking into consideration naming convention conversions. Safest bet for module names is kebab-case.
What is the issue?
I have a go module with a weird name with single dotted characters in it (e.g. "m.a.s.h"). I was running through the setup script when I encountered a weird error, "unable to find main object". I determined this error only occurs when there are single-dotted characters in the name field of
dagger.json
. I suspect the culprit is a mismatch between the arguments informing the generated go struct nameand the gql object name
Dagger version
engine 6cf72caa80eb (version v0.11.2)
Steps to reproduce
Full reproduction script at https://github.com/SKalt/weird.name.repro/blob/main/repro.sh. Relevant excerpt:
Log output
Full output logs at https://github.com/SKalt/weird.name.repro/blob/main/output.txt. Relevant excerpt:
The text was updated successfully, but these errors were encountered: