From 4e52a024327d4c3fde35f00e9d76eb484c08944a Mon Sep 17 00:00:00 2001 From: Gaurang Gunde Date: Thu, 29 Jun 2023 03:20:41 -0700 Subject: [PATCH 1/4] fix: Pointing to a commit for python 2.7 support --- src/install-python.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/install-python.ts b/src/install-python.ts index 2af61291d..d40f287a7 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -2,14 +2,14 @@ import * as path from 'path'; import * as core from '@actions/core'; import * as tc from '@actions/tool-cache'; import * as exec from '@actions/exec'; -import {ExecOptions} from '@actions/exec/lib/interfaces'; -import {IS_WINDOWS, IS_LINUX} from './utils'; +import { ExecOptions } from '@actions/exec/lib/interfaces'; +import { IS_WINDOWS, IS_LINUX } from './utils'; const TOKEN = core.getInput('token'); const AUTH = !TOKEN ? undefined : `token ${TOKEN}`; const MANIFEST_REPO_OWNER = 'actions'; const MANIFEST_REPO_NAME = 'python-versions'; -const MANIFEST_REPO_BRANCH = 'main'; +const MANIFEST_REPO_BRANCH = '225ba42747d0f5e3dbd90ba15b9c7409a4b8c735'; export const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; export async function findReleaseFromManifest( @@ -48,7 +48,7 @@ async function installPython(workingDirectory: string) { cwd: workingDirectory, env: { ...process.env, - ...(IS_LINUX && {LD_LIBRARY_PATH: path.join(workingDirectory, 'lib')}) + ...(IS_LINUX && { LD_LIBRARY_PATH: path.join(workingDirectory, 'lib') }) }, silent: true, listeners: { From f482b46151393375162642f738142f98f8d15ecb Mon Sep 17 00:00:00 2001 From: Gaurang Gunde Date: Thu, 29 Jun 2023 03:53:00 -0700 Subject: [PATCH 2/4] feat: Rebuilt the action to update the index file --- dist/setup/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 1fa317909..dba525be2 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -69592,7 +69592,7 @@ const TOKEN = core.getInput('token'); const AUTH = !TOKEN ? undefined : `token ${TOKEN}`; const MANIFEST_REPO_OWNER = 'actions'; const MANIFEST_REPO_NAME = 'python-versions'; -const MANIFEST_REPO_BRANCH = 'main'; +const MANIFEST_REPO_BRANCH = '225ba42747d0f5e3dbd90ba15b9c7409a4b8c735'; exports.MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; function findReleaseFromManifest(semanticVersionSpec, architecture, manifest) { return __awaiter(this, void 0, void 0, function* () { From 60c2db2f4f23944ade020e6250ff951abee15ce1 Mon Sep 17 00:00:00 2001 From: Gaurang Gunde Date: Thu, 29 Jun 2023 04:10:50 -0700 Subject: [PATCH 3/4] fix: Update python-versions repo to point to Deca's local --- dist/setup/index.js | 2 +- src/install-python.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index dba525be2..867de1cbf 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -69590,7 +69590,7 @@ const exec = __importStar(__nccwpck_require__(1514)); const utils_1 = __nccwpck_require__(1314); const TOKEN = core.getInput('token'); const AUTH = !TOKEN ? undefined : `token ${TOKEN}`; -const MANIFEST_REPO_OWNER = 'actions'; +const MANIFEST_REPO_OWNER = 'Deca-Technologies'; const MANIFEST_REPO_NAME = 'python-versions'; const MANIFEST_REPO_BRANCH = '225ba42747d0f5e3dbd90ba15b9c7409a4b8c735'; exports.MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; diff --git a/src/install-python.ts b/src/install-python.ts index d40f287a7..20bc3b73e 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -7,7 +7,7 @@ import { IS_WINDOWS, IS_LINUX } from './utils'; const TOKEN = core.getInput('token'); const AUTH = !TOKEN ? undefined : `token ${TOKEN}`; -const MANIFEST_REPO_OWNER = 'actions'; +const MANIFEST_REPO_OWNER = 'Deca-Technologies'; const MANIFEST_REPO_NAME = 'python-versions'; const MANIFEST_REPO_BRANCH = '225ba42747d0f5e3dbd90ba15b9c7409a4b8c735'; export const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; From 176bb762f95432edffcd105a80ea1578e4582ac8 Mon Sep 17 00:00:00 2001 From: Gaurang Gunde Date: Thu, 29 Jun 2023 04:18:35 -0700 Subject: [PATCH 4/4] fix: Pointing to main of python-versions Deca local --- dist/setup/index.js | 2 +- src/install-python.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 867de1cbf..e718a6142 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -69592,7 +69592,7 @@ const TOKEN = core.getInput('token'); const AUTH = !TOKEN ? undefined : `token ${TOKEN}`; const MANIFEST_REPO_OWNER = 'Deca-Technologies'; const MANIFEST_REPO_NAME = 'python-versions'; -const MANIFEST_REPO_BRANCH = '225ba42747d0f5e3dbd90ba15b9c7409a4b8c735'; +const MANIFEST_REPO_BRANCH = 'main'; exports.MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; function findReleaseFromManifest(semanticVersionSpec, architecture, manifest) { return __awaiter(this, void 0, void 0, function* () { diff --git a/src/install-python.ts b/src/install-python.ts index 20bc3b73e..232c4b731 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -9,7 +9,7 @@ const TOKEN = core.getInput('token'); const AUTH = !TOKEN ? undefined : `token ${TOKEN}`; const MANIFEST_REPO_OWNER = 'Deca-Technologies'; const MANIFEST_REPO_NAME = 'python-versions'; -const MANIFEST_REPO_BRANCH = '225ba42747d0f5e3dbd90ba15b9c7409a4b8c735'; +const MANIFEST_REPO_BRANCH = 'main'; export const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; export async function findReleaseFromManifest(