internal/gamepaddb: Do not fetch the database file on go:generate

This is too aggressive and sometimes risky to update the database
file always when go-generate is executed.
This commit is contained in:
Hajime Hoshi 2021-09-25 04:03:17 +09:00
parent 9ab6758b7a
commit 56c5bec908

View File

@ -14,7 +14,10 @@
// gamecontrollerdb.txt is downloaded at https://github.com/gabomdq/SDL_GameControllerDB.
//go:generate curl --location --remote-name https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
// To update the database file, run:
//
// curl --location --remote-name https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
//go:generate file2byteslice -package gamepaddb -input=./gamecontrollerdb.txt -output=./gamecontrollerdb.txt.go -var=gamecontrollerdbTxt
package gamepaddb