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

add_repository with commit hash #3584

Closed
WubiCookie opened this issue Mar 31, 2023 · 3 comments
Closed

add_repository with commit hash #3584

WubiCookie opened this issue Mar 31, 2023 · 3 comments

Comments

@WubiCookie
Copy link
Contributor

Is your feature request related to a problem? Please describe.

We have a private package repository that broke due to some mistake and blocked anyone from build our software if they updated their repository list (either automatically or with xmake repo -u).
To prevent this to happen again, I would like to be able to lock the repository to a specific commit. It is already possible to specify a branch, but that's not enough for my needs.

Describe the solution you'd like

add_repositories("myrepo (MYREPO_URL.git) [HASH]")

Describe alternatives you've considered

No response

Additional context

No response

@WubiCookie
Copy link
Contributor Author

I can not try it since we have fixed our repo, but it looks like this would have helped, thanks.
Where is generated the xmake-requires.lock?

@SirLynix
Copy link
Member

it's generated next to the xmake.lua

You can generate it by configuring your project and then edit it to change the repository commit hash

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