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