freswa / dovecot-xaps-daemon

MIT License
52 stars 11 forks source link

go version nightmare #38

Closed HQuest closed 1 month ago

HQuest commented 6 months ago

Trying to recompile xapsd, go is a nightmare. xapsd requires go 1.19.7, module exp/constraints requires go 1.20. However go 1.20 and newer produces a buggy code (as confirmed on README file), and gcc-go doesn't work as it is based on go 1.18.

Aren't Python or C# options for a less volatile language? Absolutely anything Google related is a hit, miss, or an ad, and these days, Hartley any hits.

freswa commented 6 months ago

So what's the issue here?

Aren't Python or C# options for a less volatile language?

Python is a bit more fragile due to it's runtime dependencies. Go is more or less statically linked. I haven't done any C#, but feel free to give it a go. If someone wants to rewrite the code in rust or sponsor the work, I'm down for it.

freultwah commented 6 months ago

Trying to recompile xapsd, go is a nightmare. xapsd requires go 1.19.7, module exp/constraints requires go 1.20. However go 1.20 and newer produces a buggy code (as confirmed on README file), and gcc-go doesn't work as it is based on go 1.18.

FreeBSD has included this patch for the time being. Works with Go 1.20+.

freswa commented 1 month ago

Fixed with #36