Skip to content

Commit 392bbef

Browse files
committed
fix: avoid bundling of http deps from actions
Signed-off-by: Amin Yahyaabadi <[email protected]>
1 parent 207a8f0 commit 392bbef

File tree

6 files changed

+29
-90
lines changed

6 files changed

+29
-90
lines changed

dist/index.js

Lines changed: 14 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"buildkit-cache-dance": "dist/index.js"
1010
},
1111
"scripts": {
12-
"build": "parcel build --target dist",
12+
"build": "parcel build --target dist --detailed-report",
1313
"prepare": "npm run build",
14-
"test": "vitest"
14+
"test": "node --enable-source-maps ./node_modules/vitest/vitest.mjs "
1515
},
1616
"keywords": [
1717
"buildkit",
@@ -33,7 +33,7 @@
3333
"vitest": "^3.1.3"
3434
},
3535
"dependencies": {
36-
"@actions/core": "~1.11.1",
36+
"@actions/core": "=1.8.0",
3737
"dockerfile-ast": "^0.7.0",
3838
"mri": "^1.2.0",
3939
"spawn-please": "^3.0.0"

pnpm-lock.yaml

Lines changed: 9 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/inject-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { promises as fs } from "fs";
22
import path from 'path';
33
import { CacheOptions, Opts, getCacheMap, getMountArgsString, getTargetPath, getUID, getGID, getBuilder } from './opts.js';
44
import { run } from './run.js';
5-
import { notice } from '@actions/core';
5+
import { notice } from '@actions/core/lib/core.js';
66

77
async function injectCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string, containerImage: string, builder: string) {
88
// Clean Scratch Directory

src/opts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import mri from 'mri';
22
import { promises as fs } from 'fs';
3-
import { getInput, warning } from '@actions/core';
3+
import { getInput, warning } from '@actions/core/lib/core.js';
44
import { DockerfileParser, ModifiableInstruction } from 'dockerfile-ast';
55

66
export type Opts = {

0 commit comments

Comments
 (0)