Closed Berserker66 closed 4 years ago
You did not follow the instrcutions correctly.
The git repo should be located in $GOPATH/src/github.com/jangler/oracles-randomizer, not E:/ROMS/Randomizer/Oracles/
generate.go requires strict adherence to the path naming convention.
E:\ROMS\Randomizer\Oracles>go get github.com/jangler/oracles-randomizer
# github.com/jangler/oracles-randomizer
runtime.main_main·f: function main is undeclared in the main package
E:\ROMS\Randomizer\Oracles>cd $GOPATH/src/github.com/jangler/oracles-randomizer
The system cannot find the path specified.
Did you set up your GOPATH correctly?
oh yeah, Windows environment variable handling...
Try cd /d %GOPATH%/src/github.com/jangler/oracles-randomizer
instead
I got there manually. I'm using GoLand anyway, so I had to navigate there anyway.
First time dealing with a Go program, so I don't know if that's convention. But the strict path location requirement feels wrong.
The go generate
code that runs for the randomizer assumes the path to the repository matches github.com/(.+)/oracles-randomizer
, since a properly configured Go environment would place it there.
Followed the instructions https://github.com/jangler/oracles-randomizer/blob/master/doc/contributing.md on a windows 10 computer and when running go generate I get: