g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.82k stars 298 forks source link

Can't build hello demo #246

Closed go-hacks closed 3 years ago

go-hacks commented 3 years ago

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.

danaugrs commented 3 years ago

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

Fixed by https://github.com/g3n/demos/commit/2e116c95972284458eedeaaeb9bf50fd88fce353.

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.