[Feature] 添加对/bin/yq版本的检测

Open Beginner friendly
#643 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
67/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
shell
Domain
cli

Research direction

Start by finding the code that selects /bin/yq and falls back to the system yq; the issue does not name a file or test. Check how the script can identify an outdated /bin/yq version and trigger the fallback. Done when an old /bin/yq no longer causes the shown parsing error during installation and the system yq is used.

Written by the indexing model from the issue text.

Description

enhancement
描述

当/bin/yq版本过旧时,会出现:

Error: 2:7: invalid input text "################..."

的问题,从而导致安装失败。而仅当/bin/yq不存在时,才回退系统 yq,导致旧yq被反复使用。

Dominant language
Shell
Stars
15.2k
Forks
1.7k
Avg merge
1d 9h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nelvko/clashctl

All issues in nelvko/clashctl

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.