Skip to content

Commit

Permalink
Fix snap builds (#7254)
Browse files Browse the repository at this point in the history
Cherry-pick 00e96ed
  • Loading branch information
damonbarry authored Mar 28, 2024
1 parent 335e6b6 commit d8c63f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ parts:
plugin: nil
build-packages:
- curl
- sed
build-environment:
- PATH: "$PATH:$HOME/.cargo/bin"
override-build: |
mkdir -p $HOME/.cargo/bin
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --profile minimal -y
CHANNEL=$(sed -n '/^channel *=* */{s///;s/^"//;s/"$//;p;}' $CRAFT_PROJECT_DIR/rust-toolchain.toml)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- --no-modify-path --profile minimal -y --default-toolchain $CHANNEL
cd $CRAFT_PROJECT_DIR/edgelet
rustup update
edgelet:
Expand Down

0 comments on commit d8c63f0

Please sign in to comment.