g3n / engine

Go 3D Game Engine (http://g3n.rocks)

Home Page:https://discord.gg/NfaeVr8zDg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't build hello demo

go-hacks opened this issue · comments

When running go get -u github.com/g3n/demos/hellog3n I get an error

"installing executables with 'go get' in module mode is deprecated"

The demo won't build without these deps. In fact the whole project doesn't really seem to wna download and work properly. The regular go get github.com/acct/project doesn't work at all and if you git clone it to some other folder, it's definitely not see-able from the demo. I manually put the git clone directory into where go would actually use it like every other go project does and it complains a bunch about that too if I actually try to use it.

I can't find any way to get this to work on Linux at all. The whole build process is wack and very unusual for go projects. Not to mention it seems to be trying to use an outdated, no longer supported method of handling modules.

Hey, it looks like g3n/demos wasn't using go modules yet.

Fixed by g3n/demos@2e116c9.

For reference all I did was execute the following commands in each demo directory:

go mod init <package_name>
go mod tidy

Please let me know if you have any more issues.