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

Strange bug: gened file broken in 1.21.0 but works well in older versions #62230

Closed
anotherGoogleFan opened this issue Aug 23, 2023 · 1 comment

Comments

@anotherGoogleFan
Copy link

The code is very simple:

package main

import "github.com/xuri/excelize/v2"

func main() {
	f := excelize.NewFile()
	sheetName := "Sheet1"
	_, _ = f.NewSheet(sheetName)
	_ = f.SaveAs("temp.xlsx")
}

When I gened the temp.xlsx using go 1.20 go version go1.20.7 darwin/amd64 or older version, all things goes well;
when I used go 1.21 go version go1.21.0 darwin/amd64 the gened file cannot be opened by microsoft excel. It's said broken file.

@prattmic
Copy link
Member

This looks like a duplicate of qax-os/excelize#1603.

Which itself is due to #61881, slated to be fixed in 1.21.1.

@prattmic prattmic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2023
@golang golang locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants