-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
Preparing v0.32.0 release #3146
Conversation
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.
Nice work! Looks like a big release.
Many tests in Uber's Go monorepo failed due to #3117. I will hold this release. |
Many tests in Uber use this pattern to mock a subprocess call from a Go program. #3117 made test panic when there is
|
A hack defeats a hack, I guess. :-) |
We should be able to disable the "panic on os.Exit(0)" feature, but still keep the hook, by removing this line: https://github.com/bazelbuild/rules_go/blob/fee2095e0a8219c93206be0b5adecfce6f32eac0/go/tools/bzltestutil/lcov.go#L174 @linzhp How would you feel about defaulting the feature to "on", as it is with the non-Bazel Go toolchain, and offering a knob to disable it, either globally via a config setting or an attribute on |
I am preparing a PR to restore panic on exit0 after we call |
What about go1.18 support for editor? |
Our team at Uber is planning to work on that this incoming sprint, but it won't make it to this release, which is already packed with features and fixes |
Summary: rules_go reports coverage in LCOV format by default as of version 0.32.0 See bazel-contrib/rules_go#3146 and bazel-contrib/rules_go#3117 So the coverage script was no longer doing the correct thing. This fixes the script. Test Plan: Ran the coverage script locally, generated an HTML report. Ensured that we see cpp, go and js coverage. Reviewers: zasgar, michelle Reviewed By: zasgar Signed-off-by: Vihang Mehta <[email protected]> Differential Revision: https://phab.corp.pixielabs.ai/D12345 GitOrigin-RevId: 6f4ff98f66fedd68e44f04954688c3efa95616b4
This release brings many exciting changes
New features
gomock
rule is officially supported in rules_go (doc), replacing the original jmhodges/bazel_gomock repository. Thanks to @jmhodges for the original implementation.--combined_report=lcov
. To generate reports in the oldgo tool cover
format, please use--//go/config:cover_format=go_cover
. Thanks to @fmeumanalyzer_flags
to nogo config #3082), thanks to @navneethjayendranBug fixes
x_defs
on test execution #3135), thanks to @bozarolinkmode
#3143) thanks to @fmeumDeprecations
go_embed_data
andbindata
will be deprecated in rules_go 0.35.0. Users are encourage to migrate togo:embed
andembedsrcs
.Other changes
Updated dependencies
As always, you can use higher versions of rules_go's dependencies by declaring
them in WORKSPACE before calling go_rules_dependencies. Lower versions may
work but are not supported.
org_golang_google_protobuf
updated to v1.28.0org_golang_x_sys
,org_golang_x_xerrors
,org_golang_google_genproto
andgo_googleapis
updated tomaster
, as of 2022-05-09