Closed evandrojr closed 1 year ago
Same issue here. After looking at the code, I see it's searching actions/app.go
for:
if app == nil {
https://github.com/gobuffalo/buffalo-auth/blob/main/genny/auth/auth.go#L85
Apparently, the default Buffalo template for actions/app.go
changed that line to:
appOnce.Do(func() {
I made buffalo g auth
run successfully by changing my app's implementation to the old code (if app == nil {
), running buffalo g auth
, and changing it back (appOnce.Do(func() {
).
I see the gogen.AddInsideBlock
method ultimately uses strings.Contains
to find the search string, so a regex to search either implementation wouldn't work. Not sure what the best fix is to coordinate with Buffalo versions.
Yeah, there was a change on the core that affected this issue, but I was not able to address this issue for a while. I am going to work on this issue as soon as possible but I cannot promise the due date for now. Sorry for that.
For the better context, the change on the core: https://github.com/gobuffalo/cli/pull/229
Hi all, this is will be fixed in the next release, v1.5.0, please check if that works as expected.
Description
-- Please provide as much relevant info as possible. -->
Description
Expected Behavior
Create the scaffold
Actual Behavior
Error running buffalo g auth
got this error message:
To Reproduce
Additional Context
Details