mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
739b731933 | ||
|
|
0cbcadc627 | ||
|
|
91a6c780c4 | ||
|
|
dbcdcf481d | ||
|
|
d2b72024f1 | ||
|
|
78fd200603 | ||
|
|
ca7fe3d91f | ||
|
|
de68645eec | ||
|
|
20324f7e34 | ||
|
|
7f508b5101 | ||
|
|
94fe02071e | ||
|
|
d81cbeb0ce | ||
|
|
06ab568b6a | ||
|
|
d186982201 | ||
|
|
d649a291c3 | ||
|
|
cdeaf534b7 | ||
|
|
3197025b07 | ||
|
|
28def02321 | ||
|
|
3d6280ad19 | ||
|
|
980126329a | ||
|
|
4f28d1c82e | ||
|
|
53b22d2360 | ||
|
|
55dff253ca | ||
|
|
e15ecc8aaa | ||
|
|
71f024b642 | ||
|
|
30011b6444 | ||
|
|
f422c055c3 | ||
|
|
a01ba37375 | ||
|
|
fdfc519f55 | ||
|
|
480f78f4b6 | ||
|
|
48efd73814 | ||
|
|
5478747ea7 | ||
|
|
8a173f1bc2 | ||
|
|
48481806ad | ||
|
|
623e527949 | ||
|
|
c933cecfdc | ||
|
|
7c15ff8590 | ||
|
|
58366f2203 | ||
|
|
f5483241db | ||
|
|
0331c8b821 | ||
|
|
818f4eeb16 | ||
|
|
052cbd8ee4 | ||
|
|
001fd1b7c7 | ||
|
|
4d7199dbd0 | ||
|
|
5dd450999e | ||
|
|
3551d3fbd4 | ||
|
|
07160f610f | ||
|
|
0449254cae | ||
|
|
689f94552b | ||
|
|
db2d09d84c | ||
|
|
8b354c238c | ||
|
|
7f4c88c00b | ||
|
|
dbac26120b | ||
|
|
0f26fedc26 | ||
|
|
7da380d64e | ||
|
|
5f2df8a190 | ||
|
|
4ff821c778 | ||
|
|
34fa48c067 | ||
|
|
a66a46f031 | ||
|
|
537d9f67b4 | ||
|
|
69599c886c | ||
|
|
247acff66d | ||
|
|
7978ff1579 | ||
|
|
30cd88adf9 | ||
|
|
7005fbe92a | ||
|
|
026be4409b | ||
|
|
0ed24c9d6c | ||
|
|
9dab9b8155 | ||
|
|
69709d16de | ||
|
|
ae627f04d2 | ||
|
|
eb85b2a580 | ||
|
|
61efe96192 | ||
|
|
7b9c95cc8e | ||
|
|
74ac24dec4 | ||
|
|
b01832a197 |
+91
-15
@@ -1,37 +1,113 @@
|
||||
name: Test this action
|
||||
on: [push]
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches-ignore:
|
||||
- master
|
||||
- v1
|
||||
tags-ignore:
|
||||
- '*'
|
||||
paths-ignore:
|
||||
- README.md
|
||||
jobs:
|
||||
test:
|
||||
common:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
|
||||
# Use various version syntaxes here for testing
|
||||
ruby: [ .ruby-version, 2.3, ruby-2.4, 2.5, ruby-2.6.5, 2.7.0, jruby, truffleruby ]
|
||||
ruby: [ 2.2, 2.3, .ruby-version, .tool-versions, ruby-head, jruby, jruby-head, truffleruby, truffleruby-head ]
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
ruby: 2.3
|
||||
- os: windows-latest
|
||||
ruby: jruby
|
||||
- os: windows-latest
|
||||
ruby: truffleruby
|
||||
- os: windows-latest
|
||||
ruby: truffleruby-head
|
||||
name: ${{ matrix.os }} ${{ matrix.ruby }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
- run: ruby --version
|
||||
- run: ridk version
|
||||
- run: ruby -v
|
||||
- name: build compiler
|
||||
run: |
|
||||
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
|
||||
- name: ridk version (mingw)
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
|
||||
if (($abi -ge '2.4') -and $plat.Contains('mingw')) {
|
||||
ridk version
|
||||
} else {
|
||||
echo 'ridk is unavailable'
|
||||
}
|
||||
- name: Subprocess test
|
||||
run: ruby test_subprocess.rb
|
||||
- name: OpenSSL version
|
||||
run: ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
|
||||
- name: OpenSSL test
|
||||
run: ruby -ropen-uri -e 'puts open(%{https://rubygems.org/}) { |f| f.read(2014) }'
|
||||
run: ruby -ropen-uri -e 'puts open(%{https://rubygems.org/}) { |f| f.read(1024) }'
|
||||
- name: C extension test
|
||||
run: gem install json --no-document
|
||||
- name: Check that Bundler is installed
|
||||
run: bundle --version
|
||||
- name: Check that Bundler works
|
||||
run: bundle install
|
||||
run: gem install json:2.2.0 --no-document
|
||||
- run: bundle --version
|
||||
- run: bundle install
|
||||
- run: bundle exec rake --version
|
||||
|
||||
specials:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
cfg:
|
||||
- { ruby: rubinius, os: ubuntu-18.04 }
|
||||
- { ruby: mingw , os: windows-latest }
|
||||
- { ruby: mswin , os: windows-latest }
|
||||
name: ${{ matrix.cfg.os }} ${{ matrix.cfg.ruby }}
|
||||
runs-on: ${{ matrix.cfg.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
with:
|
||||
ruby-version: ${{ matrix.cfg.ruby }}
|
||||
- run: ruby -v
|
||||
- name: build compiler
|
||||
run: |
|
||||
ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first"
|
||||
- name: ridk version (mingw)
|
||||
if: matrix.cfg.os == 'windows-latest'
|
||||
run: |
|
||||
$abi, $plat = $(ruby -e "STDOUT.write RbConfig::CONFIG['ruby_version'] + ' ' + RUBY_PLATFORM").split(' ')
|
||||
if (($abi -ge '2.4') -and $plat.Contains('mingw')) {
|
||||
ridk version
|
||||
} else {
|
||||
echo 'ridk is unavailable'
|
||||
}
|
||||
- name: Subprocess test
|
||||
run: ruby test_subprocess.rb
|
||||
- name: OpenSSL version
|
||||
run: ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
|
||||
- name: OpenSSL test
|
||||
run: ruby -ropen-uri -e 'puts open(%{https://rubygems.org/}) { |f| f.read(1024) }'
|
||||
- name: C extension test
|
||||
if: endsWith(matrix.cfg.ruby, 'mswin') == false
|
||||
run: gem install json:2.2.0 --no-document
|
||||
- name: C extension test (mswin cmd)
|
||||
if: endsWith(matrix.cfg.ruby, 'mswin')
|
||||
shell: cmd
|
||||
run: |
|
||||
call %VCVARS%
|
||||
gem install json:2.2.0 --no-document
|
||||
- name: C extension test (mswin ps1)
|
||||
if: endsWith(matrix.cfg.ruby, 'mswin')
|
||||
run: |
|
||||
cmd.exe /c "$env:VCVARS && set" | Foreach-Object {
|
||||
$p, $v = $_.split('=')
|
||||
Set-Item -path env:$p -value $v
|
||||
}
|
||||
gem install json:2.2.0 --no-document
|
||||
- run: bundle --version
|
||||
- run: bundle install
|
||||
- run: bundle exec rake --version
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
nodejs 12.0.0
|
||||
ruby 2.7.0
|
||||
@@ -1,5 +1,6 @@
|
||||
# Used for testing
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem "rake"
|
||||
gem "path"
|
||||
gem "json"
|
||||
gem "json", "2.2.0"
|
||||
|
||||
@@ -1,40 +1,53 @@
|
||||
# use-ruby
|
||||
# setup-ruby
|
||||
|
||||
This action downloads a prebuilt ruby and adds it to `$PATH`.
|
||||
Note: this action used to be at `eregon/use-ruby-action` and was moved to the `ruby` organization.
|
||||
Please [update](https://github.com/ruby/setup-ruby/releases/tag/v1.13.0) if you are using `eregon/use-ruby-action`.
|
||||
|
||||
It is very efficient and takes about 5 seconds to download, extract and add the given Ruby to `$PATH`.
|
||||
This action downloads a prebuilt ruby and adds it to the `PATH`.
|
||||
|
||||
It is very efficient and takes about 5 seconds to download, extract and add the given Ruby to the `PATH`.
|
||||
No extra packages need to be installed.
|
||||
|
||||
Compared to [actions/setup-ruby](https://github.com/actions/setup-ruby),
|
||||
this actions supports many more versions and features.
|
||||
|
||||
### Supported Versions
|
||||
|
||||
This action currently supports these versions of MRI, JRuby and TruffleRuby:
|
||||
|
||||
| Interpreter | Versions |
|
||||
| ----------- | -------- |
|
||||
| Ruby | 2.3.0 - 2.3.8, 2.4.0 - 2.4.9, 2.5.0 - 2.5.7, 2.6.0 - 2.6.5, 2.7.0 |
|
||||
| JRuby | 9.2.9.0 |
|
||||
| TruffleRuby | 19.3.0, 19.3.1 |
|
||||
| Ruby | 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.9, 2.5.0 - 2.5.7, 2.6.0 - 2.6.5, 2.7.0, head, mingw, mswin |
|
||||
| JRuby | 9.2.9.0 - 9.2.10.0, head |
|
||||
| TruffleRuby | 19.3.0 - 20.0.0, head |
|
||||
| Rubinius | 4.14 |
|
||||
|
||||
The recommended way to refer to these versions is:
|
||||
`2.3`, `2.4`, `2.5`, `2.6`, `2.7`, `jruby`, `truffleruby`.
|
||||
That way, the latest compatible release is used, which contains the most bug fixes.
|
||||
|
||||
See https://github.com/eregon/ruby-install-builder/blob/metadata/versions.json
|
||||
for the always up-to-date list of available Ruby versions.
|
||||
|
||||
Note that Ruby 2.3 and the OpenSSL version it needs (1.0.2) are both end-of-life,
|
||||
which means Ruby 2.3 is unmaintained and considered insecure.
|
||||
`mingw` and `mswin` are `ruby-head` builds using the MSYS2 and MSVC toolchains on Windows.
|
||||
Note that Ruby ≤ 2.3 and the OpenSSL version it needs (1.0.2) are both end-of-life,
|
||||
which means Ruby ≤ 2.3 is unmaintained and considered insecure.
|
||||
On Windows, Ruby 2.4 uses OpenSSL 1.0.2, which is no longer maintained.
|
||||
Ruby 2.2 resolves to 2.2.6 on Windows (last build from RubyInstaller) and 2.2.10 otherwise.
|
||||
|
||||
### Supported Platforms
|
||||
|
||||
The action works for all GitHub-hosted runners:
|
||||
`ubuntu-16.04`, `ubuntu-18.04`, `macos-latest` and `windows-latest`.
|
||||
The action works for all [GitHub-hosted runners](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners).
|
||||
|
||||
Ruby 2.3, JRuby and TruffleRuby are not yet supported on `windows-latest`.
|
||||
| Operating System | Versions |
|
||||
| ----------- | -------- |
|
||||
| Ubuntu | `ubuntu-latest` (= `ubuntu-18.04`), `ubuntu-16.04` |
|
||||
| macOS | `macos-latest` |
|
||||
| Windows | `windows-latest` |
|
||||
|
||||
The prebuilt rubies are generated by https://github.com/eregon/ruby-install-builder
|
||||
and on Windows by https://github.com/oneclick/rubyinstaller2.
|
||||
Rubinius is only available on `ubuntu-latest`.
|
||||
|
||||
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
|
||||
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
|
||||
`mingw` and `mswin` builds are generated by [ruby-loco](https://github.com/MSP-Greg/ruby-loco).
|
||||
`ruby-head` is generated by [ruby-dev-builder](https://github.com/ruby/ruby-dev-builder),
|
||||
`jruby-head` is generated by [jruby-dev-builder](https://github.com/ruby/jruby-dev-builder)
|
||||
and `truffleruby-head` is generated by [truffleruby-dev-builder](https://github.com/ruby/truffleruby-dev-builder).
|
||||
The full list of available Ruby versions can be seen in [ruby-builder-versions.js](ruby-builder-versions.js)
|
||||
for Ubuntu and macOS and in [windows-versions.js](windows-versions.js) for Windows.
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -48,7 +61,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: eregon/use-ruby-action@master
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
- run: ruby -v
|
||||
@@ -71,7 +84,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: eregon/use-ruby-action@master
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
- run: ruby -v
|
||||
@@ -83,7 +96,11 @@ jobs:
|
||||
* short version like `2.6`, automatically using the latest release matching that version (`2.6.5`)
|
||||
* version only like `2.6.5`, assumes MRI for the engine
|
||||
* engine only like `truffleruby`, uses the latest stable release of that implementation
|
||||
* `.ruby-version` (also the default value) reads from the project's `.ruby-version` file
|
||||
|
||||
|
||||
* `.ruby-version` reads from the project's `.ruby-version` file
|
||||
* `.tool-versions` reads from the project's `.tool-versions` file
|
||||
* If the `ruby-version` input is not specified, `.ruby-version` is tried first, followed by `.tool-versions`
|
||||
|
||||
### Bundler
|
||||
|
||||
@@ -102,23 +119,43 @@ You can cache the installed gems with these two steps:
|
||||
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
|
||||
restore-keys: |
|
||||
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
|
||||
- name: Bundle install
|
||||
- name: bundle install
|
||||
run: |
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
```
|
||||
|
||||
When using a single OS, replace `${{ matrix.os }}` with the OS.
|
||||
When using a single job with a Ruby version, replace `${{ matrix.ruby }}` with the Ruby version.
|
||||
When using `.ruby-version`, replace `${{ matrix.ruby }}` with `${{ hashFiles('.ruby-version') }}`.
|
||||
When using `.ruby-version`, replace `${{ matrix.ruby }}` with `${{ hashFiles('.ruby-version') }}`.
|
||||
When using `.tool-versions`, replace `${{ matrix.ruby }}` with `${{ hashFiles('.tool-versions') }}`.
|
||||
|
||||
This uses the [cache action](https://github.com/actions/cache).
|
||||
The code above is a more complete version of the [Ruby - Gem example](https://github.com/actions/cache/blob/master/examples.md#ruby---gem).
|
||||
The code above is a more complete version of the [Ruby - Bundler example](https://github.com/actions/cache/blob/master/examples.md#ruby---bundler).
|
||||
Make sure to include `use-ruby` in the `key` to avoid conflicting with previous caches.
|
||||
|
||||
## Windows
|
||||
|
||||
Note that running CI on Windows can be quite challenging if you are not very familiar with Windows.
|
||||
It is recommended to first get your build working on Ubuntu and macOS before trying Windows.
|
||||
|
||||
* The default shell on Windows is not Bash but [PowerShell](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#using-a-specific-shell).
|
||||
This can lead issues such as multi-line scripts [not working as expected](https://github.com/ruby/setup-ruby/issues/13).
|
||||
* The `PATH` contains [multiple compiler toolchains](https://github.com/ruby/setup-ruby/issues/19). Use `where.exe` to debug which tool is used.
|
||||
* MSYS2 is prepended to the `PATH`, similar to what RubyInstaller2 does.
|
||||
* JRuby on Windows has a known bug that `bundle exec rake` [fails](https://github.com/ruby/setup-ruby/issues/18).
|
||||
|
||||
## Limitations
|
||||
|
||||
* This action currently only works with GitHub-hosted runners, not private runners.
|
||||
|
||||
## Versioning
|
||||
|
||||
This action follows semantic versioning with a moving `v1` branch.
|
||||
This follows the [recommendations](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) of GitHub Actions.
|
||||
|
||||
## Credits
|
||||
|
||||
The current maintainer of this action is @eregon.
|
||||
Most of the Windows logic is from https://github.com/MSP-Greg/actions-ruby by MSP-Greg.
|
||||
Many thanks to MSP-Greg and Lars Kanis for the help with Ruby Installer.
|
||||
|
||||
+3
-2
@@ -1,5 +1,5 @@
|
||||
name: 'Setup Ruby, JRuby and TruffleRuby'
|
||||
description: 'Download a prebuilt Ruby and add it to $PATH in 5 seconds'
|
||||
description: 'Download a prebuilt Ruby and add it to the PATH in 5 seconds'
|
||||
author: 'Benoit Daloze'
|
||||
branding:
|
||||
color: red
|
||||
@@ -7,7 +7,8 @@ branding:
|
||||
inputs:
|
||||
ruby-version:
|
||||
description: 'Engine and version to use, see the syntax in the README. Reads from .ruby-version if unset.'
|
||||
default: '.ruby-version'
|
||||
required: false
|
||||
default: 'default'
|
||||
outputs:
|
||||
ruby-prefix:
|
||||
description: 'The prefix of the installed ruby'
|
||||
|
||||
+302
-3374
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
require 'net/http'
|
||||
require 'yaml'
|
||||
require 'json'
|
||||
|
||||
min_version = '2.2.6'
|
||||
url = 'https://raw.githubusercontent.com/oneclick/rubyinstaller.org-website/master/_data/downloads.yaml'
|
||||
entries = YAML.load(Net::HTTP.get(URI(url)), symbolize_names: true)
|
||||
|
||||
versions = entries.select { |entry|
|
||||
entry[:filetype] == 'rubyinstaller7z' and
|
||||
entry[:name].include?('(x64)')
|
||||
}.group_by { |entry|
|
||||
entry[:name][/Ruby (\d+\.\d+\.\d+)/, 1]
|
||||
}.map { |version, builds|
|
||||
unless builds.sort_by { |build| build[:name] } == builds.reverse
|
||||
raise "not sorted as expected for #{version}"
|
||||
end
|
||||
[version, builds.first]
|
||||
}.sort_by { |version, entry|
|
||||
version
|
||||
}.select { |version, entry|
|
||||
Gem::Version.new(version) >= Gem::Version.new(min_version)
|
||||
}.map { |version, entry|
|
||||
[version, entry[:href]]
|
||||
}.to_h
|
||||
|
||||
versions['head'] = 'https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z'
|
||||
versions['mingw'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z'
|
||||
versions['mswin'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z'
|
||||
|
||||
js = "export const versions = #{JSON.pretty_generate(versions)}\n"
|
||||
File.write 'windows-versions.js', js
|
||||
@@ -1,63 +1,52 @@
|
||||
const os = require('os')
|
||||
const fs = require('fs')
|
||||
const core = require('@actions/core')
|
||||
const io = require('@actions/io')
|
||||
const tc = require('@actions/tool-cache')
|
||||
const axios = require('axios')
|
||||
const windows = require('./windows')
|
||||
|
||||
const releasesURL = 'https://github.com/eregon/ruby-install-builder/releases'
|
||||
const metadataURL = 'https://raw.githubusercontent.com/eregon/ruby-install-builder/metadata'
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const platform = getVirtualEnvironmentName()
|
||||
const ruby = await getRubyEngineAndVersion(core.getInput('ruby-version'))
|
||||
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))
|
||||
|
||||
let rubyPrefix
|
||||
if (platform === 'windows-latest') {
|
||||
rubyPrefix = await windows.downloadExtractAndSetPATH(ruby)
|
||||
let installer
|
||||
if (platform === 'windows-latest' && engine !== 'jruby') {
|
||||
installer = require('./windows')
|
||||
} else {
|
||||
if (ruby.startsWith('jruby')) {
|
||||
// Workaround for https://github.com/actions/virtual-environments/issues/242
|
||||
core.exportVariable('CLASSPATH', '')
|
||||
}
|
||||
rubyPrefix = await downloadAndExtract(platform, ruby)
|
||||
core.addPath(`${rubyPrefix}/bin`)
|
||||
installer = require('./ruby-builder')
|
||||
}
|
||||
|
||||
const engineVersions = installer.getAvailableVersions(platform, engine)
|
||||
const ruby = validateRubyEngineAndVersion(platform, engineVersions, engine, version)
|
||||
|
||||
const rubyPrefix = await installer.install(platform, ruby)
|
||||
core.setOutput('ruby-prefix', rubyPrefix)
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
}
|
||||
}
|
||||
|
||||
async function downloadAndExtract(platform, ruby) {
|
||||
const rubiesDir = `${process.env.HOME}/.rubies`
|
||||
await io.mkdirP(rubiesDir)
|
||||
function parseRubyEngineAndVersion(rubyVersion) {
|
||||
if (rubyVersion === 'default') {
|
||||
if (fs.existsSync('.ruby-version')) {
|
||||
rubyVersion = '.ruby-version'
|
||||
} else if (fs.existsSync('.tool-versions')) {
|
||||
rubyVersion = '.tool-versions'
|
||||
} else {
|
||||
throw new Error('input ruby-version needs to be specified if no .ruby-version or .tool-versions file exists')
|
||||
}
|
||||
}
|
||||
|
||||
const tag = await getLatestReleaseTag()
|
||||
const url = `${releasesURL}/download/${tag}/${ruby}-${platform}.tar.gz`
|
||||
console.log(url)
|
||||
|
||||
const downloadPath = await tc.downloadTool(url)
|
||||
await tc.extractTar(downloadPath, rubiesDir)
|
||||
|
||||
return `${rubiesDir}/${ruby}`
|
||||
}
|
||||
|
||||
async function getLatestReleaseTag() {
|
||||
const response = await axios.get(`${metadataURL}/latest_release.tag`)
|
||||
return response.data.trim()
|
||||
}
|
||||
|
||||
async function getRubyEngineAndVersion(rubyVersion) {
|
||||
if (rubyVersion === '.ruby-version') { // Read from .ruby-version
|
||||
rubyVersion = fs.readFileSync('.ruby-version', 'utf8').trim()
|
||||
console.log(`Using ${rubyVersion} as input from file .ruby-version`)
|
||||
} else if (rubyVersion === '.tool-versions') { // Read from .tool-versions
|
||||
const toolVersions = fs.readFileSync('.tool-versions', 'utf8').trim()
|
||||
const rubyLine = toolVersions.split(/\r?\n/).filter(e => e.match(/^ruby\s/))[0]
|
||||
rubyVersion = rubyLine.split(/\s+/, 2)[1]
|
||||
console.log(`Using ${rubyVersion} as input from file .tool-versions`)
|
||||
}
|
||||
|
||||
let engine, version
|
||||
if (rubyVersion.match(/^\d+/)) { // X.Y.Z => ruby-X.Y.Z
|
||||
if (rubyVersion.match(/^(\d+|head|mingw|mswin)/)) { // X.Y.Z => ruby-X.Y.Z
|
||||
engine = 'ruby'
|
||||
version = rubyVersion
|
||||
} else if (!rubyVersion.includes('-')) { // myruby -> myruby-stableVersion
|
||||
@@ -67,23 +56,23 @@ async function getRubyEngineAndVersion(rubyVersion) {
|
||||
[engine, version] = rubyVersion.split('-', 2)
|
||||
}
|
||||
|
||||
const response = await axios.get(`${metadataURL}/versions.json`)
|
||||
const stableVersions = response.data
|
||||
const engineVersions = stableVersions[engine]
|
||||
return [engine, version]
|
||||
}
|
||||
|
||||
function validateRubyEngineAndVersion(platform, engineVersions, engine, version) {
|
||||
if (!engineVersions) {
|
||||
throw new Error(`Unknown engine ${engine} (input: ${rubyVersion})`)
|
||||
throw new Error(`Unknown engine ${engine} on ${platform}`)
|
||||
}
|
||||
|
||||
if (!engineVersions.includes(version)) {
|
||||
const latestToFirstVersion = engineVersions.slice().reverse()
|
||||
const found = latestToFirstVersion.find(v => v.startsWith(version))
|
||||
const found = latestToFirstVersion.find(v => v !== 'head' && v.startsWith(version))
|
||||
if (found) {
|
||||
version = found
|
||||
} else {
|
||||
throw new Error(`Unknown version ${version} for ${engine}
|
||||
input: ${rubyVersion}
|
||||
available versions for ${engine}: ${engineVersions.join(', ')}
|
||||
File an issue at https://github.com/eregon/ruby-install-builder/issues if would like support for a new version`)
|
||||
throw new Error(`Unknown version ${version} for ${engine} on ${platform}
|
||||
available versions for ${engine} on ${platform}: ${engineVersions.join(', ')}
|
||||
File an issue at https://github.com/ruby/setup-ruby/issues if would like support for a new version`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,11 +81,11 @@ async function getRubyEngineAndVersion(rubyVersion) {
|
||||
|
||||
function getVirtualEnvironmentName() {
|
||||
const platform = os.platform()
|
||||
if (platform == 'linux') {
|
||||
if (platform === 'linux') {
|
||||
return `ubuntu-${findUbuntuVersion()}`
|
||||
} else if (platform == 'darwin') {
|
||||
} else if (platform === 'darwin') {
|
||||
return 'macos-latest'
|
||||
} else if (platform == 'win32') {
|
||||
} else if (platform === 'win32') {
|
||||
return 'windows-latest'
|
||||
} else {
|
||||
throw new Error(`Unknown platform ${platform}`)
|
||||
|
||||
+7
-7
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "use-ruby-action",
|
||||
"name": "setup-ruby",
|
||||
"version": "0.1.0",
|
||||
"description": "Download a prebuilt ruby and add it to $PATH",
|
||||
"description": "Download a prebuilt Ruby and add it to the PATH in 5 seconds",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint *.js",
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/eregon/use-ruby-action.git"
|
||||
"url": "git+https://github.com/ruby/setup-ruby.git"
|
||||
},
|
||||
"keywords": [
|
||||
"GitHub",
|
||||
@@ -19,14 +19,14 @@
|
||||
"author": "Benoit Daloze",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/eregon/use-ruby-action/issues"
|
||||
"url": "https://github.com/ruby/setup-ruby/issues"
|
||||
},
|
||||
"homepage": "https://github.com/eregon/use-ruby-action",
|
||||
"homepage": "https://github.com/ruby/setup-ruby",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.1.1",
|
||||
"@actions/exec": "^1.0.1",
|
||||
"@actions/io": "^1.0.1",
|
||||
"@actions/tool-cache": "^1.1.2",
|
||||
"axios": "^0.19.0"
|
||||
"@actions/tool-cache": "^1.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@zeit/ncc": "^0.20.5",
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
export function getVersions(platform) {
|
||||
const versions = {
|
||||
"ruby": [
|
||||
"2.2.10",
|
||||
"2.3.0", "2.3.1", "2.3.2", "2.3.3", "2.3.4", "2.3.5", "2.3.6", "2.3.7", "2.3.8",
|
||||
"2.4.0", "2.4.1", "2.4.2", "2.4.3", "2.4.4", "2.4.5", "2.4.6", "2.4.7", "2.4.9",
|
||||
"2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7",
|
||||
"2.6.0", "2.6.1", "2.6.2", "2.6.3", "2.6.4", "2.6.5",
|
||||
"2.7.0",
|
||||
"head"
|
||||
],
|
||||
"jruby": [
|
||||
"9.2.9.0", "9.2.10.0",
|
||||
"head"
|
||||
],
|
||||
"truffleruby": [
|
||||
"19.3.0", "19.3.1",
|
||||
"20.0.0",
|
||||
"head"
|
||||
]
|
||||
}
|
||||
|
||||
if (platform === 'ubuntu-18.04') {
|
||||
versions['rubinius'] = [
|
||||
"4.14"
|
||||
]
|
||||
}
|
||||
|
||||
return versions
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
const os = require('os')
|
||||
const path = require('path')
|
||||
const core = require('@actions/core')
|
||||
const io = require('@actions/io')
|
||||
const tc = require('@actions/tool-cache')
|
||||
const rubyBuilderVersions = require('./ruby-builder-versions')
|
||||
|
||||
const builderReleaseTag = 'builds-no-warn'
|
||||
const releasesURL = 'https://github.com/ruby/ruby-builder/releases'
|
||||
|
||||
export function getAvailableVersions(platform, engine) {
|
||||
return rubyBuilderVersions.getVersions(platform)[engine]
|
||||
}
|
||||
|
||||
export async function install(platform, ruby) {
|
||||
const rubyPrefix = await downloadAndExtract(platform, ruby)
|
||||
|
||||
if (platform === 'windows-latest') {
|
||||
require('./windows').setupPath(undefined, rubyPrefix)
|
||||
} else {
|
||||
core.addPath(path.join(rubyPrefix, 'bin'))
|
||||
if (ruby.startsWith('rubinius')) {
|
||||
core.addPath(path.join(rubyPrefix, 'gems', 'bin'))
|
||||
}
|
||||
}
|
||||
|
||||
return rubyPrefix
|
||||
}
|
||||
|
||||
async function downloadAndExtract(platform, ruby) {
|
||||
const rubiesDir = path.join(os.homedir(), '.rubies')
|
||||
await io.mkdirP(rubiesDir)
|
||||
|
||||
const url = await getDownloadURL(platform, ruby)
|
||||
console.log(url)
|
||||
|
||||
const downloadPath = await tc.downloadTool(url)
|
||||
await tc.extractTar(downloadPath, rubiesDir)
|
||||
|
||||
return path.join(rubiesDir, ruby)
|
||||
}
|
||||
|
||||
function getDownloadURL(platform, ruby) {
|
||||
if (ruby.endsWith('-head')) {
|
||||
return getLatestHeadBuildURL(platform, ruby)
|
||||
} else {
|
||||
return `${releasesURL}/download/${builderReleaseTag}/${ruby}-${platform}.tar.gz`
|
||||
}
|
||||
}
|
||||
|
||||
function getLatestHeadBuildURL(platform, ruby) {
|
||||
const engine = ruby.split('-')[0]
|
||||
return `https://github.com/ruby/${engine}-dev-builder/releases/latest/download/${engine}-head-${platform}.tar.gz`
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
require 'rbconfig'
|
||||
require 'stringio'
|
||||
|
||||
puts "CPPFLAGS: #{RbConfig::CONFIG["CPPFLAGS"]}"
|
||||
|
||||
$stderr = StringIO.new
|
||||
begin
|
||||
system RbConfig.ruby, "-e", "p :OK"
|
||||
out = $stderr.string
|
||||
ensure
|
||||
$stderr = STDERR
|
||||
end
|
||||
abort out unless out.empty?
|
||||
@@ -0,0 +1,30 @@
|
||||
export const versions = {
|
||||
"2.2.6": "https://dl.bintray.com/oneclick/rubyinstaller/ruby-2.2.6-x64-mingw32.7z",
|
||||
"2.3.0": "https://dl.bintray.com/oneclick/rubyinstaller/ruby-2.3.0-x64-mingw32.7z",
|
||||
"2.3.1": "https://dl.bintray.com/oneclick/rubyinstaller/ruby-2.3.1-x64-mingw32.7z",
|
||||
"2.3.3": "https://dl.bintray.com/oneclick/rubyinstaller/ruby-2.3.3-x64-mingw32.7z",
|
||||
"2.4.1": "https://github.com/oneclick/rubyinstaller2/releases/download/2.4.1-2/rubyinstaller-2.4.1-2-x64.7z",
|
||||
"2.4.2": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.2-2/rubyinstaller-2.4.2-2-x64.7z",
|
||||
"2.4.3": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.3-2/rubyinstaller-2.4.3-2-x64.7z",
|
||||
"2.4.4": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.4-2/rubyinstaller-2.4.4-2-x64.7z",
|
||||
"2.4.5": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.5-1/rubyinstaller-2.4.5-1-x64.7z",
|
||||
"2.4.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.6-1/rubyinstaller-2.4.6-1-x64.7z",
|
||||
"2.4.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.7-1/rubyinstaller-2.4.7-1-x64.7z",
|
||||
"2.4.9": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.4.9-1/rubyinstaller-2.4.9-1-x64.7z",
|
||||
"2.5.0": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.0-2/rubyinstaller-2.5.0-2-x64.7z",
|
||||
"2.5.1": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.1-2/rubyinstaller-2.5.1-2-x64.7z",
|
||||
"2.5.3": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.3-1/rubyinstaller-2.5.3-1-x64.7z",
|
||||
"2.5.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.5-1/rubyinstaller-2.5.5-1-x64.7z",
|
||||
"2.5.6": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.6-1/rubyinstaller-2.5.6-1-x64.7z",
|
||||
"2.5.7": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.7-1/rubyinstaller-2.5.7-1-x64.7z",
|
||||
"2.6.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.0-1/rubyinstaller-2.6.0-1-x64.7z",
|
||||
"2.6.1": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.1-1/rubyinstaller-2.6.1-1-x64.7z",
|
||||
"2.6.2": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.2-1/rubyinstaller-2.6.2-1-x64.7z",
|
||||
"2.6.3": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.3-1/rubyinstaller-2.6.3-1-x64.7z",
|
||||
"2.6.4": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.4-1/rubyinstaller-2.6.4-1-x64.7z",
|
||||
"2.6.5": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.6.5-1/rubyinstaller-2.6.5-1-x64.7z",
|
||||
"2.7.0": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.0-1/rubyinstaller-2.7.0-1-x64.7z",
|
||||
"head": "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-head-x64.7z",
|
||||
"mingw": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mingw.7z",
|
||||
"mswin": "https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z"
|
||||
}
|
||||
+69
-26
@@ -5,27 +5,41 @@ const fs = require('fs')
|
||||
const core = require('@actions/core')
|
||||
const exec = require('@actions/exec')
|
||||
const tc = require('@actions/tool-cache')
|
||||
const rubyInstallerVersions = require('./windows-versions').versions
|
||||
|
||||
const releasesURL = 'https://github.com/oneclick/rubyinstaller2/releases'
|
||||
|
||||
export async function downloadExtractAndSetPATH(ruby) {
|
||||
const version = ruby.split('-', 2)[1]
|
||||
if (!ruby.startsWith('ruby-') || version.startsWith('2.3')) {
|
||||
throw new Error(`Only ruby >= 2.4 is supported on Windows currently (input: ${ruby})`)
|
||||
export function getAvailableVersions(platform, engine) {
|
||||
if (engine === 'ruby') {
|
||||
return Object.keys(rubyInstallerVersions)
|
||||
} else {
|
||||
return undefined
|
||||
}
|
||||
const tag = `RubyInstaller-${version}-1`
|
||||
const base = `${tag.toLowerCase()}-x64`
|
||||
}
|
||||
|
||||
const url = `${releasesURL}/download/${tag}/${base}.7z`
|
||||
export async function install(platform, ruby) {
|
||||
const version = ruby.split('-', 2)[1]
|
||||
const url = rubyInstallerVersions[version]
|
||||
console.log(url)
|
||||
|
||||
const downloadPath = await tc.downloadTool(url)
|
||||
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -oC:\\`)
|
||||
const rubyPrefix = `C:\\${base}`
|
||||
if (!url.endsWith('.7z')) {
|
||||
throw new Error('URL should end in .7z')
|
||||
}
|
||||
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
|
||||
|
||||
const msys2 = await linkMSYS2()
|
||||
const newPath = setupPath(msys2, rubyPrefix)
|
||||
core.exportVariable('PATH', newPath)
|
||||
// Extract to SSD, see https://github.com/ruby/setup-ruby/pull/14
|
||||
const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
|
||||
|
||||
const downloadPath = await tc.downloadTool(url)
|
||||
await exec.exec('7z', ['x', downloadPath, `-xr!${base}\\share\\doc`, `-o${drive}:\\`], { silent: true })
|
||||
const rubyPrefix = `${drive}:\\${base}`
|
||||
|
||||
const [hostedRuby, msys2] = await linkMSYS2()
|
||||
setupPath((ruby === 'ruby-mswin' ? null : msys2), rubyPrefix)
|
||||
|
||||
if (version.startsWith('2.2') || version.startsWith('2.3')) {
|
||||
core.exportVariable('SSL_CERT_FILE', `${hostedRuby}\\ssl\\cert.pem`)
|
||||
} else if (version === 'mswin') {
|
||||
setupMSWin(hostedRuby)
|
||||
}
|
||||
|
||||
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`)
|
||||
@@ -34,10 +48,29 @@ export async function downloadExtractAndSetPATH(ruby) {
|
||||
return rubyPrefix
|
||||
}
|
||||
|
||||
function setupMSWin(hostedRuby) {
|
||||
// All standard MSVC OpenSSL builds use C:\Program Files\Common Files\SSL
|
||||
const certsDir = 'C:\\Program Files\\Common Files\\SSL\\certs'
|
||||
if (!fs.existsSync(certsDir)) {
|
||||
fs.mkdirSync(certsDir)
|
||||
}
|
||||
|
||||
// Copy cert.pem from hosted Ruby
|
||||
const cert = 'C:\\Program Files\\Common Files\\SSL\\cert.pem'
|
||||
if (!fs.existsSync(cert)) {
|
||||
const hostedCert = `${hostedRuby}\\ssl\\cert.pem`
|
||||
fs.copyFileSync(hostedCert, cert)
|
||||
}
|
||||
|
||||
// Add a convenience VCVARS environment variable to ease setting up MSVC
|
||||
// This assumes a single Visual Studio version being available in the windows-latest image
|
||||
core.exportVariable('VCVARS', '"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"')
|
||||
}
|
||||
|
||||
async function linkMSYS2() {
|
||||
const toolCacheVersions = tc.findAllVersions('Ruby')
|
||||
toolCacheVersions.sort()
|
||||
if (toolCacheVersions.length == 0) {
|
||||
if (toolCacheVersions.length === 0) {
|
||||
throw new Error('Could not find MSYS2 in the toolcache')
|
||||
}
|
||||
const latestVersion = toolCacheVersions.slice(-1)[0]
|
||||
@@ -45,24 +78,34 @@ async function linkMSYS2() {
|
||||
|
||||
const hostedMSYS2 = `${latestHostedRuby}\\msys64`
|
||||
const msys2 = 'C:\\msys64'
|
||||
await exec.exec(`cmd /c mklink /D ${msys2} ${hostedMSYS2}`)
|
||||
return msys2
|
||||
if (!fs.existsSync(msys2)) {
|
||||
await exec.exec(`cmd /c mklink /D ${msys2} ${hostedMSYS2}`)
|
||||
}
|
||||
return [latestHostedRuby, msys2]
|
||||
}
|
||||
|
||||
function setupPath(msys2, rubyPrefix) {
|
||||
let path = process.env['PATH'].split(';')
|
||||
|
||||
// Remove conflicting dev tools from PATH
|
||||
path = path.filter(e => !e.match(/\b(Chocolatey|CMake|mingw64|OpenSSL|Strawberry)\b/))
|
||||
export function setupPath(msys2, rubyPrefix) {
|
||||
const originalPath = process.env['PATH'].split(';')
|
||||
let path = originalPath.slice()
|
||||
|
||||
// Remove default Ruby in PATH
|
||||
path = path.filter(e => !e.match(/\bRuby\b/))
|
||||
|
||||
// Add MSYS2 in PATH
|
||||
path.unshift(`${msys2}\\mingw64\\bin`, `${msys2}\\usr\\bin`)
|
||||
if (msys2) {
|
||||
// Add MSYS2 in PATH
|
||||
path.unshift(`${msys2}\\mingw64\\bin`, `${msys2}\\usr\\bin`)
|
||||
}
|
||||
|
||||
// Add the downloaded Ruby in PATH
|
||||
path.unshift(`${rubyPrefix}\\bin`)
|
||||
|
||||
return path.join(';')
|
||||
console.log("Entries removed from PATH to avoid conflicts with Ruby:")
|
||||
for (const entry of originalPath) {
|
||||
if (!path.includes(entry)) {
|
||||
console.log(entry)
|
||||
}
|
||||
}
|
||||
|
||||
const newPath = path.join(';')
|
||||
core.exportVariable('PATH', newPath)
|
||||
}
|
||||
|
||||
@@ -108,14 +108,6 @@ astral-regex@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
|
||||
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==
|
||||
|
||||
axios@^0.19.0:
|
||||
version "0.19.0"
|
||||
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.0.tgz#8e09bff3d9122e133f7b8101c8fbdd00ed3d2ab8"
|
||||
integrity sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==
|
||||
dependencies:
|
||||
follow-redirects "1.5.10"
|
||||
is-buffer "^2.0.2"
|
||||
|
||||
balanced-match@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
||||
@@ -188,13 +180,6 @@ cross-spawn@^6.0.5:
|
||||
shebang-command "^1.2.0"
|
||||
which "^1.2.9"
|
||||
|
||||
debug@=3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
|
||||
integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==
|
||||
dependencies:
|
||||
ms "2.0.0"
|
||||
|
||||
debug@^4.0.1:
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
|
||||
@@ -382,13 +367,6 @@ flatted@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"
|
||||
integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==
|
||||
|
||||
follow-redirects@1.5.10:
|
||||
version "1.5.10"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a"
|
||||
integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==
|
||||
dependencies:
|
||||
debug "=3.1.0"
|
||||
|
||||
fs.realpath@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
|
||||
@@ -487,11 +465,6 @@ inquirer@^7.0.0:
|
||||
strip-ansi "^5.1.0"
|
||||
through "^2.3.6"
|
||||
|
||||
is-buffer@^2.0.2:
|
||||
version "2.0.4"
|
||||
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.4.tgz#3e572f23c8411a5cfd9557c849e3665e0b290623"
|
||||
integrity sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==
|
||||
|
||||
is-extglob@^2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
|
||||
@@ -584,11 +557,6 @@ mkdirp@^0.5.1:
|
||||
dependencies:
|
||||
minimist "0.0.8"
|
||||
|
||||
ms@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
||||
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
|
||||
|
||||
ms@^2.1.1:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
|
||||
|
||||
Reference in New Issue
Block a user