Skip to content

Commit 8aab666

Browse files
Dumbrisclaude
andcommitted
fix: correct YAML heredoc indentation in release workflow
The heredoc content for Homebrew formula generation had no indentation, which broke YAML parsing (literal block scalars require consistent indentation). Fixed by indenting the heredoc content to match YAML block level, then using sed to strip the indentation from the output. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 028e799 commit 8aab666

1 file changed

Lines changed: 39 additions & 36 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,42 +1150,45 @@ jobs:
11501150
mkdir -p Formula
11511151
11521152
cat > Formula/mcpproxy.rb << 'FORMULA_EOF'
1153-
class Mcpproxy < Formula
1154-
desc "Smart MCP Proxy - Intelligent tool discovery and proxying for MCP servers"
1155-
homepage "https://github.com/smart-mcp-proxy/mcpproxy-go"
1156-
version "${VERSION}"
1157-
license "MIT"
1158-
1159-
on_macos do
1160-
if Hardware::CPU.arm?
1161-
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-darwin-arm64.tar.gz"
1162-
sha256 "${SHA256_DARWIN_ARM64}"
1163-
else
1164-
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-darwin-amd64.tar.gz"
1165-
sha256 "${SHA256_DARWIN_AMD64}"
1166-
end
1167-
end
1168-
1169-
on_linux do
1170-
if Hardware::CPU.arm?
1171-
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-linux-arm64.tar.gz"
1172-
sha256 "${SHA256_LINUX_ARM64}"
1173-
else
1174-
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-linux-amd64.tar.gz"
1175-
sha256 "${SHA256_LINUX_AMD64}"
1176-
end
1177-
end
1178-
1179-
def install
1180-
bin.install "mcpproxy"
1181-
bin.install "mcpproxy-tray" if OS.mac? && File.exist?("mcpproxy-tray")
1182-
end
1183-
1184-
test do
1185-
assert_match version.to_s, shell_output("#{bin}/mcpproxy --version")
1186-
end
1187-
end
1188-
FORMULA_EOF
1153+
class Mcpproxy < Formula
1154+
desc "Smart MCP Proxy - Intelligent tool discovery and proxying for MCP servers"
1155+
homepage "https://github.com/smart-mcp-proxy/mcpproxy-go"
1156+
version "${VERSION}"
1157+
license "MIT"
1158+
1159+
on_macos do
1160+
if Hardware::CPU.arm?
1161+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-darwin-arm64.tar.gz"
1162+
sha256 "${SHA256_DARWIN_ARM64}"
1163+
else
1164+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-darwin-amd64.tar.gz"
1165+
sha256 "${SHA256_DARWIN_AMD64}"
1166+
end
1167+
end
1168+
1169+
on_linux do
1170+
if Hardware::CPU.arm?
1171+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-linux-arm64.tar.gz"
1172+
sha256 "${SHA256_LINUX_ARM64}"
1173+
else
1174+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v${VERSION}/mcpproxy-${VERSION}-linux-amd64.tar.gz"
1175+
sha256 "${SHA256_LINUX_AMD64}"
1176+
end
1177+
end
1178+
1179+
def install
1180+
bin.install "mcpproxy"
1181+
bin.install "mcpproxy-tray" if OS.mac? && File.exist?("mcpproxy-tray")
1182+
end
1183+
1184+
test do
1185+
assert_match version.to_s, shell_output("#{bin}/mcpproxy --version")
1186+
end
1187+
end
1188+
FORMULA_EOF
1189+
1190+
# Remove the 10-space YAML indentation from the formula
1191+
sed -i 's/^ //' Formula/mcpproxy.rb
11891192
11901193
# Substitute environment variables
11911194
sed -i "s/\${VERSION}/${VERSION}/g" Formula/mcpproxy.rb

0 commit comments

Comments
 (0)