Skip to content

Instantly share code, notes, and snippets.

@djberg96
Created March 31, 2021 18:01
Show Gist options
  • Select an option

  • Save djberg96/91cd618e655f7cbf07568d3004a03ad4 to your computer and use it in GitHub Desktop.

Select an option

Save djberg96/91cd618e655f7cbf07568d3004a03ad4 to your computer and use it in GitHub Desktop.
rm -f pkg/api/openapi/go.mod pkg/api/openapi/go.sum
gofmt -w pkg/api/openapi
for file in pkg/api/openapi/model_*.go; do \
perl -0777 -i -pe 's/\nimport \(\)\n//igs' $file; \
done
go generate ./cmd/status-board
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'yaml'
cmd/status-board/main.go:4: running "sh": exit status 1
make: *** [generate] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment