Skip to content

Commit

Permalink
fix: ignore EROFS errors (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Mar 8, 2024
1 parent 3958d26 commit b7ec137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Engine {
throw new UsageError(`This package manager (${packageManager}) isn't supported by this corepack build`);

let lastKnownGoodFile = await getLastKnownGoodFile(`r+`).catch(err => {
if ((err as NodeError)?.code !== `ENOENT`) {
if ((err as NodeError)?.code !== `ENOENT` && (err as NodeError)?.code !== `EROFS`) {
throw err;
}
});
Expand Down

0 comments on commit b7ec137

Please sign in to comment.