cloudpan189-go icon indicating copy to clipboard operation
cloudpan189-go copied to clipboard

Build fails with Go 1.23

Open stefanb opened this issue 1 year ago • 2 comments
trafficstars

Building with Go 1.23 in

  • https://github.com/Homebrew/homebrew-core/pull/175310

threw an error:

  # github.com/tickstep/cloudpan189-go
  link: github.com/tickstep/library-go/cachepool: invalid reference to runtime.rawbyteslice

indicating, that referenced upstream Go module github.com/tickstep/library-go is not yet compatible with upcoming Go 1.23

See

  • https://github.com/tickstep/library-go/issues/1

stefanb avatar Jul 01 '24 04:07 stefanb

Build is still failing with Go 1.23 rc2.

stefanb avatar Jul 18 '24 21:07 stefanb

This can probably now be fixed as well, since

  • Similar https://github.com/tickstep/aliyunpan/issues/437 and
  • Upstream https://github.com/tickstep/library-go/issues/1

were both fixed.

stefanb avatar Aug 12 '24 05:08 stefanb

go build -ldflags="-checklinkname=0"

Will fix the issues, anyway, if you're looking a new version. Try this: https://github.com/MaurUppi/cloudpan189-go/releases/tag/v0.1.5

MaurUppi avatar Jul 22 '25 08:07 MaurUppi