Skip to content

Commit

Permalink
Merge pull request web-ridge#53 from ollexjr/main
Browse files Browse the repository at this point in the history
Fix import path on windows, Dir() returns backslashed path, in the fi…
  • Loading branch information
RichardLindhout authored Jan 15, 2021
2 parents f17b21c + 54c368d commit f18903b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resolver_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ func (m *ResolverPlugin) generateSingleFile(data *codegen.Data, models []*Model,

file.Imports = append(file.Imports, Import{
Alias: "fm",
ImportPath: path.Join(m.rootImportPath, m.frontend.Directory),
ImportPath: path.Join(m.rootImportPath, m.frontend.Directory),
})

file.Imports = append(file.Imports, Import{
Alias: "gm",
ImportPath: buildImportPath(m.rootImportPath, data.Config.Exec.Dir()),
ImportPath: buildImportPath(m.rootImportPath, data.Config.Exec.ImportPath()),
})

for _, scope := range m.pluginConfig.AuthorizationScopes {
Expand Down

0 comments on commit f18903b

Please sign in to comment.