fix: ensure file is written in temp dir (#6753)

This commit is contained in:
Tom Hastjarjanto 2025-09-14 07:58:30 +02:00 committed by GitHub
parent d8eac79d9c
commit 7ef800e840
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'hive-apollo-router-plugin': patch
---
fix tmp dir filename

View file

@ -124,7 +124,7 @@ impl HiveRegistry {
// It also enables hot-reloading to makes sure Apollo Router watches the file.
let file_name = config.schema_file_path.unwrap_or(
env::temp_dir()
.with_file_name("supergraph-schema.graphql")
.join("supergraph-schema.graphql")
.to_string_lossy()
.to_string(),
);