mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
fix(rustup)
linking to libcurl on sonoma is fraught; use `reqwest` instead.
This commit is contained in:
parent
62c94c9b20
commit
88e92d4738
1 changed files with 12 additions and 7 deletions
|
@ -6,23 +6,28 @@ versions:
|
||||||
github: rust-lang/rustup/tags
|
github: rust-lang/rustup/tags
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
curl.se: '*'
|
linux:
|
||||||
|
curl.se: '*'
|
||||||
openssl.org: ^1
|
openssl.org: ^1
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
rust-lang.org/cargo: '*'
|
rust-lang.org/cargo: '*'
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
script: |
|
script:
|
||||||
cargo run --release -- -y
|
# rust/curl has issues with linking to Apple's libcurl; this manifests in
|
||||||
mkdir -p "{{ prefix }}"/bin
|
# Sonoma every time. Fortunately, rustup will use `reqwest` as a backend.
|
||||||
mv ~/.cargo/bin/rustup "{{ prefix }}"/bin
|
- run: sed -i -e 's/^ "curl-backend",$/ \# "curl-backend",/' Cargo.toml
|
||||||
|
if: darwin
|
||||||
|
- cargo install --locked --path . --root {{prefix}}
|
||||||
|
- run: ln -s rustup-init rustup
|
||||||
|
working-directory: ${{prefix}}/bin
|
||||||
env:
|
env:
|
||||||
RUSTUP_INIT_SKIP_PATH_CHECK: yes
|
RUSTUP_INIT_SKIP_PATH_CHECK: yes
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/rustup
|
- bin/rustup
|
||||||
|
- bin/rustup-init
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script: rustup --version
|
||||||
rustup --version
|
|
||||||
|
|
Loading…
Reference in a new issue