Skip to content

fix: update hardcoded repo path in download URLs#676

Merged
avifenesh merged 3 commits intomainfrom
fix/download-repo-path
Mar 26, 2026
Merged

fix: update hardcoded repo path in download URLs#676
avifenesh merged 3 commits intomainfrom
fix/download-repo-path

Conversation

@agent-cairn
Copy link
Copy Markdown
Collaborator

Summary

The repo was transferred from avifenesh/agnix to agent-sh/agnix. GitHub handles redirects fine for web pages and API calls, but release asset download URLs do NOT follow 301 redirects — they return 404.

This fixes all code paths that construct download URLs using a hardcoded avifenesh/agnix owner/repo path.

Files changed (7)

File Change
scripts/download.sh REPO variable
.github/workflows/test-action.yml curl URL to GitHub API
editors/vscode/src/extension.ts GITHUB_REPO const
editors/vscode/src/test/unit/versionCheck.test.ts Test URL expectations
editors/jetbrains/.../AgnixBinaryDownloader.kt GITHUB_REPO const
editors/jetbrains/.../AgnixBinaryDownloaderTest.kt Test URL expectations
npm/install.js GITHUB_REPO const

Not changed (intentional)

  • Documentation markdown files — GitHub redirects handle these fine
  • website/ versioned docs — historical references
  • Cargo.toml — cosmetic fields, redirects work
  • plugin.xml, package.json — web URLs, not download URL construction
  • extension.ts line 694 brew tap — display string only

Test plan

  • Verify scripts/download.sh fetches release assets from agent-sh/agnix
  • Verify CI workflow resolves latest release correctly
  • Verify VS Code extension downloads binary from new repo path
  • Verify JetBrains plugin downloads binary from new repo path
  • Verify npm install resolves binary from new repo path

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the repository path from avifenesh/agnix to agent-sh/agnix across the project, including JetBrains and VS Code extensions, NPM scripts, and shell scripts. The review feedback suggests improving maintainability by replacing hardcoded repository strings in test files with constants or existing configuration values.

@agent-cairn agent-cairn marked this pull request as ready for review March 26, 2026 20:33
Copilot AI review requested due to automatic review settings March 26, 2026 20:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates hardcoded GitHub repository owner/name used to construct release asset download URLs after transferring the repo from avifenesh/agnix to agent-sh/agnix, ensuring downloads don’t 404 due to non-followed redirects on release assets.

Changes:

  • Updated hardcoded repo path in download/install code paths (shell script, npm installer, VS Code extension, JetBrains plugin).
  • Updated CI workflow release-check API URL to point at the new repo.
  • Updated unit tests to match the new expected GitHub release URL format, and added an Unreleased changelog entry.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/download.sh Updates REPO used to build release asset download URLs.
npm/install.js Updates GITHUB_REPO for npm postinstall download logic.
editors/vscode/src/extension.ts Updates GITHUB_REPO used by the VS Code extension download/version logic.
editors/vscode/src/test/unit/versionCheck.test.ts Updates expected release URL strings in unit tests.
editors/jetbrains/src/main/kotlin/io/agnix/jetbrains/binary/AgnixBinaryDownloader.kt Updates GITHUB_REPO used by the JetBrains binary downloader.
editors/jetbrains/src/test/kotlin/io/agnix/jetbrains/binary/AgnixBinaryDownloaderTest.kt Updates URL expectations in downloader trust/redirect tests.
.github/workflows/test-action.yml Updates GitHub API URL used to resolve latest release tag in CI.
CHANGELOG.md Adds an Unreleased “Fixed” entry documenting the repo-path update.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +10 to +12
### Fixed
- **Download URLs**: Updated hardcoded repository path from `avifenesh/agnix` to `agent-sh/agnix` across download scripts, editor extensions, and CI workflows (#676).

Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

The PR description says "Files changed (7)", but this PR also modifies CHANGELOG.md (making 8 files). Consider updating the PR description summary/table so it matches the actual changed file list.

Copilot uses AI. Check for mistakes.
## [Unreleased]

### Fixed
- **Download URLs**: Updated hardcoded repository path from `avifenesh/agnix` to `agent-sh/agnix` across download scripts, editor extensions, and CI workflows (#676).
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

This changelog bullet says the repo path update happened across "CI workflows", but the PR only updates a single workflow file (.github/workflows/test-action.yml). Consider changing the wording to "CI workflow" (singular) or explicitly listing the affected workflow(s) to keep the changelog accurate.

Suggested change
- **Download URLs**: Updated hardcoded repository path from `avifenesh/agnix` to `agent-sh/agnix` across download scripts, editor extensions, and CI workflows (#676).
- **Download URLs**: Updated hardcoded repository path from `avifenesh/agnix` to `agent-sh/agnix` across download scripts, editor extensions, and the `test-action` CI workflow (`.github/workflows/test-action.yml`) (#676).

Copilot uses AI. Check for mistakes.
@avifenesh avifenesh merged commit 3000993 into main Mar 26, 2026
21 checks passed
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.

3 participants