mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 14:52:01 +03:00
Remove --skip-version-validation option before passing the args on (#3386)
This commit is contained in:
parent
bade0c31de
commit
1b829e0a1d
5
run
5
run
@ -13,7 +13,8 @@ let args = process.argv.slice(2)
|
|||||||
|
|
||||||
let skip_validation = '--skip-version-validation'
|
let skip_validation = '--skip-version-validation'
|
||||||
async function init () {
|
async function init () {
|
||||||
if(!args.includes(skip_validation)) {
|
let skipValidationIndex = args.indexOf(skip_validation)
|
||||||
|
if (skip_validation === -1) {
|
||||||
cmd.section('Version Validation')
|
cmd.section('Version Validation')
|
||||||
console.log("Use the `" + skip_validation + "` flag to skip it.")
|
console.log("Use the `" + skip_validation + "` flag to skip it.")
|
||||||
console.log("Querying npm for the latest LTS versions.")
|
console.log("Querying npm for the latest LTS versions.")
|
||||||
@ -24,6 +25,8 @@ async function init () {
|
|||||||
await cmd.check_version('rustc','1.61.0-nightly',{
|
await cmd.check_version('rustc','1.61.0-nightly',{
|
||||||
preprocess:(v)=>v.substring(6,20)
|
preprocess:(v)=>v.substring(6,20)
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
args.splice(skipValidationIndex, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
let initialized = fss.existsSync(paths.dist.buildInit)
|
let initialized = fss.existsSync(paths.dist.buildInit)
|
||||||
|
Loading…
Reference in New Issue
Block a user