Skip to content

antigravity: Update to version 2.0.1, fix checkver & autoupdate#17845

Merged
z-Fng merged 1 commit into
masterfrom
add-antigravity-hub
May 20, 2026
Merged

antigravity: Update to version 2.0.1, fix checkver & autoupdate#17845
z-Fng merged 1 commit into
masterfrom
add-antigravity-hub

Conversation

@z-Fng

@z-Fng z-Fng commented May 20, 2026

Copy link
Copy Markdown
Contributor

Breaking Change

https://antigravity.google/blog/introducing-google-antigravity-2-0

If you already have installed the Antigravity IDE, when that application next updates, it will automatically update to Antigravity 2.0.

This PR allows users who previously installed Antigravity IDE v1.x to upgrade to Antigravity 2.0, an agent orchestration platform.

I find this behavior a bit counterintuitive, though.

Closes #17833
Relates to #17834
Relates to #17840

  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request updates the Antigravity Scoop package manifest from v1.23.2 to v2.0.1. The manifest metadata and description reflect the transition to an agent orchestration platform. Download URLs and hashes are replaced with new Antigravity 2.0 artifact references using app*.7z archives. Installation logic now includes an installer.script that expands archives and removes leftover files, followed by a post_install hook that edits resources/app-update.yml to disable the built-in update mechanism. The checkver configuration and autoupdate templates are updated to match the new artifact URL format and hash retrieval method via JSON path.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: updating antigravity to version 2.0.1 and fixing checkver & autoupdate functionality.
Linked Issues check ✅ Passed The PR successfully addresses the linked issue #17833 by fixing the checkver regex pattern to match the new API URL format, enabling Scoop to detect Antigravity 2.x releases correctly.
Out of Scope Changes check ✅ Passed All changes in the manifest are directly related to updating antigravity to version 2.0.1 and fixing checkver/autoupdate functionality, with no extraneous modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description provides context about the breaking change, references relevant issues, includes checked confirmation of PR title convention and contributing guide review.

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


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.

❤️ Share

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

@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

antigravity

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@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.

🧹 Nitpick comments (2)
bucket/antigravity.json (2)

52-74: Run the Scoop manifest validation flow before merge.

Use:

scoop config debug true
scoop config gh_token <your-github-token>  # optional, read-only token

.\bin\checkver.ps1 -App antigravity -f
.\bin\formatjson.ps1 -App antigravity

scoop install .\bucket\antigravity.json -a 64bit
scoop install .\bucket\antigravity.json -a arm64

Reference docs:

As per coding guidelines: "Provide clear instructions for testing the manifest locally before submission."

🤖 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 `@bucket/antigravity.json` around lines 52 - 74, Run the Scoop manifest
validation and local install tests for the antigravity manifest: validate the
"checkver" regex/jsonpath and each "autoupdate" architecture block (64bit and
arm64) by running the checkver and format flows, then attempt local installs for
both architectures to ensure the "url" and "hash" endpoints return correct files
and SHA256 via their "jsonpath" values; specifically exercise the checkver
lookup, the autoupdate "architecture" entries, and the hash URLs to confirm
$version/$matchBuild interpolation and that the regex and jsonpath extract the
expected values before merging.

40-44: ⚡ Quick win

Guard app-update.yml rewrite and tighten the match condition.

Line 40 currently assumes the file exists, and Line 42 uses a broad .Replace('url', ...). A missing file will fail install, and broad replacement can rewrite unintended substrings. Add Test-Path and match only the url: key.

Proposed patch
 "post_install": [
     "# Disable built-in update mechanism to prevent conflicts with Scoop's update management",
     "$yaml = \"$dir\\resources\\app-update.yml\"",
-    "$content = Get-Content -Path $yaml | Foreach-Object {",
-    "    if ($_.StartsWith('url')) { \"$($_.Replace('url', '# url')) # Disabled by Scoop\" } else { $_ }",
-    "}",
-    "Set-Content $yaml -Value $content -Encoding ascii"
+    "if (Test-Path $yaml) {",
+    "    $content = Get-Content -Path $yaml | ForEach-Object {",
+    "        if ($_ -match '^url\\s*:') { \"# $_ # Disabled by Scoop\" } else { $_ }",
+    "    }",
+    "    Set-Content -Path $yaml -Value $content -Encoding ascii",
+    "}"
 ]
🤖 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 `@bucket/antigravity.json` around lines 40 - 44, Guard the rewrite by checking
the file exists (use Test-Path on $yaml) before calling Get-Content/Set-Content,
and tighten the replacement so it only affects the YAML key named "url" (use a
regex match like ^\s*url\s*: or -match on each $_ rather than
StartsWith/Replace) and perform a targeted transformation (e.g. prefix the whole
line with "# " or replace only the "url:" key) so other occurrences of the
substring "url" are not altered; keep references to $yaml, Get-Content,
Set-Content, and the per-line test/transform logic.
🤖 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 `@bucket/antigravity.json`:
- Around line 52-74: Run the Scoop manifest validation and local install tests
for the antigravity manifest: validate the "checkver" regex/jsonpath and each
"autoupdate" architecture block (64bit and arm64) by running the checkver and
format flows, then attempt local installs for both architectures to ensure the
"url" and "hash" endpoints return correct files and SHA256 via their "jsonpath"
values; specifically exercise the checkver lookup, the autoupdate "architecture"
entries, and the hash URLs to confirm $version/$matchBuild interpolation and
that the regex and jsonpath extract the expected values before merging.
- Around line 40-44: Guard the rewrite by checking the file exists (use
Test-Path on $yaml) before calling Get-Content/Set-Content, and tighten the
replacement so it only affects the YAML key named "url" (use a regex match like
^\s*url\s*: or -match on each $_ rather than StartsWith/Replace) and perform a
targeted transformation (e.g. prefix the whole line with "# " or replace only
the "url:" key) so other occurrences of the substring "url" are not altered;
keep references to $yaml, Get-Content, Set-Content, and the per-line
test/transform logic.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fa4777cb-bc6c-4fd3-9374-ff2a3d629080

📥 Commits

Reviewing files that changed from the base of the PR and between 59a9a20 and 27de368.

📒 Files selected for processing (1)
  • bucket/antigravity.json

@z-Fng z-Fng merged commit 1398fd1 into master May 20, 2026
6 checks passed
@z-Fng z-Fng deleted the add-antigravity-hub branch May 20, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: antigravity failing to update

1 participant