Skip to content

Update lunar CLI version in attach action - #4

Closed
brandonSc wants to merge 1 commit into
mainfrom
brandon/update-lunar-version
Closed

Update lunar CLI version in attach action#4
brandonSc wants to merge 1 commit into
mainfrom
brandon/update-lunar-version

Conversation

@brandonSc

@brandonSc brandonSc commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update lunar CLI version: v1.0.0 -> v1.1.1 (was very stale)

This fix was generated by AI.

Summary by CodeRabbit

  • Chores
    • Updated the Lunar Linux binary version referenced in the GitHub Actions workflow.

@coderabbitai

coderabbitai Bot commented Mar 26, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The GitHub Actions composite action was updated to download the Lunar Linux AMD64 binary from the v1.1.1 release instead of v1.0.0, with only the download URL modified in the "Download Lunar binary" step.

Changes

Cohort / File(s) Summary
Lunar Binary Version Update
attach/action.yml
Updated Lunar Linux AMD64 binary download URL from v1.0.0 to v1.1.1 release.

Suggested reviewers

  • idelvall
  • vladaionescu
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Update lunar CLI version in attach action' accurately describes the main change: upgrading the Lunar Linux binary from v1.0.0 to v1.1.1 in the attach GitHub Action.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch brandon/update-lunar-version

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
attach/action.yml (1)

7-57: 🛠️ Refactor suggestion | 🟠 Major

Consider adding a lunar-version input parameter for consistency and flexibility.

The sync-manifest action accepts a lunar-version input parameter (as shown in sync-manifest/action.yml:11-14), allowing users to specify which version to download. The attach action hardcodes v1.1.1, creating an inconsistency.

This approach has several drawbacks:

  • Version mismatch when both actions are used in the same workflow
  • Requires code changes for version updates instead of workflow configuration changes
  • Prevents users from testing or pinning specific versions
🔧 Proposed refactor to add version parameter

Add a lunar-version input to match the sync-manifest action:

 inputs:
   github-token:
     description: >
       The GitHub token used to make authenticated API requests. Requires permissions to:
       1) Clone manifest repo
       2) ...
     default: ${{ github.token }}
     required: true
+  lunar-version:
+    description: >
+      Lunar version (vx.y.z), as one of the tags available at https://github.com/earthly/lunar-dist/tags
+    default: v1.1.1
+    required: false
   manifest-url:
     description: >
       Lunar manifest repo URL, in the form of: github://<org>/<repo>@<branch>
     required: true

Then update the download URL to use the parameter:

       run: |
         echo "pid $$ ppid $PPID"
         mkdir -p /tmp/lunar/bin
-        curl -L https://github.com/earthly/lunar-dist/releases/download/v1.1.1/lunar-linux-amd64 -o /tmp/lunar/bin/lunar
+        curl -L https://github.com/earthly/lunar-dist/releases/download/${{ inputs.lunar-version }}/lunar-linux-amd64 -o /tmp/lunar/bin/lunar
         chmod +x /tmp/lunar/bin/lunar;
-        echo "lunar downloaded to /tmp/lunar/bin/lunar";
+        echo "Lunar ${{ inputs.lunar-version }} installed"
       shell: bash
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@attach/action.yml` around lines 7 - 57, Add a new input named lunar-version
to the action inputs (matching the one in sync-manifest) and use that input in
the "Download Lunar binary" step instead of the hardcoded v1.1.1; specifically,
add the lunar-version input to the inputs block (with an appropriate default)
and replace the hardcoded release tag in the curl download URL inside the
"Download Lunar binary" run step to reference ${{ inputs.lunar-version }} so
workflows can configure which Lunar release to download.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@attach/action.yml`:
- Line 57: The curl invocation that downloads lunar uses a non-existent tag
"v1.1.1"; update the URL in the shell line (the curl -L ... -o
/tmp/lunar/bin/lunar command) to reference an actual release tag such as
"v1.0.11" (or another valid tag from earthly/lunar-dist) so the download
succeeds; locate the curl command in attach/action.yml and replace the version
segment "/releases/download/v1.1.1/" with the correct
"/releases/download/v1.0.11/".

