New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto generate extensions.go #1126
Conversation
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
@@ -67,6 +67,11 @@ go.mod.lint: | |||
$(call log, "Go module looks clean!"); \ | |||
fi | |||
|
|||
.PHONY: go.generate | |||
go.generate: ## Generate code from templates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be linked to make generate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also needs to be linked to make gen-check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, linked to gen-check is enough.
//go:generate sh -c "echo '// the root of the repo.\n' >> extensions.gen.go" | ||
//go:generate sh -c "echo '// GENERATED FILE -- DO NOT EDIT\n' >> extensions.gen.go" | ||
//go:generate sh -c "echo 'package extensions\n\nimport (' >> extensions.gen.go" | ||
//go:generate sh -c "go list github.com/envoyproxy/go-control-plane/... | grep 'v[2-9]' | grep -v /pkg/ | xargs -I{} echo '\t_ \"{}\"' >> extensions.gen.go" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 thanks for automating this !
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1126 +/- ##
==========================================
- Coverage 62.72% 62.67% -0.06%
==========================================
Files 72 72
Lines 9527 9527
==========================================
- Hits 5976 5971 -5
- Misses 3138 3143 +5
Partials 413 413 see 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for ensuring there is no drift in the future !
fixes: #1116