mirror of https://github.com/aminya/setup-cpp
fix: down-grade path-exists to v4.0.0 due to node:fs usage
This commit is contained in:
parent
b625cd0632
commit
eea16aa8c7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,7 @@
|
|||
"mri": "^1.2.0",
|
||||
"msvc-dev-cmd": "github:aminya/msvc-dev-cmd#9f672c1",
|
||||
"numerous": "1.0.3",
|
||||
"path-exists": "^5.0.0",
|
||||
"path-exists": "^4.0.0",
|
||||
"patha": "^0.4.1",
|
||||
"quote-unquote": "^1.0.0",
|
||||
"semver": "7.3.8",
|
||||
|
|
|
@ -44,7 +44,7 @@ importers:
|
|||
npm-run-all2: ^6.0.4
|
||||
numerous: 1.0.3
|
||||
parcel: 2.8.0
|
||||
path-exists: ^5.0.0
|
||||
path-exists: ^4.0.0
|
||||
patha: ^0.4.1
|
||||
prettier: 2.7.1
|
||||
prettier-config-atomic: ^3.1.0
|
||||
|
@ -79,7 +79,7 @@ importers:
|
|||
mri: 1.2.0
|
||||
msvc-dev-cmd: github.com/aminya/msvc-dev-cmd/9f672c1
|
||||
numerous: 1.0.3
|
||||
path-exists: 5.0.0
|
||||
path-exists: 4.0.0
|
||||
patha: 0.4.1
|
||||
quote-unquote: 1.0.0
|
||||
semver: 7.3.8
|
||||
|
@ -7824,12 +7824,6 @@ packages:
|
|||
/path-exists/4.0.0:
|
||||
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/path-exists/5.0.0:
|
||||
resolution: {integrity: sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==}
|
||||
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
||||
dev: false
|
||||
|
||||
/path-is-absolute/1.0.1:
|
||||
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable require-atomic-updates */
|
||||
import execa from "execa"
|
||||
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
import { dirname } from "patha"
|
||||
import which from "which"
|
||||
import { addPath } from "../utils/env/addEnv"
|
||||
|
|
|
@ -14,7 +14,7 @@ import { isArch } from "../utils/env/isArch"
|
|||
import { hasDnf } from "../utils/env/hasDnf"
|
||||
import { setupDnfPack } from "../utils/setup/setupDnfPack"
|
||||
import { isUbuntu } from "../utils/env/isUbuntu"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
/** Get the platform data for cmake */
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
|
|
@ -16,7 +16,7 @@ import { isArch } from "../utils/env/isArch"
|
|||
import { isUbuntu } from "../utils/env/isUbuntu"
|
||||
import { hasDnf } from "../utils/env/hasDnf"
|
||||
import { setupDnfPack } from "../utils/setup/setupDnfPack"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
interface MingwInfo {
|
||||
releaseName: string
|
||||
|
|
|
@ -14,7 +14,7 @@ import { getVersion } from "../versions/versions"
|
|||
import { isUbuntu } from "../utils/env/isUbuntu"
|
||||
import { getLLVMPackageInfo } from "./llvm_url"
|
||||
import { ubuntuVersion } from "../utils/env/ubuntu_version"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
export async function setupLLVM(version: string, setupDir: string, arch: string): Promise<InstallationInfo> {
|
||||
const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)
|
||||
|
|
|
@ -7,7 +7,7 @@ import ciDetect from "@npmcli/ci-detect"
|
|||
import { join } from "patha"
|
||||
|
||||
import { error, info, warning } from "ci-log"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
type MSVCVersion = "2022" | "17.0" | "2019" | "16.0" | "2017" | "15.0" | "2015" | "14.0" | "2013" | "12.0" | string
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import { join } from "patha"
|
|||
import ciDetect from "@npmcli/ci-detect"
|
||||
import { isCacheFeatureAvailable, IS_MAC } from "setup-python/src/utils"
|
||||
import { getCacheDistributor } from "setup-python/src/cache-distributions/cache-factory"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
function isPyPyVersion(versionSpec: string) {
|
||||
return versionSpec.startsWith("pypy")
|
||||
|
|
|
@ -8,7 +8,7 @@ import { delimiter } from "path"
|
|||
import escapeSpace from "escape-path-with-spaces"
|
||||
import { giveUserAccess } from "user-access"
|
||||
import escapeQuote from "escape-quotes"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
/**
|
||||
* Add an environment variable.
|
||||
|
|
|
@ -5,7 +5,7 @@ import { info } from "@actions/core"
|
|||
import ciDetect from "@npmcli/ci-detect"
|
||||
import { addEnv, cpprc_path, setupCppInProfile } from "../env/addEnv"
|
||||
import which from "which"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
import { promises as fsPromises } from "fs"
|
||||
const { appendFile } = fsPromises
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { isArch } from "../env/isArch"
|
|||
import { hasDnf } from "../env/hasDnf"
|
||||
import { setupDnfPack } from "./setupDnfPack"
|
||||
import { isUbuntu } from "../env/isUbuntu"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
/** A type that describes a package */
|
||||
export type PackageInfo = {
|
||||
|
|
|
@ -7,7 +7,7 @@ import { InstallationInfo } from "./setupBin"
|
|||
import { addExeExt, dirname, join } from "patha"
|
||||
import { addPath } from "../env/addEnv"
|
||||
import which from "which"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
let python: string | undefined
|
||||
let binDirs: string[] | undefined
|
||||
|
|
|
@ -4,7 +4,7 @@ import * as path from "patha"
|
|||
import { addExeExt, join } from "patha"
|
||||
import spawn from "cross-spawn"
|
||||
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
export async function setupTmpDir(testName: string) {
|
||||
const tempDirectory = path.join(tmpdir(), "setup cpp temp", testName)
|
||||
|
|
|
@ -12,7 +12,7 @@ import { hasDnf } from "../utils/env/hasDnf"
|
|||
import { setupDnfPack } from "../utils/setup/setupDnfPack"
|
||||
import { isUbuntu } from "../utils/env/isUbuntu"
|
||||
import { giveUserAccess } from "user-access"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
let hasVCPKG = false
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import { setupMSVCDevCmd } from "msvc-dev-cmd/lib.js"
|
||||
import { addEnv } from "../utils/env/addEnv"
|
||||
import { info } from "ci-log"
|
||||
import { pathExists } from "path-exists"
|
||||
import pathExists from "path-exists"
|
||||
|
||||
function getArch(arch: string): string {
|
||||
switch (arch) {
|
||||
|
|
Loading…
Reference in New Issue