Description
On a normal Windows checkout with core.autocrlf=true, the codegen golden tests compare LF generated output with CRLF checked-in fixtures and fail. The surface allowlist checks also fail because their end-of-line regex sees the carriage return. A fresh checkout with core.autocrlf=false passes the same tests. The repository advertises Windows development, so this makes a clean Windows checkout fail its local test suite.
Steps to reproduce
- Clone heygen-com/heygen-cli on Windows.
- Configure core.autocrlf=true and check out main.
- Run: go test ./codegen -run TestGoldenFiles|TestSurfaceAllowlistCoversEveryTemplateField|TestSurfaceAllowlistMatchesRealGeneratedLines -count=1
Output
The clean checkout reports 0 passed and 6 failed: TestGoldenFiles/{registry.go,upload.go,widget.go}, TestSurfaceAllowlistCoversEveryTemplateField, and TestSurfaceAllowlistMatchesRealGeneratedLines. With a one-line .gitattributes rule (* text=auto eol=lf), all six pass in a fresh clone.
CLI version
heygen version dev
OS
Windows 11, PowerShell, Go 1.23+
Description
On a normal Windows checkout with core.autocrlf=true, the codegen golden tests compare LF generated output with CRLF checked-in fixtures and fail. The surface allowlist checks also fail because their end-of-line regex sees the carriage return. A fresh checkout with core.autocrlf=false passes the same tests. The repository advertises Windows development, so this makes a clean Windows checkout fail its local test suite.
Steps to reproduce
Output
The clean checkout reports 0 passed and 6 failed: TestGoldenFiles/{registry.go,upload.go,widget.go}, TestSurfaceAllowlistCoversEveryTemplateField, and TestSurfaceAllowlistMatchesRealGeneratedLines. With a one-line .gitattributes rule (* text=auto eol=lf), all six pass in a fresh clone.
CLI version
heygen version dev
OS
Windows 11, PowerShell, Go 1.23+