Skip to content

v2.0.4

Choose a tag to compare

@semihalev semihalev released this 27 Jul 15:30
· 16 commits to main since this release

Release v2.0.4

🐛 Cross-Compilation Fix

Fixed Windows Cross-Compilation

Replaced runtime.exit with standard os.Exit to enable cross-compilation support.

🔧 What Was Fixed

The library was using an internal Go runtime function runtime.exit which caused the following error when cross-compiling:

link: github.com/semihalev/zlog/v2: invalid reference to runtime.exit

This has been fixed by using the standard os.Exit(1) function instead.

✅ Now Works

# Cross-compile for Windows from Linux/macOS
GOOS=windows GOARCH=amd64 go build

# Cross-compile for Linux from Windows/macOS  
GOOS=linux GOARCH=amd64 go build

# All cross-compilation targets now work

📦 Installation

go get github.com/semihalev/zlog/v2@v2.0.4

This fix ensures zlog can be cross-compiled to any platform from any platform.