Skip to content

Commit

Permalink
Fix other place it reads manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Mar 17, 2024
1 parent 16d6445 commit ec4ef79
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ func (b *Builder) buildGame(m *ManifestV1, prod bool) ([]byte, []byte, error) {
func (b *Builder) Manifest() (*ManifestV1, error) {
f, err := os.Open(path.Join(b.root, "game.v1.json"))
if err != nil {
return nil, err
if err == os.ErrNotExist {
f, err = os.Open(path.Join(b.root, "game.json"))
if err != nil {
return nil, err
}
} else {
return nil, err
}
}
defer f.Close()
manifest := &ManifestV1{}
Expand Down

0 comments on commit ec4ef79

Please sign in to comment.