Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ var genCmd = &cobra.Command{
output := map[string]string{}

for i, pkg := range settings.Packages {
if pkg.Schema == pkg.Queries {
fmt.Fprintf(os.Stderr, "package[%d]: schema and query path must not be identical\n", i)
os.Exit(1)
}

name := pkg.Name

if pkg.Path == "" {
Expand Down