-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(mirror): add Jihulab as optional git repo #249
Conversation
f52a0b6
to
86120c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @leeebo for the PR proposal, I have left a few comments. Otherwise, it looks good to me.
But I have noticed that the Jihulab option
is checked out by default, I think we should update this for the default version of the Installer to be not checked.
One more thing, maybe we should have |
Yes, make sense. I want to do that, but I don't know the syntax, that's why I write Will fix it |
This should be only for summary text so it is OK to put there just |
dd4d633
to
77e1532
Compare
77e1532
to
9ec0a84
Compare
@jakub-kocka Now users can exclusively check or uncheck the I have tested it on my Windows11 PC, it works as expected, the log as bellow: However, it should be noted that since the submodule of the submodule may specify the URL from github directly (like below, release/v5.3, cmock's submodules are from github), even if the user chooses Git mirror, these submodules still download from github. As suggested by @wujiangang, we may need to run a command like |
@leeebo Nice work! Thank you for the improvements. I agree with changing the git URL. If it may wait a bit longer we can fix this in the scope of the task with |
@jakub-kocka Comment has been added in the jira, let's wait for your fix |
@leeebo, thank you. So this PR is ready to merge, right? |
LGTM as far as I can tell. |
@leeebo Do you think this mirror would be useful to mention at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-2-get-esp-idf? We have later on that page Github mirror for downloadable tools but no alternative mentioned to cloning from Github. |
Thank you @dobairoland for the review. |
@dobairoland Thanks for your suggestions, I think finally we should mention the mirrors at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-2-get-esp-idf, we currently need an additional step to change the submodule's submodule URL from github to jihulab. How about adding a new script like |
No, I don't think that is necessary. We use relative paths here: https://github.com/espressif/esp-idf/blob/master/.gitmodules. That means that the submodules URLs will point to the same page domain the root repository was cloned from. The same way it works for our Github & Gitlab. I don't see why it wouldn't work for other mirrors as well. |
@dobairoland For the ESP-IDF's submodules it's OK, but for submodules's submodule, eg. CMock has submodule |
Ok, I see. I wouldn't add a script to ESP-IDF which is not even needed directly by it. But I'm sure we can have such helper script in another repository. Depending on the number of such submodules we can consider to submit PRs into them. |
This PR aims to add another git mirror for users to choose
Jihulab is a Chinese localization of Gitlab public repository,
Espressif maintained an official mirror there https://jihulab.com/esp-mirror/espressif/esp-idf,
Which has the same submodule relative paths as the Github repo.