Allow absolute paths in schema files. (#192)
* Allow absolute paths in schema files. Thsi is useful for some out-of-tree testing I want to do. It's unfortunate (imo) that filepath.join doesn't have this behavior by default. Test plan: go test ./... * run gofmt * one more change to use pathJoin
This commit is contained in:
+2
-1
@@ -2,5 +2,6 @@
|
||||
# https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
schema: schema.graphql
|
||||
operations:
|
||||
- genqlient.graphql
|
||||
# Also use this config to test absolute paths in config files.
|
||||
- /tmp/genqlient.graphql
|
||||
generated: generated.go
|
||||
|
||||
Reference in New Issue
Block a user