Windows: handle failing to read the VERSION file

This commit is contained in:
David Dworken 2022-11-06 00:17:03 -07:00
parent 6938035715
commit 4a9b202e5f
No known key found for this signature in database

View File

@ -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))