Skip to content

Commit

Permalink
fix(cli): fixed runtime metadata filename not being valid (special ch…
Browse files Browse the repository at this point in the history
…aracters) for all platforms
  • Loading branch information
EduardWayland authored Nov 18, 2024
1 parent 56a88bb commit 932ac6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/core/src/reflection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,12 @@ export class ReflectionServer {
try {
const rootDir = await findProjectRoot();
const runtimesDir = path.join(rootDir, '.genkit', 'runtimes');
const timestamp = new Date().toISOString();
const date = new Date();
const time = date.getTime();
const timestamp = date.toISOString();
this.runtimeFilePath = path.join(
runtimesDir,
`${process.pid}-${timestamp}.json`
`${process.pid}-${time}.json`
);
const fileContent = JSON.stringify(
{
Expand Down

0 comments on commit 932ac6d

Please sign in to comment.