-
Notifications
You must be signed in to change notification settings - Fork 192
Convert telemetry plugin into standalone go module #3551
Convert telemetry plugin into standalone go module #3551
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.
Thanks @soup-of-the-day. This looks almost ready. A couple of points:
- You will need to explicitly call go tests from the root
Makefile
now that this plugin is a separate go module. Please see Run Go tests for refactored plugins #3534. - In
main.go
, thebuildinfo
import should change fromgithub.heygears.com/vmware-tanzu/tanzu-framework/pkg/v1/buildinfo
to the new plugin onegithub.heygears.com/vmware-tanzu/tanzu-framework/cli/runtime/buildinfo
. This will allow you to remove the last dependency ontanzu-framework
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 @soup-of-the-day.
LGTM
Codecov Report
@@ Coverage Diff @@
## main #3551 +/- ##
==========================================
+ Coverage 46.26% 46.32% +0.05%
==========================================
Files 400 448 +48
Lines 39624 43871 +4247
==========================================
+ Hits 18331 20322 +1991
- Misses 19605 21770 +2165
- Partials 1688 1779 +91
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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
Considering we have bumped the go version to 1.18, you might need to run Looks like PR is failing in that validation. |
Ran make modules, thanks, @anujc25 ! Though, it resulted in an update to the go.mod of tanzu framework itself instead of the telemetry plugin. |
@@ -0,0 +1,67 @@ | |||
module github.com/vmware-tanzu/tanzu-framework/cmd/cli/plugin/telemetry | |||
|
|||
go 1.18 |
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.
Apologies for the confusion. But considering go 1.18 bump PR got reverted. We might need to update this back to 1.17
- cleans up a bunch of previously necessary replaces
Back from PTO - It looks like the go 1.18 is back on main @anujc25 , so I upgraded again and rebased. |
PR has been in limbo for a while, closing it for now. |
What this PR does / why we need it
Converting the telemetry plugin into a standalone go module as part of the effort to refactor tanzu-framework.
Describe testing done for PR