volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.73k stars 544 forks source link

v3 fails to compile after generating psql #313

Closed jakecoffman closed 6 years ago

jakecoffman commented 6 years ago

If you're having a generation problem please answer these questions before submitting your issue. Thanks!

What version of SQLBoiler are you using (sqlboiler --version)?

SQLBoiler v3.0.0-rc2

If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)

sqlboiler psql

If this happened at runtime what code produced the issue? (if not applicable leave blank)

What is the output of the command above with the -d flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)

{"config":{"driver_name":"psql","driver_config":{"blacklist":["migrations","other"],"dbname":"stldevs","host":"localhost","pass":"fake","port":5432,"schema":"public","sslmode":"disable","user":"fake","whitelist":null},"pkg_name":"models","out_folder":"models","debug":true,"struct_tag_casing":"snake","imports":{"all":{"Standard":["\"database/sql\"","\"fmt\"","\"reflect\"","\"strconv\"","\"strings\"","\"sync\"","\"time\"","\"context\""],"ThirdParty":["\"github.com/pkg/errors\"","\"github.com/volatiletech/sqlboiler/boil\"","\"github.com/volatiletech/sqlboiler/queries\"","\"github.com/volatiletech/sqlboiler/queries/qm\"","\"github.com/volatiletech/sqlboiler/strmangle\""]},"test":{"Standard":["\"bytes\"","\"reflect\"","\"testing\"","\"context\""],"ThirdParty":["\"github.com/volatiletech/sqlboiler/boil\"","\"github.com/volatiletech/sqlboiler/queries\"","\"github.com/volatiletech/sqlboiler/randomize\"","\"github.com/volatiletech/sqlboiler/strmangle\""]},"singleton":{"boil_queries":{"Standard":null,"ThirdParty":["\"github.com/volatiletech/sqlboiler/drivers\"","\"github.com/volatiletech/sqlboiler/queries\"","\"github.com/volatiletech/sqlboiler/queries/qm\""]},"boil_types":{"Standard":["\"strconv\""],"ThirdParty":["\"github.com/pkg/errors\"","\"github.com/volatiletech/sqlboiler/boil\"","\"github.com/volatiletech/sqlboiler/strmangle\""]},"psql_upsert":{"Standard":["\"fmt\"","\"strings\""],"ThirdParty":["\"github.com/volatiletech/sqlboiler/drivers\"","\"github.com/volatiletech/sqlboiler/strmangle\""]}},"test_singleton":{"boil_main_test":{"Standard":["\"database/sql\"","\"flag\"","\"fmt\"","\"math/rand\"","\"os\"","\"path/filepath\"","\"strings\"","\"testing\"","\"time\""],"ThirdParty":["\"github.com/spf13/viper\"","\"github.com/volatiletech/sqlboiler/boil\""]},"boil_queries_test":{"Standard":["\"bytes\"","\"fmt\"","\"io\"","\"io/ioutil\"","\"math/rand\"","\"regexp\""],"ThirdParty":["\"github.com/volatiletech/sqlboiler/boil\""]},"boil_suites_test":{"Standard":["\"testing\""],"ThirdParty":null},"psql_main_test":{"Standard":["\"bytes\"","\"database/sql\"","\"fmt\"","\"io\"","\"io/ioutil\"","\"os\"","\"os/exec\"","\"regexp\"","\"strings\""],"ThirdParty":["\"github.com/kat-co/vala\"","_ \"github.com/lib/pq\"","\"github.com/pkg/errors\"","\"github.com/spf13/viper\"","\"github.com/volatiletech/sqlboiler/drivers/sqlboiler-psql/driver\"","\"github.com/volatiletech/sqlboiler/randomize\""]},"psql_suites_test":{"Standard":["\"testing\""],"ThirdParty":[]}},"based_on_type":{"null.Bool":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Bytes":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Float32":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Float64":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Int":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Int16":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Int32":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Int64":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Int8":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.JSON":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.String":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Time":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Uint":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Uint16":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Uint32":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Uint64":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"null.Uint8":{"Standard":[],"ThirdParty":["\"gopkg.in/volatiletech/null.v7\""]},"pgeo.Box":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.Circle":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.Line":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.Lseg":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullBox":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullCircle":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullLine":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullLseg":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullPath":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullPoint":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.NullPolygon":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.Path":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.Point":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"pgeo.Polygon":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types/pgeo\""]},"time.Time":{"Standard":["\"time\""],"ThirdParty":[]},"types.BoolArray":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.BytesArray":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.Decimal":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.DecimalArray":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.Float64Array":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.Hstore":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.Int64Array":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.JSON":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.NullDecimal":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]},"types.StringArray":{"Standard":[],"ThirdParty":["\"github.com/volatiletech/sqlboiler/types\""]}}},"aliases":{"tables":{"agg_meta":{"up_plural":"AggMeta","up_singular":"AggMetum","down_plural":"aggMeta","down_singular":"aggMetum","columns":{"created_at":"CreatedAt"}},"agg_repo":{"up_plural":"AggRepos","up_singular":"AggRepo","down_plural":"aggRepos","down_singular":"aggRepo","columns":{"created_at":"CreatedAt","default_branch":"DefaultBranch","description":"Description","fork":"Fork","forks_count":"ForksCount","homepage":"Homepage","language":"Language","master_branch":"MasterBranch","name":"Name","network_count":"NetworkCount","open_issues_count":"OpenIssuesCount","owner":"Owner","pushed_at":"PushedAt","size":"Size","stargazers_count":"StargazersCount","subscribers_count":"SubscribersCount","updated_at":"UpdatedAt","watchers_count":"WatchersCount"}},"agg_user":{"up_plural":"AggUsers","up_singular":"AggUser","down_plural":"aggUsers","down_singular":"aggUser","columns":{"avatar_url":"AvatarURL","bio":"Bio","blog":"Blog","created_at":"CreatedAt","disk_usage":"DiskUsage","email":"Email","followers":"Followers","following":"Following","hireable":"Hireable","location":"Location","login":"Login","name":"Name","public_gists":"PublicGists","public_repos":"PublicRepos","type":"Type","updated_at":"UpdatedAt"}}}}},"driver_config":{"blacklist":["migrations","other"],"dbname":"stldevs","host":"localhost","pass":"bird","port":5432,"schema":"public","sslmode":"disable","user":"postgres","whitelist":null},"tables":[{"name":"agg_meta","schema_name":"","columns":[{"name":"created_at","type":"time.Time","db_type":"timestamp without time zone","default":"","nullable":false,"unique":true,"validated":false,"arr_type":null,"udt_name":"timestamp","full_db_type":"","auto_generated":false}],"p_key":{"name":"agg_meta_pkey","columns":["created_at"]},"f_keys":null,"is_join_table":false,"to_one_relationships":null,"to_many_relationships":null},{"name":"agg_repo","schema_name":"","columns":[{"name":"owner","type":"string","db_type":"character varying","default":"","nullable":false,"unique":false,"validated":false,"arr_type":null,"udt_name":"varchar","full_db_type":"","auto_generated":false},{"name":"name","type":"string","db_type":"character varying","default":"","nullable":false,"unique":false,"validated":false,"arr_type":null,"udt_name":"varchar","full_db_type":"","auto_generated":false},{"name":"description","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"language","type":"null.String","db_type":"character varying","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"varchar","full_db_type":"","auto_generated":false},{"name":"homepage","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"forks_count","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"network_count","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"open_issues_count","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"stargazers_count","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"subscribers_count","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"watchers_count","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"size","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"fork","type":"null.Bool","db_type":"boolean","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"bool","full_db_type":"","auto_generated":false},{"name":"default_branch","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"master_branch","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"created_at","type":"null.Time","db_type":"timestamp without time zone","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"timestamp","full_db_type":"","auto_generated":false},{"name":"pushed_at","type":"null.Time","db_type":"timestamp without time zone","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"timestamp","full_db_type":"","auto_generated":false},{"name":"updated_at","type":"null.Time","db_type":"timestamp without time zone","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"timestamp","full_db_type":"","auto_generated":false}],"p_key":{"name":"agg_repo_pkey","columns":["owner","name"]},"f_keys":null,"is_join_table":false,"to_one_relationships":null,"to_many_relationships":null},{"name":"agg_user","schema_name":"","columns":[{"name":"login","type":"string","db_type":"character varying","default":"","nullable":false,"unique":true,"validated":false,"arr_type":null,"udt_name":"varchar","full_db_type":"","auto_generated":false},{"name":"email","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"location","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"hireable","type":"null.Bool","db_type":"boolean","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"bool","full_db_type":"","auto_generated":false},{"name":"blog","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"bio","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"followers","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"following","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"public_repos","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"public_gists","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"avatar_url","type":"null.String","db_type":"text","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"text","full_db_type":"","auto_generated":false},{"name":"disk_usage","type":"null.Int","db_type":"integer","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"int4","full_db_type":"","auto_generated":false},{"name":"created_at","type":"null.Time","db_type":"timestamp without time zone","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"timestamp","full_db_type":"","auto_generated":false},{"name":"updated_at","type":"null.Time","db_type":"timestamp without time zone","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"timestamp","full_db_type":"","auto_generated":false},{"name":"type","type":"null.String","db_type":"character varying","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"varchar","full_db_type":"","auto_generated":false},{"name":"name","type":"null.String","db_type":"character varying","default":"","nullable":true,"unique":false,"validated":false,"arr_type":null,"udt_name":"varchar","full_db_type":"","auto_generated":false}],"p_key":{"name":"agg_user_pkey","columns":["login"]},"f_keys":null,"is_join_table":false,"to_one_relationships":null,"to_many_relationships":null}],"templates":[{"name":"templates/00_struct.go.tpl","loader":"asset:templates/00_struct.go.tpl"},{"name":"templates/01_types.go.tpl","loader":"asset:templates/01_types.go.tpl"},{"name":"templates/02_hooks.go.tpl","loader":"asset:templates/02_hooks.go.tpl"},{"name":"templates/03_finishers.go.tpl","loader":"asset:templates/03_finishers.go.tpl"},{"name":"templates/04_relationship_to_one.go.tpl","loader":"asset:templates/04_relationship_to_one.go.tpl"},{"name":"templates/05_relationship_one_to_one.go.tpl","loader":"asset:templates/05_relationship_one_to_one.go.tpl"},{"name":"templates/06_relationship_to_many.go.tpl","loader":"asset:templates/06_relationship_to_many.go.tpl"},{"name":"templates/07_relationship_to_one_eager.go.tpl","loader":"asset:templates/07_relationship_to_one_eager.go.tpl"},{"name":"templates/08_relationship_one_to_one_eager.go.tpl","loader":"asset:templates/08_relationship_one_to_one_eager.go.tpl"},{"name":"templates/09_relationship_to_many_eager.go.tpl","loader":"asset:templates/09_relationship_to_many_eager.go.tpl"},{"name":"templates/10_relationship_to_one_setops.go.tpl","loader":"asset:templates/10_relationship_to_one_setops.go.tpl"},{"name":"templates/11_relationship_one_to_one_setops.go.tpl","loader":"asset:templates/11_relationship_one_to_one_setops.go.tpl"},{"name":"templates/12_relationship_to_many_setops.go.tpl","loader":"asset:templates/12_relationship_to_many_setops.go.tpl"},{"name":"templates/13_all.go.tpl","loader":"asset:templates/13_all.go.tpl"},{"name":"templates/14_find.go.tpl","loader":"asset:templates/14_find.go.tpl"},{"name":"templates/15_insert.go.tpl","loader":"asset:templates/15_insert.go.tpl"},{"name":"templates/16_update.go.tpl","loader":"asset:templates/16_update.go.tpl"},{"name":"templates/17_upsert.go.tpl","loader":"base64:(sha256 of content): 8263cfaa595591606e435813bd5d8424db61b98b6d29936599cedc4e176660a5"},{"name":"templates/18_delete.go.tpl","loader":"asset:templates/18_delete.go.tpl"},{"name":"templates/19_reload.go.tpl","loader":"asset:templates/19_reload.go.tpl"},{"name":"templates/20_exists.go.tpl","loader":"asset:templates/20_exists.go.tpl"},{"name":"templates/21_auto_timestamps.go.tpl","loader":"asset:templates/21_auto_timestamps.go.tpl"},{"name":"templates/singleton/boil_queries.go.tpl","loader":"asset:templates/singleton/boil_queries.go.tpl"},{"name":"templates/singleton/boil_table_names.go.tpl","loader":"asset:templates/singleton/boil_table_names.go.tpl"},{"name":"templates/singleton/boil_types.go.tpl","loader":"asset:templates/singleton/boil_types.go.tpl"},{"name":"templates/singleton/psql_upsert.go.tpl","loader":"base64:(sha256 of content): cb25b2a17877de034695accfb0a1f5f11437114d5f919062c792efee53cbb25f"},{"name":"templates_test/00_types.go.tpl","loader":"asset:templates_test/00_types.go.tpl"},{"name":"templates_test/all.go.tpl","loader":"asset:templates_test/all.go.tpl"},{"name":"templates_test/delete.go.tpl","loader":"asset:templates_test/delete.go.tpl"},{"name":"templates_test/exists.go.tpl","loader":"asset:templates_test/exists.go.tpl"},{"name":"templates_test/find.go.tpl","loader":"asset:templates_test/find.go.tpl"},{"name":"templates_test/finishers.go.tpl","loader":"asset:templates_test/finishers.go.tpl"},{"name":"templates_test/hooks.go.tpl","loader":"asset:templates_test/hooks.go.tpl"},{"name":"templates_test/insert.go.tpl","loader":"asset:templates_test/insert.go.tpl"},{"name":"templates_test/relationship_one_to_one.go.tpl","loader":"asset:templates_test/relationship_one_to_one.go.tpl"},{"name":"templates_test/relationship_one_to_one_setops.go.tpl","loader":"asset:templates_test/relationship_one_to_one_setops.go.tpl"},{"name":"templates_test/relationship_to_many.go.tpl","loader":"asset:templates_test/relationship_to_many.go.tpl"},{"name":"templates_test/relationship_to_many_setops.go.tpl","loader":"asset:templates_test/relationship_to_many_setops.go.tpl"},{"name":"templates_test/relationship_to_one.go.tpl","loader":"asset:templates_test/relationship_to_one.go.tpl"},{"name":"templates_test/relationship_to_one_setops.go.tpl","loader":"asset:templates_test/relationship_to_one_setops.go.tpl"},{"name":"templates_test/reload.go.tpl","loader":"asset:templates_test/reload.go.tpl"},{"name":"templates_test/select.go.tpl","loader":"asset:templates_test/select.go.tpl"},{"name":"templates_test/singleton/boil_main_test.go.tpl","loader":"asset:templates_test/singleton/boil_main_test.go.tpl"},{"name":"templates_test/singleton/boil_queries_test.go.tpl","loader":"asset:templates_test/singleton/boil_queries_test.go.tpl"},{"name":"templates_test/singleton/boil_suites_test.go.tpl","loader":"asset:templates_test/singleton/boil_suites_test.go.tpl"},{"name":"templates_test/singleton/psql_main_test.go.tpl","loader":"base64:(sha256 of content): 473b063ee1f0281401d67450acb9eeac3f096030c2968aad15fc180358f8119f"},{"name":"templates_test/singleton/psql_suites_test.go.tpl","loader":"base64:(sha256 of content): 10c471afd916418b4bfce8bafdfa4d2c01d100e1b078ee7fd065f3a143ba3ce7"},{"name":"templates_test/types.go.tpl","loader":"asset:templates_test/types.go.tpl"},{"name":"templates_test/update.go.tpl","loader":"asset:templates_test/update.go.tpl"},{"name":"templates_test/upsert.go.tpl","loader":"base64:(sha256 of content): 519b35b1d2c50c1b0e341ff900b9ad23a8b48c497b295ff189838cd490bd1701"}]}

Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

https://github.com/jakecoffman/stldevs/blob/master/migrations/datsql.go

I added a primary key to the agg_meta table but that is unrelated I think.

Further information. What did you do, what did you expect?

I ran go test ./models and it failed around some time related stuff:

# github.com/jakecoffman/stldevs/models
models/agg_repo.go:385:2: non-bool queries.MustTime(o.CreatedAt) (type time.Time) used as if condition
models/agg_repo.go:601:34: queries.MustTime(o.CreatedAt).Time undefined (type time.Time has no field or method Time)
models/agg_user.go:379:2: non-bool queries.MustTime(o.CreatedAt) (type time.Time) used as if condition
models/agg_user.go:595:34: queries.MustTime(o.CreatedAt).Time undefined (type time.Time has no field or method Time)
FAIL    github.com/jakecoffman/stldevs/models [build failed]
aarondl commented 6 years ago

Hey there. This is fixed in v3.0.0-rc4. Thanks for reporting it. And extra thanks for including the --debug info, that made it easy to reproduce :)