mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: generate and order dbfake funcs automatically (#7986)
* chore: rename `databasefake` to `dbfake` * Remove unused method * chore: add generation to dbfake * Auto gen on make gen * Fix preserving imports * gen dbfake * Add goimports * Fix the makefile * Make it panic instead of a comment
This commit is contained in:
@ -58,4 +58,8 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
|
||||
# Generate enums (e.g. unique constraints).
|
||||
go run gen/enum/main.go
|
||||
|
||||
# Generate the database fake!
|
||||
go run gen/fake/main.go
|
||||
go run golang.org/x/tools/cmd/goimports@latest -w ./dbfake/dbfake.go
|
||||
)
|
||||
|
Reference in New Issue
Block a user