Skip to content

Commit 8d67388

Browse files
committed
fix: scaffold when no boilerplate file
1 parent 7aa151a commit 8d67388

File tree

1 file changed

+1
-1
lines changed
  • pkg/plugins/golang/v4/scaffolds

1 file changed

+1
-1
lines changed

pkg/plugins/golang/v4/scaffolds/api.go

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (s *apiScaffolder) Scaffold() error {
6767
// Load the boilerplate
6868
boilerplate, err := afero.ReadFile(s.fs.FS, hack.DefaultBoilerplatePath)
6969
if err != nil {
70-
return fmt.Errorf("error scaffolding API/controller: unable to load boilerplate: %w", err)
70+
boilerplate = []byte("")
7171
}
7272

7373
// Initialize the machinery.Scaffold that will write the files to disk

0 commit comments

Comments
 (0)