mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
Windows: handle failing to read the VERSION file
This commit is contained in:
parent
6938035715
commit
4a9b202e5f
@ -183,6 +183,7 @@ func buildServer() {
|
||||
version, err := os.ReadFile("VERSION")
|
||||
if err != nil {
|
||||
if runtime.GOOS == "windows" {
|
||||
// TODO: Figure out why it can't read the VERSION file
|
||||
version = []byte("174")
|
||||
} else {
|
||||
panic(fmt.Sprintf("failed to read VERSION file: %v", err))
|
||||
|
Loading…
Reference in New Issue
Block a user