Replies: 1 comment
-
Hi again! Over the past few days, I've continued experimenting and digging deeper into both the Xmake codebase and my setup to better understand the issue. I believe I've partially answered my question: it seems there's currently no way to directly access the version passed via xrepo install However, while investigating further, I also realized that the root cause of my issue could be addressed more simply: the problem arises because Git clones performed during xrepo install are shallow ( I noticed that the If there were a way to customize the Git clone depth (e.g., pass a different value, or remove Would it be possible to introduce such an option? Even exposing it as part of add_urls/add_versions, via a configuration setting or via a command line option, would help greatly. Thanks again for your support and all the work on Xmake — it's a fantastic tool. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating an xmake package and need to retrieve the version string specified by the user in this command:
This version should be accessible inside the rule definition, specifically during the
on_config
phase:I would need this for the following reasons:
xrepo install
because only a shallow clone of a single commit is performed.and use
"1.2.3"
instead.Is there an official way to access the version passed to
xrepo install "mypkg 1.2.3"
inside theon_config
stage of a rule or xmake.lua?If not, would you happen to have any suggestions?
Any pointers would be hugely appreciated!
Beta Was this translation helpful? Give feedback.
All reactions