Skip to content

Commit

Permalink
fix(build): fix oapi-gen v2.2.0 warning syntax error
Browse files Browse the repository at this point in the history
This commit ensure that the warning statement that has been printed to
the console since oapi-codegen v2.2.0 does not cause a syntax error.
  • Loading branch information
rickstaa committed Jun 4, 2024
1 parent f549695 commit 31fe460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# NOTE: The 'awk' command is a workaround for a warning causing syntax error. Temporary
# solution until issue (https://github.com/deepmap/oapi-codegen/issues/373) is resolved.
codegen:
go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest
oapi-codegen -package worker -generate types,client,chi-server,spec runner/openapi.json > worker/runner.gen.go
oapi-codegen -package worker -generate types,client,chi-server,spec runner/openapi.json > worker/runner.gen.go
oapi-codegen -package worker -generate types,client,chi-server,spec runner/openapi.json | awk '!/WARNING/' > worker/runner.gen.go
1 change: 0 additions & 1 deletion worker/runner.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31fe460

Please sign in to comment.