build(go): remove GOOS and GOARCH suffixes from binaries - #153
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughBuild and release GitHub Actions workflows now use fixed binary names instead of OS/arch-suffixed filenames. The build workflow writes and uploads ChangesBinary naming and packaging update
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant BuildGo as build-go.yml
participant Artifacts as Uploaded Artifacts
participant ReleaseGo as release-go.yml
participant Archives as Archive Files
BuildGo->>BuildGo: Build terragrunt-ls binary
BuildGo->>Artifacts: Upload terragrunt-ls under platform name
ReleaseGo->>Artifacts: Download artifacts to bin/terragrunt-ls_*/
ReleaseGo->>ReleaseGo: Select terragrunt-ls or terragrunt-ls.exe per platform
ReleaseGo->>Archives: Create terragrunt-ls_platform.zip / .tar.gz
ReleaseGo->>ReleaseGo: Verify expected archive names
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/release-go.yml (1)
86-101: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueWindows gets an unnecessary
.tar.gztoo.The loop builds both
.zipand.tar.gzfor every platform, includingwindows. Tarballs for Windows binaries aren't typical (mason/nvim-lspconfig conventions usually pair.zipwith Windows and.tar.gzwith Unix), so this just doubles upload/verify work for an artifact nobody will use. Not a bug, but worth trimming to match the platform-naming conventions this PR is aiming for.♻️ Optional: skip tar.gz for windows
for platform_dir in bin/terragrunt-ls_*/; do platform=$(basename "$platform_dir") if [[ "$platform" == *windows* ]]; then binary="terragrunt-ls.exe" + (cd "$platform_dir" && zip "../${platform}.zip" "$binary") else binary="terragrunt-ls" chmod +x "${platform_dir}${binary}" + (cd "$platform_dir" && zip "../${platform}.zip" "$binary") + (cd "$platform_dir" && tar -czf "../${platform}.tar.gz" "$binary") fi - - (cd "$platform_dir" && zip "../${platform}.zip" "$binary") - (cd "$platform_dir" && tar -czf "../${platform}.tar.gz" "$binary") echo "Created archives for $platform" doneRemember to also drop the corresponding
windows_*tar.gz entries from the expected-assets list below (Line 144) if you go this route.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/release-go.yml around lines 86 - 101, Skip creating the .tar.gz archive for Windows in the Create archives step so the release artifacts match the expected platform conventions. Update the loop in the archive-building script to only run the tar command for non-windows platforms while still producing the .zip for Windows, and remove the corresponding windows_* .tar.gz entries from the expected-assets list so verification stays aligned.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/release-go.yml:
- Around line 86-101: Skip creating the .tar.gz archive for Windows in the
Create archives step so the release artifacts match the expected platform
conventions. Update the loop in the archive-building script to only run the tar
command for non-windows platforms while still producing the .zip for Windows,
and remove the corresponding windows_* .tar.gz entries from the expected-assets
list so verification stays aligned.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 139f57bc-3fab-4e7f-90c9-34874c5190dc
📒 Files selected for processing (2)
.github/workflows/build-go.yml.github/workflows/release-go.yml
closes #152
Summary by CodeRabbit