Skip to content

Commit

Permalink
Fix #1762: Reload packages before merging type systems (#1763)
Browse files Browse the repository at this point in the history
* Fix #1762: Reload packages before merging type systems

* run gofmt on file

Signed-off-by: Steve Coffman <steve@khanacademy.org>

Co-authored-by: Steve Coffman <steve@khanacademy.org>
  • Loading branch information
ipfans and StevenACoffman committed Jan 14, 2022
1 parent e5b5e83 commit 931271a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codegen/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func (d *Data) Directives() DirectiveList {
}

func BuildData(cfg *config.Config) (*Data, error) {
// We reload all packages to allow packages to be compared correctly.
cfg.ReloadAllPackages()

b := builder{
Config: cfg,
Schema: cfg.Schema,
Expand Down

0 comments on commit 931271a

Please sign in to comment.