A Strange File Named '[object Promise].metadata.json' is Generated After Execution
- Dominant language
- TypeScript
- Stars
- 50
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
After execution, an unintended and strange file named [object Promise].metadata.json seems to be generated in the current working directory (cwd).
It appears that an await is missing in the part of the code that calculates the path for the metadata file.
https://github.com/denosaurs/cache/blob/83e4287694b0affe39bcad72f4cb7f99d3679057/file.ts#L145
----
minimum reproducible example is here
https://gist.github.com/podhmo/476b79c026d24c69abef532c8dcea292
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect file.ts around line 145 and reproduce the behavior using the minimum reproducible example in the linked gist. Trace the metadata path calculation and verify that execution no longer creates a [object Promise].metadata.json file in the current working directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100