Skip to content

Commit

Permalink
fix(snap): work around dart pub get crash (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenvandine authored Sep 19, 2023
1 parent 7832bf3 commit b647a76
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 @@ -38,7 +38,10 @@ parts:
# when building locally artifacts can pollute the container and cause builds to fail
# this helps increase reliability for local builds
flutter clean
flutter pub get
# work around pub get stack overflow # https://github.com/dart-lang/sdk/issues/51068#issuecomment-1396588253
set +e
dart pub get
set -eux
flutter build linux --release -v
mkdir -p $CRAFT_PART_INSTALL/bin/
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
Expand Down

0 comments on commit b647a76

Please sign in to comment.