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
{{ message }}
Repository navigation
Have an option to create directories if they don't already exist #1052
error writing generated code to file: open pkg/entity/oapimodel/oapimodel.gen.go: no such file or directory
I'm wonder if we can quickly support some input flag, or modify the default behavior, to create the necessary directories to support any destination path?
Activity
jamietanna commentedon Jun 29, 2023
I would recommend probably something like the following in the short term:
This appears to be the first time I've seen this happen, usually the codegen is done to the same location as the
go:generatedirectives.This is something I think that we'd be happy to get a PR raised for, but in the meantime, feel free to use a hacky solution like above 😁
renxinhe commentedon Jun 29, 2023
Thanks @jamietanna! That's exactly what I did. Not the prettiest, but hey it works! Hope to see a quality-of-life improvement in a future release!