quasilyte / roboden-game

An indirect control real-time strategy game about robot colonies
https://store.steampowered.com/app/2416030/Roboden/
MIT License
430 stars 33 forks source link

github.com/golang/freetype@v0.0.0-20170609003504-e2365dfdc4a0: missing go.sum entry #7

Open redtoad opened 1 year ago

redtoad commented 1 year ago

Just ran make on a fresh clone (67e9590) and got this as an error:

$ cd src/
$ make
GOARCH=wasm GOOS=js go build -ldflags="-s -w" -o ../_web/main.wasm cmd/game/main.go
go: github.com/ebitenui/ebitenui@v0.3.4 requires
    github.com/golang/freetype@v0.0.0-20170609003504-e2365dfdc4a0: missing go.sum entry; to add it:
    go mod download github.com/golang/freetype
quasilyte commented 1 year ago

Should probably be fixed by now. :sweat_smile: I'm not really following all of the best programming practices while working on this game. :)

Also, building instructions may benefit from some updates. I'll work on that.

But in general, you can do:

# --goos and --goarch are expecting the same values as GOOS and GOARCH env vars
go run ./cmd/builder --goos=linux --goarch=amd64 -o roboden

Then place the roboden_data somewhere near the binary or specify the --data argument explicitly.

That should do the trick.