Skip to content

Change fetch URL and parse frontend version - #22751

Merged
raycastbot merged 4 commits into
raycast:mainfrom
qazxcdswe123:fix-nixos-search-URL
Nov 10, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
qazxcdswe123:fix-nixos-search-URL

Conversation

@qazxcdswe123

@qazxcdswe123 qazxcdswe123 commented Nov 8, 2025 •

Copy link
Copy Markdown
Contributor

Updated fetch URL to retrieve version information from version.nix and extracted frontend version from the response.

close: #22750

Description

Change fetch URL and parse frontend version for nixos-search extension to match the upstream update (https://github.com/NixOS/nixos-search/pull/1081/files?diff=split#diff-7b60b8e351cbb80c47459ffe2c79f1a26404871f49294780fe47ad0e58c09350)

Screencast

Checklist

Updated fetch URL to retrieve version information from version.nix and extracted frontend version from the response.
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: nixpkgs-search Issues related to the nixpkgs-search extension platform: macOS labels Nov 8, 2025
@raycastbot

ghost commented Nov 8, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your first contribution! 🎉

🔔 @aiotter @xmok you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Greptile Overview

Greptile Summary

This PR fixes a critical bug in the NixPkgs Search extension where the version fetching functionality was failing due to upstream changes in the NixOS/nixos-search repository. The fix updates the getSearchUrl function to fetch version information from version.nix instead of the previous VERSION file, and implements regex parsing to extract the frontend version from the Nix file format. This change is essential to restore extension functionality after the upstream service restructured their version information storage from a simple text file to a structured Nix configuration file.

Important Files Changed

Filename Score Overview
extensions/nixpkgs-search/src/index.tsx 4/5 Updates URL endpoint and adds regex parsing logic to extract frontend version from version.nix file

Confidence score: 4/5

  • This PR addresses a critical bug fix with well-targeted changes that restore essential functionality
  • Score reflects solid implementation with appropriate error handling, though regex parsing adds some complexity
  • Pay close attention to the regex pattern validation and error handling in the getSearchUrl function

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@raycast-extensions-bot raycast-extensions-bot Bot added the Approved Approved by a user label Nov 10, 2025
@aiotter

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

btw I tried to parse version.nix using tree-sitter-nix however the package cannot be used with tree-sitter's Node.js binding.

@pernielsentikaer pernielsentikaer removed the Approved Approved by a user label Nov 10, 2025
@pernielsentikaer

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Is this ready for merge, @aiotter? Just approve again and I'll merge it

@qazxcdswe123 did you see feedback?

@pernielsentikaer
pernielsentikaer marked this pull request as draft November 10, 2025 05:35

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Greptile Overview

Greptile Summary

This review covers only the changes made since the last review, not the entire PR. The PR adds a single changelog entry to the NixPkgs Search extension documenting a fix that changes the URL parsing approach to retrieve version information from version.nix instead of the previous VERSION file method. This change aligns with upstream modifications to the nixos-search repository and resolves GitHub access issues that users were experiencing when the extension tried to fetch package information using the old URL structure.

The changelog entry follows the standard format with a clear date (2025-11-08) and concise description explaining that the search URL parsing was updated to use frontend version information to match upstream changes. This is a straightforward documentation update that properly records a critical bug fix for the extension.

Important Files Changed

Filename Score Overview
extensions/nixpkgs-search/CHANGELOG.md 4/5 Added changelog entry documenting URL parsing fix to match upstream changes

Confidence score: 4/5

  • This PR is safe to merge with minimal risk as it only adds a changelog entry
  • Score reflects proper changelog formatting and clear documentation of the fix, with one point deducted for the date not matching current date expectations
  • No files require special attention beyond standard changelog review

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread extensions/nixpkgs-search/CHANGELOG.md Resolved
@qazxcdswe123

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

btw I tried to parse version.nix using tree-sitter-nix however the package cannot be used with tree-sitter's Node.js binding.

IMO the version.nix file is simple enough to be parsed using regex, and thus no deps is required :)

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@qazxcdswe123
qazxcdswe123 marked this pull request as ready for review November 10, 2025 06:41

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Greptile Overview

Greptile Summary

This review covers only the changes made since the last review, not the entire PR. The developer has correctly implemented the feedback from the previous review by replacing the actual date "2025-11-08" with the required template string {PR_MERGE_DATE} in the nixpkgs-search extension's changelog entry. This change ensures compliance with the repository's changelog formatting guidelines, which mandate that all changelog entry titles must end with this template string rather than actual dates. The template allows the merge date to be populated automatically when the PR is merged, maintaining consistency across all changelog entries in the repository.

Important Files Changed

Filename Score Overview
extensions/nixpkgs-search/CHANGELOG.md 5/5 Fixed changelog entry format by replacing actual date with required template string

Confidence score: 5/5

  • This PR is safe to merge with minimal risk
  • Score reflects a simple formatting compliance fix that addresses the previous review feedback perfectly
  • No files require special attention

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 6d854c9 into raycast:main Nov 10, 2025
@github-actions

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@qazxcdswe123).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: nixpkgs-search Issues related to the nixpkgs-search extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NixPkgs Search] Cannot access GitHub

4 participants