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
Syncthing failed to build under GO1.18!!! #18267
Comments
Ping @aparcar. (Please use the default issue template and at-mention the relevant maintainer(s).) |
Several Go packages were broken when Go 1.18 was updated on master/snapshot. quic-go does support Go 1.18, but it's likely the version that syncthing is including is an older version that doesn't support it. Same issue occurred with AdGuardHome and others. The easiest solution is seeing if SyncThing have bumped the dependency in their code and released a new version since, which it should be straight forward to bump the package version in OpenWrt, if not, a patch will be needed to bump the go.mod/go.sum file before compiling. That's been my experience anyway. |
My level is limited, make patches for a few days can not solve! |
I tried building 1.19.2 and it still failed so I'd suggest it's a potential upstream problem. I can see you opened an issue on the upstream repo but they closed it. I added some details to the issue for context. |
Maybe the suncthing version is simply to old and I should upgrade it? |
I tried compiling the latest release earlier and it failed still on go 1.18 errors. Reported upstream for further comments. |
I'm noob with go. If I remove the vendor directory, then 1.19.2 builds. I don't even know what's the purpose of |
@cotequeiroz That's an interesting find! This seems to have been discovered by others as well: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262808#c6 |
Try cotequeiroz@e9f217d. |
@cotequeiroz Yep, removing the vendor folder resolves the latest errors on 1.19.2, nice work, seems like a suitable fix. Looking at the FreeBSD conversation that seemed to be the conclusion as well, so this patch seems suitable. |
@jefferyto, what do you think about this? # When bumping versions, try to remove this Build/Prepare definition, to check if it is still needed
define Build/Prepare
$(call Build/Prepare/Default)
cd $(BUILD_DIR)/$(PKG_NAME)-1.19.2/$(PKG_NAME) && rm -rf vendor
endef |
It's been flagged upstream for further review in the meantime: syncthing/syncthing#8258 (comment) |
Anyone interested to take over the maintainership of synching? |
The problem has been resolved and the source code has been compiled using vebdor under GO1.18. The existing patches are compiled using their own go.mod。Version number: 1.19.2. |
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes openwrt#18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes #18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes openwrt/packages#18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes openwrt#18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 4b7ff2d)
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes #18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 4b7ff2d)
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes openwrt/packages#18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 4b7ff2d)
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes #18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 4b7ff2d) (cherry picked from commit 961c73c)
Includes patch based on upstream change[1] to fix compilation with Go 1.18. Fixes openwrt#18267. [1]: syncthing/syncthing@e30898d Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 4b7ff2d)
The text was updated successfully, but these errors were encountered: