-
Notifications
You must be signed in to change notification settings - Fork 313
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
dbus: Fix API break from godbus #296
Conversation
Here's the fix for #295 |
c27c2e1
to
c8e05b5
Compare
@lucab Yeah just saw. Well, everything seems to work with git master. Libraries like this shouldn't depend on old version or vendor. Make the updated patch will pass?? |
Hm... So what's the plan to fix this?? |
Indeed, we don't vendor nor depend on old versions here, we keep the peace of whatever is the latest go-dbus release. We test with that and we communicate it to consumers via dep manifest. Usual dependency pinning+vendoring should be done by top-level consumers. @purpleidea where did you get a breakage? Medium term, I'll be happy to update here and release as soon a new go-dbus release is out. I don't know what @jsouthworth plans are yet though. |
@lucab It broke the builds in https://github.com/purpleidea/mgmt/ but a much easier way to show the breakage is by running:
For this type of library, there shouldn't be any vendoring, it should work with git master... The broken Why aren't we merging this patch now?? Maybe I'm missing something? |
Given that this was unintentional, I'll tag a new dbus release now. It didn't occur to me that folks would be passing the functions around so there would be type conflicts, it should have, sorry about that. In other cases (direct calls) this would have been an invisible change since the default case is equivalent. |
Tagged as v5.0 https://github.com/godbus/dbus/tree/v5.0 |
c8e05b5
to
55e9897
Compare
Okay, fixed patch updated with new version. Although I don't think we should have the toml file. |
d66a97c
to
f00238a
Compare
I've added a second patch to modernize travis. If you'd like them squished, I can do that, but I think it's better this way. |
(As an aside, I think the GH webui has a bug, because in my tree the travis patch comes first, although they are displaying backwards. Neat bug!) |
f00238a
to
f6a9bc6
Compare
@lucab \o/ Tests passed, ready for merge =D |
This removes the horribly old 1.5x and replaces it with golang 1.7 which is apparently still used somewhere. It also adds tests for the most recent version: 1.11. Please upgrade or use older releases.
Something in godbus seems to have broken API, thus breaking builds including `go get`. As an aside, I don't think *this* project should include the Gopkg.toml file. We should always follow git master automatically. Having said that I've patched it anyways until we can discuss more.
f6a9bc6
to
71aa0e7
Compare
@jsouthworth thanks! @purpleidea thanks for the fixes. The two commits are fine, I just have a minor nit, after which we can merge. FWIW |
np
What is it?
I respectfully disagree. I believe that responsible libraries should always keep git master stable, and if there really is a reason to break API, then to ideally warn projects, and do it quickly. In any case, if I had vendored my deps, I wouldn't know what broke until way later down the road, and then finding and fixing the issue would be more expensive. In the history of mgmt, we've only had builds break because of git master changes about four times. And all we're fixed right away, either by a small fix on our side, in the upstream, and in at least one case we caught a bug that a dep didn't catch in their CI. I probably would have caught this break earlier except I've been AFK a bit lately. Hopefully I can convince you to move to pure git master =D |
Ack. The nit was on the Travis thing. I understand your point and the whole thing is a bit blurry in Go-land. LGTM, merging. |
I'm still getting
|
opened #297 to track new release tag |
Stop using dep and just use master. It works great.
If not use a git submodule in vendor/ and point it to the exact tag
you want. (Currently git master for both.)
…On Tue, Oct 30, 2018 at 5:15 PM Peter Christian Fraedrich ***@***.***> wrote:
opened #297 to track new release tag
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@purpleidea without explicit deprecation of |
On Tue, Oct 30, 2018 at 5:22 PM Peter Christian Fraedrich ***@***.***> wrote:
@purpleidea without explicit deprecation of dep support the fix shouldn't be don't use dep, it should to be cut a new release tag. if the repo maintainers want to deprecate their support for dep then it should be communicated in advance and at the very least with the last dep release being stable
I understand, and probably even agree. Just making a recommendation
that hopefully helps. Good luck!
|
btw, same issue for github.com/coreos/container-linux-config-transpiler, which vendors |
@h8liu as far as I can tell, |
@lucab , fyi, here is the build that is failing on gopkgs.io: gopkgs.io tries to build every package in a git repo. the package is not actually imported by anything from the repo though, but it is vendored. it might be an bug/issue of the vendor manager that the repo is using.. |
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - coreos/pkg@v3...v4 - no changes in vendored code - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
- https://github.com/coreos/go-systemd/compare/v14..v19 - coreos/go-systemd#248 dbus: add SetPropertiesSubscriber method - coreos/go-systemd#251 activation: add support for listeners with names - coreos/go-systemd#296 dbus: Fix API break from godbus - https://github.com/godbus/dbus/compare/v3..v5.0.1 - godbus/dbus#89 introduce MakeVariantWithSignature Signed-off-by: Sebastiaan van Stijn <[email protected]>
Something in godbus seems to have broken API, thus breaking builds
including
go get
. This patches fixes those changes. I don't know anybackground about this change, so if anyone has information, I'd sure
like to know! Thanks