Open for2years opened 6 days ago
I don't think there is a way to do this from within the project file itself. You have to create a custom repo, copy the original xmake.lua file in there and configure your project to use it.
See https://xmake.io/#/package/remote_package?id=using-self-built-private-package-repository
After this you can run xmake require --info my-package
, and it will show you where the package will be retrieved from.
you can use set_base
to do it. see https://xmake.io/#/manual/package_dependencies?id=packageset_base
I don't think there is a way to do this from within the project file itself. You have to create a custom repo, copy the original xmake.lua file in there and configure your project to use it.
See https://xmake.io/#/package/remote_package?id=using-self-built-private-package-repository
After this you can run
xmake require --info my-package
, and it will show you where the package will be retrieved from.
this remote repo contains a log of packages so I don't want to do this. but thanks for your idea anyway.
Xmake Version
v2.9.6
Operating System Version and Architecture
wsl ubuntu 2204
Describe Bug
I have a project that references a remote xmake-repo containing many packages. However, I need to locally debug one of the packages, and I found that I cannot override the package description from the remote xmake-repo.
Is there a way to prioritize local package descriptions over those in the remote repository?
After debugging the xmake source code, I found that this function merges the packages defined in the project with those defined in the remote repository.
https://github.com/xmake-io/xmake/blob/959106bc784e0a8c218c331970afc25bed52e9c6/xmake/core/package/package.lua#L2955
Expected Behavior
I can override a remote-repo package description by a local package.
Project Configuration
none
Additional Information and Error Logs
none