From 863f065527797d87442b90f9ebbfaa2f1af6257c Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Thu, 5 Dec 2024 09:19:07 -0800 Subject: [PATCH] Workaround to ensure cloud plugin 0.10 can be installed on upgrades Signed-off-by: Kate Goldenring --- Formula/spin.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/spin.rb b/Formula/spin.rb index 35c0b60..ead5645 100644 --- a/Formula/spin.rb +++ b/Formula/spin.rb @@ -35,6 +35,8 @@ def post_install system "#{bin}/spin", "templates", "install", "--git", "https://github.com/fermyon/spin-js-sdk", "--upgrade" system "#{bin}/spin", "plugins", "update" system "#{bin}/spin", "plugins", "install", "js2wasm", "--yes" + # Work around a bug where cloud plugin 0.10 registers as a downgrade from 0.9. Remove this after Spin 3.1 + system "#{bin}/spin", "plugins", "uninstall", "cloud" system "#{bin}/spin", "plugins", "install", "cloud", "--yes" end