-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove deprecated outputs datadog and kafka #2081
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2081 +/- ##
==========================================
- Coverage 72.13% 72.10% -0.04%
==========================================
Files 181 180 -1
Lines 14289 14243 -46
==========================================
- Hits 10308 10270 -38
+ Misses 3353 3348 -5
+ Partials 628 625 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
5606e3e
to
159817d
Compare
@@ -10,11 +10,12 @@ require ( | |||
github.com/andybalholm/brotli v1.0.2 | |||
github.com/dop251/goja v0.0.0-20210427212725-462d53687b0d | |||
github.com/fatih/color v1.11.0 | |||
github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect |
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.
Why do we have additions to go.mod
when we're removing a dependency? 😕
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.
This now specifies the version that was required by the removed dependency.
As go always get the lowest possible version, when you remove a dependency that was requiring the highest possible version it will now require something different, which is likely not what you want, so it needs to now require that specific version in go.mod in order for the dependency version to not change
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.
So right now (and probably before), the versions of these indirect dependencies the k6 vendors are not the ones that were required by the actual direct dependencies' go.mod
files, right? If so, it's probably not a big deal, but we should probably clean this up now or when we update the direct dependencies of k6? We don't have a good reason for the current state, right?
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.
the versions of the inderect
dependencies were probably all added as case like
The general case I think is, we have:
k6 -> A -> C(v1.2.0)
k6 -> B -> C(v1.3.0)
we dropped dependency B
, and if this isn't added we will now get C
v1.2.0
as that is the highest version required.
So go mod adds an indirect dependency to C
v1.3.0
, so we don't change the version of something we didn't intend to.
If at a later point we update A
and it requires C
v1.4.0
it will be that version that will be used, and from my quick test it will also remove the indirect
dependency in go.mod(as it's no longer changing what versions we will get).
If we drop A
(in this case that would be api2go
;) ) we will probably also drop the indirect
dependencies as well.
So we can clean whenever and change the dependency version, which seems like a way to get something broken. Or just when updating/dropping dependency it will fix itself
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.
example: do go get google.golang.org/grpc
and see how it drops the indirect dependency on xerrors
Co-authored-by: na-- <n@andreev.sh>
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, love to see the negative diff stat. :)
I would've preferred to leave this for the end of the v0.34.0 cycle to keep master
working until right before release, but it's not a big deal.
I do prefer to do it now, so we can actually update kafka extension output to depend on version of k6 without that k6 depending on the kafka extension output |
Yeah, dropping them ASAP is probably going to be cleaner, and xk6 users shouldn't be affected, since by default they use the |
No description provided.