Skip to content

Commit

Permalink
fix(artifact): undo earlier fix from #128
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam committed Dec 16, 2024
1 parent cb28125 commit 2e138b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 73 deletions.
86 changes: 15 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/core/artifacts/generators/ArtifactGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ export default class ArtifactGenerator {
);

// Cleanup unzipped artifact
// rimraf.sync(artifactFilepath); // This gives an error in windows "Error: EPERM: operation not permitted, unlink" https://github.com/flxbl-io/sfp/issues/128
rimraf.moveRemoveSync(artifactFilepath);
// https://github.com/flxbl-io/sfp/issues/128
// Undo fix for #128, use a different approach as its failing in docker
await fs.remove(artifactFilepath);

return zipArtifactFilepath;
} catch (error) {
Expand Down

0 comments on commit 2e138b0

Please sign in to comment.