fix(cargo)

`echo` assumes the `[features]` block is last (which is is no longer. replace with sed.

closes #5151
This commit is contained in:
Jacob Heider 2024-02-08 13:59:53 -05:00 committed by Jacob Heider
parent 806156bb02
commit f7260902f1

View file

@ -37,7 +37,10 @@ build:
script: script:
# otherwise we are not ABI compatible and new macOS versions may break # otherwise we are not ABI compatible and new macOS versions may break
# this happened with Sonoma # this happened with Sonoma
- echo "default = ['curl/force-system-lib-on-osx']" >> Cargo.toml - |
sed -i "/^\[features\]\$/a\
default = ['curl/force-system-lib-on-osx']" \
Cargo.toml
- cargo install - cargo install
--verbose --verbose
--root={{ prefix }} --root={{ prefix }}