Skip to content
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

go test -v github.com/xuri/excelize/v2 failed on go1.24 #2091

Closed
2 tasks done
me-cs opened this issue Feb 18, 2025 · 1 comment
Closed
2 tasks done

go test -v github.com/xuri/excelize/v2 failed on go1.24 #2091

me-cs opened this issue Feb 18, 2025 · 1 comment

Comments

@me-cs
Copy link

me-cs commented Feb 18, 2025

Description

Executing go test -v github.com/xuri/excelize/v2 passes normally on go1.23.3 and fails with go1.24 with the following output:

Steps to reproduce the issue

1.Install go1.24 sdk
2.go test -v github.com/xuri/excelize/v2 | grep -E "FAIL|error"

Describe the results you received

go test -v github.com/xuri/excelize/v2 | grep -E "FAIL|error"
--- FAIL: TestSetCellValuesMultiByte (0.02s)
Error: Received unexpected error:
--- FAIL: TestRows (0.02s)
--- FAIL: TestStreamWriter (29.37s)
--- FAIL: TestStreamSetRowNilValues (0.00s)
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0
FAIL github.com/xuri/excelize/v2 78.310s
FAIL

Describe the results you expected

go test -v github.com/xuri/excelize/v2 There should be no errors and output OK
PASS
ok github.com/xuri/excelize/v2 100.218s

Go version

1.24.0

Excelize version or commit ID

2.9.0

Environment

uname -a
Linux  3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

centos 7.9

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@xuri xuri closed this as completed in 5264285 Feb 19, 2025
@xuri
Copy link
Member

xuri commented Feb 19, 2025

Thanks for your issue. I updated GitHub action configuration for testing with Go 1.24.x under Ubuntu 24.04, all unit tests passed. The library is compatible with lasted Go language, if have any question, please let me know and reopen this anytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants