Skip to content

Commit 9c62dcb

Browse files
committed
fix: ensure file is written in temp dir
1 parent aafb8ae commit 9c62dcb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/happy-wasps-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive-apollo-router-plugin': patch
3+
---
4+
5+
fix tmp dir filename

packages/libraries/router/src/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl HiveRegistry {
124124
// It also enables hot-reloading to makes sure Apollo Router watches the file.
125125
let file_name = config.schema_file_path.unwrap_or(
126126
env::temp_dir()
127-
.with_file_name("supergraph-schema.graphql")
127+
.join("supergraph-schema.graphql")
128128
.to_string_lossy()
129129
.to_string(),
130130
);

0 commit comments

Comments
 (0)