Skip to content

Commit

Permalink
fix(helm): cache empty index file
Browse files Browse the repository at this point in the history
Signed-off-by: Yz C <[email protected]>
  • Loading branch information
yz89122 committed Jun 17, 2024
1 parent 94e94f2 commit fcf1449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/helm/src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ async function pullChart(options: PullOptions): Promise<string | undefined> {
// Read the index file to get the cache path
try {
const content = await readFile(indexPath, "utf8");
return join(cacheDir, content);
if (content) {
return join(cacheDir, content);
}
} catch (err) {
if (getErrorCode(err) !== "ENOENT") throw err;
}
Expand Down

0 comments on commit fcf1449

Please sign in to comment.