Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

fix: move Homebrew formula to Formula/ for tap discovery

Tanner Kocher15f74cd61496
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8d2bffbf..46b17e03 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -212,15 +212,15 @@ jobs:
TARBALL_URL="https://github.com/${{ github.repository }}/archive/refs/tags/v${VERSION}.tar.gz"
SHA256=$(curl -sL "$TARBALL_URL" | shasum -a 256 | cut -d' ' -f1)
- sed -i "s|url \".*\"|url \"${TARBALL_URL}\"|" homebrew/ix.rb
- sed -i "s|# sha256 .*|sha256 \"${SHA256}\"|; s|sha256 \".*\"|sha256 \"${SHA256}\"|" homebrew/ix.rb
+ sed -i "s|url \".*\"|url \"${TARBALL_URL}\"|" Formula/ix.rb
+ sed -i "s|# sha256 .*|sha256 \"${SHA256}\"|; s|sha256 \".*\"|sha256 \"${SHA256}\"|" Formula/ix.rb
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
BRANCH="chore/brew-update-v${VERSION}"
git checkout -b "$BRANCH"
- git add homebrew/ix.rb
+ git add Formula/ix.rb
git commit -m "brew: update formula for v${VERSION}" || exit 0
git push --force-with-lease origin "$BRANCH"
gh pr create --title "brew: update formula for v${VERSION}" --body "Auto-generated: updates Homebrew formula SHA for v${VERSION}" --base main || true
diff --git a/homebrew/ix.rb b/Formula/ix.rb
similarity index 100%
rename from homebrew/ix.rb
rename to Formula/ix.rb
diff --git a/scripts/release.sh b/scripts/release.sh
index e4163de1..ee5481db 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -80,17 +80,17 @@ TARBALL_URL="https://github.com/ix-infrastructure/Ix/archive/refs/tags/${TAG}.ta
SHA256=$(curl -sL "$TARBALL_URL" | shasum -a 256 | cut -d' ' -f1)
echo "Updating Homebrew formula..."
-sed -i '' "s|url \".*\"|url \"${TARBALL_URL}\"|" "$IX_DIR/homebrew/ix.rb"
-sed -i '' "s|# sha256 .*|sha256 \"${SHA256}\"|" "$IX_DIR/homebrew/ix.rb"
+sed -i '' "s|url \".*\"|url \"${TARBALL_URL}\"|" "$IX_DIR/Formula/ix.rb"
+sed -i '' "s|# sha256 .*|sha256 \"${SHA256}\"|" "$IX_DIR/Formula/ix.rb"
echo ""
echo "[ok] Release $TAG created"
echo " Tarball: $TARBALL_URL"
echo " SHA256: $SHA256"
echo ""
-echo "Formula updated at: homebrew/ix.rb"
+echo "Formula updated at: Formula/ix.rb"
echo ""
echo "To publish the tap, push the updated formula:"
-echo " git add homebrew/ix.rb"
+echo " git add Formula/ix.rb"
echo " git commit -m \"brew: update formula for $TAG\""
echo " git push origin main"