Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example generation failed in the latest version #3495

Closed
zenbigjoe opened this issue Mar 12, 2024 · 3 comments
Closed

Example generation failed in the latest version #3495

zenbigjoe opened this issue Mar 12, 2024 · 3 comments

Comments

@zenbigjoe
Copy link

Hi
I get an error with the latest release during the example generation.
** failed to load template security_authfuncs: open templates/security_authfuncs.go.tpl: file does not exist **
I missing something or the template doesn't exist.

Goa version 3.15.1

@danielmichaels
Copy link

I've also hit this issue just today,

task: [example] goa example github.com/xx/server/design 
exit status 2
panic: failed to load template security_authfuncs: open templates/security_authfuncs.go.tpl: file does not exist

goroutine 1 [running]:
goa.design/goa/v3/codegen/service.readTemplate({0x9d1e64, 0x12})
        /home/danielmichaels/go/pkg/mod/goa.design/goa/[email protected]/codegen/service/templates.go:15 +0xf4
goa.design/goa/v3/codegen/service.exampleServiceFile({0xc00002b740, 0x26}, 0x9?, 0xc000237700, {0xc0003c2ff0, 0x9})
        /home/danielmichaels/go/pkg/mod/goa.design/goa/[email protected]/codegen/service/example_svc.go:92 +0x605
goa.design/goa/v3/codegen/service.ExampleServiceFiles({0xc00002b740, 0x26}, 0xe3b040)
        /home/danielmichaels/go/pkg/mod/goa.design/goa/[email protected]/codegen/service/example_svc.go:53 +0x2b5
goa.design/goa/v3/codegen/generator.Example({0xc00002b740, 0x26}, {0xc000283540?, 0x26?, 0xc000283540?})
        /home/danielmichaels/go/pkg/mod/goa.design/goa/[email protected]/codegen/generator/example.go:24 +0x9c
goa.design/goa/v3/codegen/generator.Generate({0x7fffe792e31b, 0x1}, {0x9a9d8a, 0x7})
        /home/danielmichaels/go/pkg/mod/goa.design/goa/[email protected]/codegen/generator/generate.go:81 +0x77d
main.main()
        /home/danielmichaels/Code/github/xxx/server/goa255681297/main.go:59 +0x35c

Both 3.15 versions hit this issue.

Downgrading to v3.14.6 I was able to re-generate the examples.

@danielmichaels
Copy link

Thank you for such a prompt response to this issue.

I can confirm that using v3.15.2 will generate the examples.

@raphael
Copy link
Member

raphael commented Mar 18, 2024

Thank you both, closing the issue.

@raphael raphael closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants