RT-Thread / RT-Thread/env

pkgs --update-force命令有问题

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
78
Forks
64
Avg merge
1d 2h
Merged PRs (30d)
7

Description

该命令有问题,该命令直接调用了git的pull --force命令,导致有可能合并会出现冲突,进而导致强制update失败。

建议做法:
直接把packages文件夹删了,然后执行pkgs --update全部重新下载。

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start at the implementation of the pkgs --update-force command and trace how it invokes Git, then compare it with the regular pkgs --update path. Done means forced updates no longer fail because of pull conflicts and the packages are restored successfully after the update.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.