---

Outside diff comments:
In `@attach/action.yml`:
- Around line 7-57: Add a new input named lunar-version to the action inputs
(matching the one in sync-manifest) and use that input in the "Download Lunar
binary" step instead of the hardcoded v1.1.1; specifically, add the
lunar-version input to the inputs block (with an appropriate default) and
replace the hardcoded release tag in the curl download URL inside the "Download
Lunar binary" run step to reference ${{ inputs.lunar-version }} so workflows can
configure which Lunar release to download.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 355a99b2-45d1-4416-a9eb-9abbea49722e

📥 Commits

Reviewing files that changed from the base of the PR and between c7491e4 and 89a90e3.

📒 Files selected for processing (1)
  • attach/action.yml

Comment thread attach/action.yml
echo "pid $$ ppid $PPID"
mkdir -p /tmp/lunar/bin
curl -L https://github.com/earthly/lunar-dist/releases/download/v1.0.0/lunar-linux-amd64 -o /tmp/lunar/bin/lunar
curl -L https://github.com/earthly/lunar-dist/releases/download/v1.1.1/lunar-linux-amd64 -o /tmp/lunar/bin/lunar

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify v1.1.1 release exists in earthly/lunar-dist

# Check if v1.1.1 release exists
gh api repos/earthly/lunar-dist/releases/tags/v1.1.1 --jq '.tag_name, .published_at, .prerelease'

# List recent releases for context
echo "Recent releases:"
gh api repos/earthly/lunar-dist/releases --jq '.[0:5] | .[] | "\(.tag_name) - \(.published_at)"'

Repository: earthly/lunar-actions

Length of output: 385


🌐 Web query:

earthly lunar-dist v1.1.1 release

💡 Result:

No evidence found of an "earthly lunar-dist v1.1.1" release. The GitHub repository https://github.com/earthly/lunar-dist (part of Earthly's Lunar project, a platform for engineering standards and guardrails) has 11 releases with the latest being v1.0.11 on 2026-02-22. No mentions of v1.1.1 in release notes, changelogs, or official Earthly/Lunar documentation. "lunar-dist" appears to host Lunar binary releases, but v1.1.1 does not exist as of 2026-03-26.

Citations:


🏁 Script executed:

#!/bin/bash
# Check if the v1.1.1 release is accessible via curl
# GitHub API allows unauthenticated requests with lower rate limits
echo "Checking GitHub API for v1.1.1 release info:"
curl -s "https://api.github.com/repos/earthly/lunar-dist/releases/tags/v1.1.1" | head -100

echo -e "\n\nChecking if the download URL is accessible:"
curl -I -s "https://github.com/earthly/lunar-dist/releases/download/v1.1.1/lunar-linux-amd64" | head -10

echo -e "\n\nListing recent releases:"
curl -s "https://api.github.com/repos/earthly/lunar-dist/releases?per_page=10" | grep -o '"tag_name":"[^"]*"' | head -10

Repository: earthly/lunar-actions

Length of output: 1786


Remove non-existent version v1.1.1 and use a valid release.

The v1.1.1 release does not exist in the earthly/lunar-dist repository. The latest available release is v1.0.11 (2026-02-22). The curl command will fail when attempting to download from this non-existent version tag. Update the URL to point to an existing release.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@attach/action.yml` at line 57, The curl invocation that downloads lunar uses
a non-existent tag "v1.1.1"; update the URL in the shell line (the curl -L ...
-o /tmp/lunar/bin/lunar command) to reference an actual release tag such as
"v1.0.11" (or another valid tag from earthly/lunar-dist) so the download
succeeds; locate the curl command in attach/action.yml and replace the version
segment "/releases/download/v1.1.1/" with the correct
"/releases/download/v1.0.11/".

@brandonSc brandonSc closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant