Skip to content

Commit

Permalink
fix: use ES-Module memoizee fork
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 4, 2024
1 parent ab36eab commit c31f658
Show file tree
Hide file tree
Showing 36 changed files with 94 additions and 261 deletions.
3 changes: 0 additions & 3 deletions dist/legacy/actions_python.0b2a8a9a.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/actions_python.0b2a8a9a.js.map

This file was deleted.

17 changes: 0 additions & 17 deletions dist/legacy/gcc_matcher.json

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/github_brechtsanders_winlibs_mingw.json

This file was deleted.

2 changes: 0 additions & 2 deletions dist/legacy/hdi.619de66c.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/hdi.619de66c.js.map

This file was deleted.

17 changes: 0 additions & 17 deletions dist/legacy/llvm_matcher.json

This file was deleted.

18 changes: 0 additions & 18 deletions dist/legacy/msvc_matcher.json

This file was deleted.

31 changes: 0 additions & 31 deletions dist/legacy/proxy-agent.5536f8bd.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/proxy-agent.5536f8bd.js.map

This file was deleted.

18 changes: 0 additions & 18 deletions dist/legacy/python_matcher.json

This file was deleted.

45 changes: 0 additions & 45 deletions dist/legacy/setup-cpp.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/setup-cpp.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/modern/assets/actions_python-mhNRejTS.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/assets/actions_python-mhNRejTS.mjs.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/modern/assets/hdi-CLiriP2M.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/assets/hdi-CLiriP2M.mjs.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/modern/assets/proxy-agent-CtreyBpw.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/assets/proxy-agent-CtreyBpw.mjs.map

This file was deleted.

17 changes: 0 additions & 17 deletions dist/modern/gcc_matcher.json

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/github_brechtsanders_winlibs_mingw.json

This file was deleted.

17 changes: 0 additions & 17 deletions dist/modern/llvm_matcher.json

This file was deleted.

18 changes: 0 additions & 18 deletions dist/modern/msvc_matcher.json

This file was deleted.

18 changes: 0 additions & 18 deletions dist/modern/python_matcher.json

This file was deleted.

3 changes: 0 additions & 3 deletions dist/modern/setup-cpp.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/setup-cpp.mjs.map

This file was deleted.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@
"pnpm": {
"patchedDependencies": {
"@actions/[email protected]": "patches/@[email protected]"
},
"overrides": {
"memoizee": "https://github.com/aminya/memoizee#77c8b19"
}
}
}
2 changes: 1 addition & 1 deletion packages/envosman/src/rc-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function sourceRCInRc_(options: RcOptions) {
/**
* handles adding conditions to source rc file from .bashrc and .profile
*/
export const sourceRCInRc = memoize(sourceRCInRc_, { promise: true })
export const sourceRCInRc = await memoize(sourceRCInRc_, { promise: true })

async function addRCHeader(options: RcOptions) {
// a variable that prevents source rc from being called from .bashrc and .profile
Expand Down
2 changes: 1 addition & 1 deletion packages/setup-apt/src/init-apt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export async function initApt(apt: string) {
}

/** Install gnupg and certificates (usually missing from docker containers) (memoized) */
export const initAptMemoized = memoize(initApt, { promise: true })
export const initAptMemoized = await memoize(initApt, { promise: true })
2 changes: 1 addition & 1 deletion packages/setup-apt/src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export function updateAptRepos(apt: string = getApt()) {
* Update the apt repositories (memoized)
* @param apt The apt command to use (optional)
*/
export const updateAptReposMemoized = memoize(updateAptRepos)
export const updateAptReposMemoized = await memoize(updateAptRepos)
Loading

0 comments on commit c31f658

Please sign in to comment.