AUR cwtch-git panic: mismatching message name: got protocol.Packet, want protocol.CwtchPeerPacket #309

Closed
opened 2020-05-16 19:26:33 +00:00 by gwpl · 4 comments

Hello!

Another report regarding:
https://aur.archlinux.org/packages/cwtch-git/

Another weekend another try ;).

I tried to compile Today and it failed,
here is report :

$ pacaur -S cwtch-git
(...)
==> Making package: cwtch-git r384.b959bfa-1 (Sat 16 May 2020 09:22:47 PM CEST)
==> Starting pkgver()...
==> Updated version: cwtch-git r487.e05d1ad-1
==> Sources are ready.
:: Building cwtch-git package(s)...
==> Making package: cwtch-git r487.e05d1ad-1 (Sat 16 May 2020 09:22:52 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> Starting check()...
/home/gw/.cache/pacaur/cwtch-git/src/go/src/cwtch.im/cwtch
panic: mismatching message name: got protocol.Packet, want protocol.CwtchPeerPacket

goroutine 1 [running]:
google.golang.org/protobuf/internal/impl.legacyLoadMessageDesc(0x9100c0, 0x8623e0, 0x89fd65, 0x18, 0x0, 0x6f9100)
        /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_message.go:136 +0xa38
google.golang.org/protobuf/internal/impl.legacyLoadMessageInfo(0x9100c0, 0x8623e0, 0x89fd65, 0x18, 0xba4150)
        /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_message.go:48 +0xf3
google.golang.org/protobuf/internal/impl.Export.LegacyMessageTypeOf(0x909d60, 0x0, 0x89fd65, 0x18, 0x0, 0xc000180600)
        /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_export.go:33 +0xd6
github.com/golang/protobuf/proto.RegisterType(0x909d60, 0x0, 0x89fd65, 0x18)
        /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/github.com/golang/protobuf@v1.4.2/proto/registry.go:186 +0x6a
cwtch.im/cwtch/protocol.init.2()
        /home/gw/.cache/pacaur/cwtch-git/src/go/src/cwtch.im/cwtch/protocol/cwtch-profile.pb.go:130 +0x5d
FAIL    cwtch.im/cwtch/model    0.008s
FAIL
==> ERROR: A failure occurred in check().
    Aborting...
:: failed to build cwtch-git package(s)

Hello! Another report regarding: https://aur.archlinux.org/packages/cwtch-git/ Another weekend another try ;). I tried to compile Today and it failed, here is report : ``` $ pacaur -S cwtch-git (...) ==> Making package: cwtch-git r384.b959bfa-1 (Sat 16 May 2020 09:22:47 PM CEST) ==> Starting pkgver()... ==> Updated version: cwtch-git r487.e05d1ad-1 ==> Sources are ready. :: Building cwtch-git package(s)... ==> Making package: cwtch-git r487.e05d1ad-1 (Sat 16 May 2020 09:22:52 PM CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting pkgver()... ==> Removing existing $pkgdir/ directory... ==> Starting build()... ==> Starting check()... /home/gw/.cache/pacaur/cwtch-git/src/go/src/cwtch.im/cwtch panic: mismatching message name: got protocol.Packet, want protocol.CwtchPeerPacket goroutine 1 [running]: google.golang.org/protobuf/internal/impl.legacyLoadMessageDesc(0x9100c0, 0x8623e0, 0x89fd65, 0x18, 0x0, 0x6f9100) /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_message.go:136 +0xa38 google.golang.org/protobuf/internal/impl.legacyLoadMessageInfo(0x9100c0, 0x8623e0, 0x89fd65, 0x18, 0xba4150) /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_message.go:48 +0xf3 google.golang.org/protobuf/internal/impl.Export.LegacyMessageTypeOf(0x909d60, 0x0, 0x89fd65, 0x18, 0x0, 0xc000180600) /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_export.go:33 +0xd6 github.com/golang/protobuf/proto.RegisterType(0x909d60, 0x0, 0x89fd65, 0x18) /home/gw/.cache/pacaur/cwtch-git/src/go/pkg/mod/github.com/golang/protobuf@v1.4.2/proto/registry.go:186 +0x6a cwtch.im/cwtch/protocol.init.2() /home/gw/.cache/pacaur/cwtch-git/src/go/src/cwtch.im/cwtch/protocol/cwtch-profile.pb.go:130 +0x5d FAIL cwtch.im/cwtch/model 0.008s FAIL ==> ERROR: A failure occurred in check(). Aborting... :: failed to build cwtch-git package(s) ```
Author

I hope it is helpful. I apologise I don't have capacity at the moment to debug. I hope that reporting gives some signal.

I hope it is helpful. I apologise I don't have capacity at the moment to debug. I hope that reporting gives some signal.
Owner

protobuf@v1.4.2/

Cwtch currently requires protobuf v1.3.5 to compile and will fail for higher vesions because of a change to the protobuf code. I believe there a brief window when we were referencing a higher version in the go.mod file but that was fixed a couple of weeks ago - pulling the latest changes should fix the issue.

We are working on deprecating the code that requires this dependency

> protobuf@v1.4.2/ Cwtch currently requires protobuf v1.3.5 to compile and will fail for higher vesions because of a change to the protobuf code. I believe there a brief window when we were referencing a higher version in the go.mod file but that was fixed a couple of weeks ago - pulling the latest changes should fix the issue. We are working on deprecating the code that requires this dependency
Author

Thank you! Looking forward :). I will keep trying cwtch on Archlinux from time to time. :) (We all know that some CI would be probably best, but require resources to set it up, so maybe one day, for now let's run how we can :) ) Crossing fingers!

Thank you! Looking forward :). I will keep trying cwtch on Archlinux from time to time. :) (We all know that some CI would be probably best, but require resources to set it up, so maybe one day, for now let's run how we can :) ) Crossing fingers!
Owner

We are working on deprecating the code that requires this dependency

The old ricochet-based protobuf protocol has now been deprecated and removed from the most recent version - closing this issue.

(There will be some thrash as we finalize Beta, but after that point this code should stabalize and we can turn attention to getting it working on varying configurations!)

> We are working on deprecating the code that requires this dependency The old ricochet-based protobuf protocol has now been deprecated and removed from the most recent version - closing this issue. (There will be some thrash as we finalize Beta, but after that point this code should stabalize and we can turn attention to getting it working on varying configurations!)
sarah closed this issue 2020-10-08 20:36:51 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch#309
No description provided.