* entc: use go-bindata --mode flag
This prevents unexpected changes in generated files if
system file mode is different from generated.
* entc/gen: fix typo in "MaskNotFound" func comment
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/99
go/packages now returns partial packages instead of error and this can cause an index of out range.
Reviewed By: alexsn
Differential Revision: D17939156
fbshipit-source-id: d02867a0cca5f1e90ac4952ac4136d8c8086a944
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/89
We can't run "imports" on files when the state is not completed. Because, "goimports" will drop undefined package. Therefore, it's suspended to end of the writing.
Fixed#88
Reviewed By: alexsn
Differential Revision: D17899321
fbshipit-source-id: 198dae11b121869764ebc9eee92110caf4256bed
Summary: godoc was showing "Code generated by go-bindata. (generated) DO NOT EDIT." in the package description and exposing its methods.
Reviewed By: alexsn
Differential Revision: D17253564
fbshipit-source-id: c82082b4fa6adfba2c2663efbfacefb6423f89d9
Summary: In some cases (like xwf auth service), you want to add additional fields to the generated model.
Reviewed By: alexsn
Differential Revision: D17223674
fbshipit-source-id: fb4be71b388c6bd107e6bac242133c237fe25599
Summary:
Go plugin is not a good solution for both internal and external usage.
It's hard to manage and maintain matching versions (both Go and external libraries), and it does not support Windows.
Reviewed By: alexsn
Differential Revision: D16582217
fbshipit-source-id: 81876d2c6f30bbfc16ecf9e5000f0670f2e62484