You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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
The text was updated successfully, but these errors were encountered:
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!
go version go1.23.6 windows/amd64
go build error
The text was updated successfully, but these errors were encountered: