mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+volta.sh (#5586)
* new file: projects/volta.sh/package.yml * +curl.se/ca-certs
This commit is contained in:
parent
fe1e0c7539
commit
dceb3a5dcd
1 changed files with 34 additions and 0 deletions
34
projects/volta.sh/package.yml
Normal file
34
projects/volta.sh/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/volta-cli/volta/archive/refs/tags/{{version.tag}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: volta-cli/volta
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
linux:
|
||||||
|
curl.se/ca-certs: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
rust-lang.org: ^1.75
|
||||||
|
rust-lang.org/cargo: '*'
|
||||||
|
script:
|
||||||
|
- cargo install $ARGS
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
# no --locked flag because it was failing on proc_macro_span_shrink
|
||||||
|
- --root={{prefix}}
|
||||||
|
- --path=.
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/volta
|
||||||
|
- bin/volta-shim
|
||||||
|
- bin/volta-migrate
|
||||||
|
|
||||||
|
test:
|
||||||
|
- volta --version | grep {{version}}
|
||||||
|
- volta install node@19.0.1
|
||||||
|
- volta which node | grep $HOME/.volta/tools/image/node/19.0.1/bin/node
|
||||||
|
- echo 'console.log("Hello World!");' > test.js
|
||||||
|
- volta run node test.js | grep 'Hello World!'
|
Loading…
Reference in a new issue