Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*.ts]
indent_style = space
indent_size = 4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of change should be another PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sorry for that. I had to add it as otherwise auto-formatting would always start changing the indent.

9 changes: 5 additions & 4 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/extract-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { run, runPiped } from './run.js';
async function extractCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) {
// Prepare Timestamp for Layer Cache Busting
const date = new Date().toISOString();

await fs.mkdir(scratchDir, { recursive: true });
await fs.writeFile(path.join(scratchDir, 'buildstamp'), date);

Expand Down Expand Up @@ -42,7 +42,7 @@ RUN --mount=${mountArgs} \
);

// Move Cache into Its Place
await fs.rm(cacheSource, { recursive: true, force: true });
await run('sudo', ['rm', '-rf', cacheSource]);
await fs.rename(path.join(scratchDir, 'dance-cache'), cacheSource);
}

Expand Down