mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-02-23 20:42:25 +08:00
Update imports.
This commit is contained in:
parent
02f9160735
commit
ebd520e252
@ -25,10 +25,10 @@
|
||||
*/
|
||||
|
||||
import * as core from '@actions/core'
|
||||
import * as constants from './constants'
|
||||
import {save} from './features/cache'
|
||||
import {generateReports} from './features/reports'
|
||||
import {processSBOM} from './features/sbom'
|
||||
import * as constants from './constants.js'
|
||||
import {save} from './features/cache.js'
|
||||
import {generateReports} from './features/reports.js'
|
||||
import {processSBOM} from './features/sbom.js'
|
||||
|
||||
/**
|
||||
* Check given input and run a save process for the specified package manager
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as core from '@actions/core'
|
||||
import {GRAALVM_PLATFORM} from './constants'
|
||||
import {exec} from './utils'
|
||||
import {GRAALVM_PLATFORM} from './constants.js'
|
||||
import {exec} from './utils.js'
|
||||
|
||||
const APT_GET_INSTALL_BASE = 'sudo apt-get -y --no-upgrade install'
|
||||
const COMPONENT_TO_DEPS = new Map<string, Map<string, string>>([
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as c from '../constants'
|
||||
import * as c from '../constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as tc from '@actions/tool-cache'
|
||||
import {exec} from '../utils'
|
||||
import {exec} from '../utils.js'
|
||||
import {join} from 'path'
|
||||
|
||||
const MUSL_NAME = 'x86_64-linux-musl-native'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as c from '../constants'
|
||||
import * as c from '../constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as fs from 'fs'
|
||||
import * as github from '@actions/github'
|
||||
@ -11,7 +11,7 @@ import {
|
||||
updatePRComment,
|
||||
tmpfile,
|
||||
setNativeImageOption
|
||||
} from '../utils'
|
||||
} from '../utils.js'
|
||||
|
||||
const BUILD_OUTPUT_JSON_PATH = tmpfile('native-image-build-output.json')
|
||||
const BYTES_TO_KiB = 1024
|
||||
|
@ -1,11 +1,11 @@
|
||||
import * as c from '../constants'
|
||||
import * as c from '../constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as fs from 'fs'
|
||||
import * as github from '@actions/github'
|
||||
import * as glob from '@actions/glob'
|
||||
import {basename} from 'path'
|
||||
import * as semver from 'semver'
|
||||
import {setNativeImageOption} from '../utils'
|
||||
import {setNativeImageOption} from '../utils.js'
|
||||
|
||||
const INPUT_NI_SBOM = 'native-image-enable-sbom'
|
||||
const SBOM_FILE_SUFFIX = '.sbom.json'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as fs from 'fs'
|
||||
import * as httpClient from '@actions/http-client'
|
||||
@ -8,8 +8,8 @@ import * as stream from 'stream'
|
||||
import * as util from 'util'
|
||||
import * as semver from 'semver'
|
||||
import {IncomingHttpHeaders, OutgoingHttpHeaders} from 'http'
|
||||
import {RetryHelper} from '@actions/tool-cache/lib/retry-helper'
|
||||
import {calculateSHA256} from './utils'
|
||||
import {RetryHelper} from '@actions/tool-cache/lib/retry-helper.js'
|
||||
import {calculateSHA256} from './utils.js'
|
||||
import {ok} from 'assert'
|
||||
import {v4 as uuidv4} from 'uuid'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as semver from 'semver'
|
||||
import {
|
||||
@ -8,8 +8,8 @@ import {
|
||||
getLatestRelease,
|
||||
getMatchingTags,
|
||||
getTaggedRelease
|
||||
} from './utils'
|
||||
import {downloadGraalVM, downloadGraalVMEELegacy} from './gds'
|
||||
} from './utils.js'
|
||||
import {downloadGraalVM, downloadGraalVMEELegacy} from './gds.js'
|
||||
import {downloadTool} from '@actions/tool-cache'
|
||||
import {basename} from 'path'
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as semver from 'semver'
|
||||
import {GRAALVM_PLATFORM} from './constants'
|
||||
import {exec} from './utils'
|
||||
import {GRAALVM_PLATFORM} from './constants.js'
|
||||
import {exec} from './utils.js'
|
||||
import {join} from 'path'
|
||||
|
||||
const BASE_FLAGS = ['--non-interactive', 'install', '--no-progress']
|
||||
|
@ -1,10 +1,10 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as semver from 'semver'
|
||||
import {
|
||||
downloadExtractAndCacheJDK,
|
||||
getTaggedRelease,
|
||||
getMatchingTags
|
||||
} from './utils'
|
||||
} from './utils.js'
|
||||
import {downloadTool} from '@actions/tool-cache'
|
||||
import {spawnSync} from 'child_process'
|
||||
|
||||
|
24
src/main.ts
24
src/main.ts
@ -1,20 +1,20 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as graalvm from './graalvm'
|
||||
import * as graalvm from './graalvm.js'
|
||||
import * as semver from 'semver'
|
||||
import {isFeatureAvailable as isCacheAvailable} from '@actions/cache'
|
||||
import {basename, join} from 'path'
|
||||
import {restore} from './features/cache'
|
||||
import {setUpDependencies} from './dependencies'
|
||||
import {setUpGUComponents} from './gu'
|
||||
import {setUpMandrel} from './mandrel'
|
||||
import {setUpLiberica} from './liberica'
|
||||
import {checkForUpdates} from './features/check-for-updates'
|
||||
import {setUpNativeImageMusl} from './features/musl'
|
||||
import {setUpWindowsEnvironment} from './msvc'
|
||||
import {setUpNativeImageBuildReports} from './features/reports'
|
||||
import {restore} from './features/cache.js'
|
||||
import {setUpDependencies} from './dependencies.js'
|
||||
import {setUpGUComponents} from './gu.js'
|
||||
import {setUpMandrel} from './mandrel.js'
|
||||
import {setUpLiberica} from './liberica.js'
|
||||
import {checkForUpdates} from './features/check-for-updates.js'
|
||||
import {setUpNativeImageMusl} from './features/musl.js'
|
||||
import {setUpWindowsEnvironment} from './msvc.js'
|
||||
import {setUpNativeImageBuildReports} from './features/reports.js'
|
||||
import {exec} from '@actions/exec'
|
||||
import {setUpSBOMSupport} from './features/sbom'
|
||||
import {setUpSBOMSupport} from './features/sbom.js'
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as httpClient from '@actions/http-client'
|
||||
import {downloadExtractAndCacheJDK} from './utils'
|
||||
import {downloadExtractAndCacheJDK} from './utils.js'
|
||||
import {downloadTool} from '@actions/tool-cache'
|
||||
import {basename} from 'path'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as core from '@actions/core'
|
||||
import {execSync} from 'child_process'
|
||||
import {existsSync} from 'fs'
|
||||
import {VERSION_DEV} from './constants'
|
||||
import {VERSION_DEV} from './constants.js'
|
||||
|
||||
// Keep in sync with https://github.com/actions/virtual-environments
|
||||
const KNOWN_VISUAL_STUDIO_INSTALLATIONS = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as c from './constants'
|
||||
import * as c from './constants.js'
|
||||
import * as core from '@actions/core'
|
||||
import * as github from '@actions/github'
|
||||
import * as httpClient from '@actions/http-client'
|
||||
|
Loading…
x
Reference in New Issue
Block a user