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 build error in windows system #8

Closed
feeops opened this issue Feb 6, 2025 · 1 comment
Closed

go build error in windows system #8

feeops opened this issue Feb 6, 2025 · 1 comment
Assignees

Comments

@feeops
Copy link

feeops commented Feb 6, 2025

go version go1.23.6 windows/amd64

go build error

# github.com/lucmq/go-shelve/sdb
C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs_windows.go:15:6: renameFile redeclared in this block
        C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs.go:89:6: other declaration of renameFile
C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs_windows.go:18:11: undefined: os
C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs_windows.go:22:11: undefined: os
C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs_windows.go:28:11: undefined: os
C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs_windows.go:44:11: undefined: unsafe
C:\Users\Administrator\go\pkg\mod\github.com\lucmq\go-shelve@v1.0.4\sdb\fs_windows.go:45:11: undefined: unsaf
@lucmq lucmq self-assigned this Feb 6, 2025
@lucmq
Copy link
Owner

lucmq commented Feb 6, 2025

Hi @feeops,

Thanks for reporting the issue! I’ve just released a new version (v1.0.5) that resolves the go build error on Windows. The problem was due to a redeclaration of the renameFile function and missing imports in the fs_windows.go file. In the latest release, I’ve fixed these issues by properly isolating platform-specific code and ensuring all necessary packages are imported for Windows compatibility.

You can find the details in the pull request here: #9.

Please update to the latest version using:

go get github.com/lucmq/go-shelve@v1.0.5

Let me know if you encounter any other issues or have further questions!

@lucmq lucmq closed this as completed Feb 6, 2025
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