roboden-game icon indicating copy to clipboard operation
roboden-game copied to clipboard

github.com/golang/[email protected]: missing go.sum entry

Open redtoad opened this issue 1 year ago • 1 comments

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/[email protected] requires
	github.com/golang/[email protected]: missing go.sum entry; to add it:
	go mod download github.com/golang/freetype

redtoad avatar Apr 28 '23 12:04 redtoad

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.

quasilyte avatar May 02 '23 21:05 quasilyte