Skip to content
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

Merged
merged 4 commits into from Mar 11, 2023
Merged

auto generate extensions.go #1126

merged 4 commits into from Mar 11, 2023

Conversation

zirain
Copy link
Contributor

@zirain zirain commented Mar 10, 2023

fixes: #1116

Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
@zirain zirain requested a review from a team as a code owner March 10, 2023 08:21
go.mod Show resolved Hide resolved
tools/make/golang.mk Outdated Show resolved Hide resolved
@@ -67,6 +67,11 @@ go.mod.lint:
$(call log, "Go module looks clean!"); \
fi

.PHONY: go.generate
go.generate: ## Generate code from templates
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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"
Copy link
Contributor

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-commenter
Copy link

codecov-commenter commented Mar 11, 2023

Codecov Report

Merging #1126 (e66c79a) into main (630cae9) will decrease coverage by 0.06%.
The diff coverage is n/a.

📣 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>
Copy link
Contributor

@arkodg arkodg left a 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 !

@zirain zirain merged commit 0d331f8 into envoyproxy:main Mar 11, 2023
13 checks passed
@zirain zirain deleted the generate-go branch March 11, 2023 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make internal/xds/extensions/extensions.go auto generated
3 participants