Repository navigation
Change fetch URL and parse frontend version - #22751
Conversation
Updated fetch URL to retrieve version information from version.nix and extracted frontend version from the response.
|
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. |
left a comment
There was a problem hiding this comment.
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
commented
Nov 10, 2025
|
btw I tried to parse |
commented
Nov 10, 2025
|
Is this ready for merge, @aiotter? Just approve again and I'll merge it @qazxcdswe123 did you see feedback? |
left a comment
There was a problem hiding this comment.
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
commented
Nov 10, 2025
IMO the |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
left a comment
There was a problem hiding this comment.
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
commented
Nov 10, 2025
|
Published to the Raycast Store: |
commented
Nov 10, 2025
|
🎉 🎉 🎉 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. |
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
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool