feat(ahkohd/oyo): scaffold ahkohd/oyo#51459
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 18 minutes and 2 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds package registry configuration for Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@pkgs/ahkohd/oyo/pkg.yaml`:
- Around line 1-2: pkg.yaml currently only lists the latest package entry
"ahkohd/oyo@v0.1.24", but registry.yaml contains multiple version_overrides so
add a second package entry to exercise the older override path: keep the
existing short form for v0.1.24 and add a new block using the long syntax
(object with name and version fields) for the older pinned version (e.g., name:
"ahkohd/oyo" and version: "0.1.X") so both code paths are tested; update the
packages array to include both entries.
In `@pkgs/ahkohd/oyo/registry.yaml`:
- Around line 3-21: The supported_envs field is nested inside the
version_overrides block so it only applies to the "true" override; move
supported_envs to the package top level (immediately after description and
before version_constraint) so it applies globally to the package. Update the
registry.yaml so supported_envs is no longer inside the version_overrides list
(remove it from the override that contains version_constraint: "true") and place
a top-level supported_envs: [darwin] field for the package; keep existing
version_overrides (including the semver("<= 0.1.19") no_asset entry and the
asset/format/replacements entries) unchanged except for removing their nested
supported_envs.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 357ac981-1734-460a-8747-ed0feacf284f
📒 Files selected for processing (3)
pkgs/ahkohd/oyo/pkg.yamlpkgs/ahkohd/oyo/registry.yamlregistry.yaml
| packages: | ||
| - name: ahkohd/oyo@v0.1.24 |
There was a problem hiding this comment.
Add an older pinned package entry to cover the second override path.
pkg.yaml currently tests only v0.1.24, but this package has version-dependent behavior in registry.yaml. Add an old-version case as a separate entry, and use long syntax for the pinned old version.
Suggested update
packages:
- name: ahkohd/oyo@v0.1.24
+ - name: ahkohd/oyo
+ version: v0.1.19Based on learnings: when registry.yaml has multiple version_overrides that exercise different configurations, pkg.yaml should include both latest and older versions; and old versions should use long syntax with an explicit version field.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@pkgs/ahkohd/oyo/pkg.yaml` around lines 1 - 2, pkg.yaml currently only lists
the latest package entry "ahkohd/oyo@v0.1.24", but registry.yaml contains
multiple version_overrides so add a second package entry to exercise the older
override path: keep the existing short form for v0.1.24 and add a new block
using the long syntax (object with name and version fields) for the older pinned
version (e.g., name: "ahkohd/oyo" and version: "0.1.X") so both code paths are
tested; update the packages array to include both entries.
| - type: github_release | ||
| repo_owner: ahkohd | ||
| repo_name: oyo | ||
| description: A different viewer | ||
| version_constraint: "false" | ||
| version_overrides: | ||
| - version_constraint: semver("<= 0.1.19") | ||
| no_asset: true | ||
| - version_constraint: "true" | ||
| asset: oy-{{.Arch}}-{{.OS}}.{{.Format}} | ||
| files: | ||
| - name: oy | ||
| format: tar.gz | ||
| replacements: | ||
| amd64: x86_64 | ||
| arm64: aarch64 | ||
| darwin: apple-darwin | ||
| supported_envs: | ||
| - darwin |
There was a problem hiding this comment.
Move supported_envs to package top level for darwin-only package.
The supported_envs constraint is currently nested inside the version_constraint: "true" override block (lines 20-21). For packages that are darwin-only across all versions, supported_envs should be placed at the package top level (after description, before version_constraint) to apply globally. The current placement only constrains the specific version override, which could lead aqua to attempt resolution on non-darwin platforms for versions covered by other overrides (e.g., <= 0.1.19).
🔧 Proposed fix: Move supported_envs to top level
- type: github_release
repo_owner: ahkohd
repo_name: oyo
description: A different viewer
+ supported_envs:
+ - darwin
version_constraint: "false"
version_overrides:
- version_constraint: semver("<= 0.1.19")
no_asset: true
- version_constraint: "true"
asset: oy-{{.Arch}}-{{.OS}}.{{.Format}}
files:
- name: oy
format: tar.gz
replacements:
amd64: x86_64
arm64: aarch64
darwin: apple-darwin
- supported_envs:
- - darwinBased on learnings: "In pkgs/**/registry.yaml for aquaproj/aqua-registry: This is a very similar case to ahkohd/oyo: it uses version_constraint: 'false' with version_overrides containing no_asset entries AND supported_envs. However, when supported_envs is placed inside version_overrides, it only applies to that specific version constraint, not globally. For darwin-only packages, this placement pattern is non-standard and could lead to resolution attempts on non-darwin environments for versions not explicitly covered."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@pkgs/ahkohd/oyo/registry.yaml` around lines 3 - 21, The supported_envs field
is nested inside the version_overrides block so it only applies to the "true"
override; move supported_envs to the package top level (immediately after
description and before version_constraint) so it applies globally to the
package. Update the registry.yaml so supported_envs is no longer inside the
version_overrides list (remove it from the override that contains
version_constraint: "true") and place a top-level supported_envs: [darwin] field
for the package; keep existing version_overrides (including the semver("<=
0.1.19") no_asset entry and the asset/format/replacements entries) unchanged
except for removing their nested supported_envs.
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [aquaproj/aqua-registry](https://github.com/aquaproj/aqua-registry) | minor | `v4.491.0` → `v4.492.0` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>aquaproj/aqua-registry (aquaproj/aqua-registry)</summary> ### [`v4.492.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.492.0) [Compare Source](aquaproj/aqua-registry@v4.491.0...v4.492.0) [Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.492.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.492.0) | <aquaproj/aqua-registry@v4.491.0...v4.492.0> #### 🎉 New Packages [#​51459](aquaproj/aqua-registry#51459) [ahkohd/oyo](https://github.com/ahkohd/oyo) - A different viewer [@​tmeijn](https://github.com/tmeijn) [#​51458](aquaproj/aqua-registry#51458) [textfuel/lazyjira](https://github.com/textfuel/lazyjira) - Lazygit but for Jira [@​tmeijn](https://github.com/tmeijn) [#​51457](aquaproj/aqua-registry#51457) [bellicose100xp/jiq](https://github.com/bellicose100xp/jiq) - Interactive JSON query tool with real-time output and AI assistance [@​tmeijn](https://github.com/tmeijn) [#​51455](aquaproj/aqua-registry#51455) [micahkepe/jsongrep](https://github.com/micahkepe/jsongrep) - A path query language for JSON, YAML, TOML, and other serialization formats [@​tmeijn](https://github.com/tmeijn) [#​51454](aquaproj/aqua-registry#51454) [kurama/dealve-tui](https://github.com/kurama/dealve-tui) - Delve into game deals from your terminal [@​tmeijn](https://github.com/tmeijn) [#​51373](aquaproj/aqua-registry#51373) [ubugeeei/vize](https://github.com/ubugeeei/vize): Unofficial High-Performance Vue.js Toolchain in Rust [@​hituzi-no-sippo](https://github.com/hituzi-no-sippo) #### Fixes [#​51447](aquaproj/aqua-registry#51447) sigstore/cosign: Support cosign v2.6.2 [@​tmeijn](https://github.com/tmeijn) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDQuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwNC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
#51459 ahkohd/oyo - A different viewer @tmeijn
Check List
argd scommand when adding new packagesSummary by CodeRabbit
Release Notes