Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrepo优化 #6176

Open
Elite-stay opened this issue Feb 27, 2025 · 3 comments
Open

xrepo优化 #6176

Elite-stay opened this issue Feb 27, 2025 · 3 comments

Comments

@Elite-stay
Copy link
Contributor

你在什么场景下需要该功能?

自建xrepo仓库,并且需要验证包描述,有时候尽管已经在本地测试工程测试通过了,但换一个电脑可能又不行了,这时候可能会来回修改包描述,但不会更新包的版本号

那按目前现有的方法,只能是去~/.xmake/repositories删掉,然后再把cachepackages里对应的包删掉,重新再下一遍,虽然仓库是本地的,下载不会很慢,但是也稍显麻烦,感觉如果xrepo本身可以更新单个仓库单个包的话会更好

描述可能的解决方案

增加完全删除一个包的参数xrepo remove --cache --installed <pkg name>

增加更新一个xrepo仓库的参数xrepo update-repo <repo name>和切换分支xrepo update-repo --branch=<branch> <repo name>

描述你认为的候选方案

No response

其他信息

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: xrepo optimization

In what scenario do you need this function?

Build your own xrepo repository and need to verify the package description. Sometimes, although the local test project has been passed, it may not work if you change a computer. At this time, the package description may be modified back and forth, but the package version number will not be updated.

According to the current method, you can only delete the ~/.xmake/repositories, then delete the corresponding packages in cache and packages, and then go back again. Although the warehouse is local and the download will not be very slow, it is also a bit troublesome. I feel that it would be better if xrepo itself can update a single package in a single warehouse.

###Describe possible solutions

Add the parameter xrepo remove --cache --installed <pkg name> to completely delete a package.

Add the parameters xrepo update-repo <repo name> to update an xrepo repository and switch branch xrepo update-repo --branch=<branch> <repo name>

Describe what you consider to be a candidate

No response

Other information

No response

@waruqi
Copy link
Member

waruqi commented Feb 27, 2025

增加完全删除一个包的参数xrepo remove --cache --installed

xrepo remove --all package

增加更新一个xrepo仓库的参数xrepo update-repo

xrepo update-repo

和切换分支xrepo update-repo --branch=

xrepo add-repo [repo-name] [repo-url] [branch]

@Elite-stay
Copy link
Contributor Author

增加完全删除一个包的参数xrepo remove --cache --installed

xrepo remove --all package

增加更新一个xrepo仓库的参数xrepo update-repo

xrepo update-repo

和切换分支xrepo update-repo --branch=

xrepo add-repo [repo-name] [repo-url] [branch]

1跟3确实可以,2应该还没有只更新一个仓库的吧,有时候想暂时不更新其他仓库

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

No branches or pull requests

3 participants