lucymhdavies / egg-game

Live. Bounce. Die. Repeat.
https://labs.lmhd.me/egg
3 stars 0 forks source link

compiling fails in jsgo #26

Closed lucymhdavies closed 5 years ago

lucymhdavies commented 5 years ago

https://compile.jsgo.io/github.com/lucymhdavies/egg-game

gopath/src/golang.org/x/sys/unix/timestruct.go:13:24: undeclared name: Timespec
lucymhdavies commented 5 years ago

I've created a new branch, works-on-desktop, at https://github.com/lucymhdavies/egg-game/commit/64617473e2197364eeb38b1a5908d4bd2285af0c

jsgo says github.com/lucymhdavies/egg-game was compiled 3 weeks ago

So I'm gonna reset master to the state it was in 3 weeks ago (https://github.com/lucymhdavies/egg-game/commit/7d11ceac88b082376303e9326ecd508d592f8613 from Mar 23, 2019 based on https://github.com/lucymhdavies/labs.lmhd.me/commit/9f69f5b04eb03dd950b037bb1354331cca7e0c9a) and then I'll keep adding stuff back in until I see where it breaks

lucymhdavies commented 5 years ago

Rebuilding from https://github.com/lucymhdavies/egg-game/commit/7d11ceac88b082376303e9326ecd508d592f8613

it still fails with

gopath/src/golang.org/x/sys/unix/timestruct.go:13:24: undeclared name: Timespec

So it's perhaps not my code at fault here

Trying https://github.com/lucymhdavies/egg-game/commit/3c7d0f19aa7f49e9c6130db3595ada0a4fb971fc just to be sure though

And yep. Still fails.

lucymhdavies commented 5 years ago

Fiddled around in play.jsgo.io and stripped some external packages out...

Looks like the problem is with logrus https://play.jsgo.io/6fe80e59645adea9c0acaf556c3133267f641403

Which... kinda makes sense. I don't really need it. I can get away with go's stdlib logger.