-
Notifications
You must be signed in to change notification settings - Fork 170
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
Added rosdep init-mirror and rosdep update-mirror instructions. #839
base: master
Are you sure you want to change the base?
Conversation
Hi, is there any further update on this PR. Users of rosdep in China have experienced bad usability due to the network issue when accessing raw.githubusercontent, so this PR is wanted. I'm a maintainer of TUNA mirror, and more specifically I mirrorred 20-default.list in our syncing script One more thing to note is that now BFSU also supports this. |
Instructing this tool to use alternate rosdep db URLs has always been supported out of the box. I don't believe that adding additional verbs and a hard-coded list of mirrors to do so is necessary, desirable, or maintainable. Releasing a new version of this package if/when the mirror list changes isn't a good workflow. This PR already requires users to change the commands they invoke. Why not simply do this instead of ...and then use rosdep normally? Another thing to note is that this PR doesn't instruct rosdistro to use a mirror, so you would still need access to GitHub in order to download the package list from the rosdistro index. As it happens, using an alternate URL for that is also supported out of the box using an environment variable: |
Thanks for this feedback! Knowing what ros people think on this issue would help us settle the problem for our users. If this is not the way things are done, we can try to solve it in another way.
Line 597 in 16e4b3a
After a quick digging I could not find a environment variable that are passed here (Maybe I missed some code, correct me if I'm wrong). May be some environment variable like
I understand your new-verb/maintenance issue, so if it is not the way, we can instead use env var here.
We can add related infra for that. As I'm not a daily user of One more thing to note is that our user can connect So it seems that the takeaway is that changes needed are we mirror site recommends our user to use the above workaround, and we sync the whole If there is indeed something that rosdep needs to adopt, I think the I do not know if it works out of the box to get Again thanks for your information on these env vars, I think your information would help us develop a way to solve the problem. (I've seen tons of issue on the connectivity and if this is settled, our user would be more happy and all these issues can be solved) |
It works as intended. So we have setup a mirror at https://mirrors.tuna.tsinghua.edu.cn/rosdistro/, see https://mirrors.tuna.tsinghua.edu.cn/help/rosdistro/ for usage Could we add this to the wiki? I think with this mirror you can close some issue now. Thank you again for pointing out the environment variable. |
thanks for your help! |
厉害了我的哥,这个方式来解决这个问题是恰当的。赞! |
That seems like a good idea to me. Please do so. |
The discussion on mirror sites is at ros-infrastructure/rosdep#839 (comment). Similar to http://wiki.ros.org/rosdep
The discussion on mirror sites is at ros-infrastructure/rosdep#839 (comment). Similar guide has already been added at http://wiki.ros.org/rosdep
Added in wiki (http://wiki.ros.org/rosdep). PR on ROS2 doc in progress (ros2/ros2_documentation#2842) I assume this PR could be closed now? |
PR description
-Two rosdep directives were added to solve the problem of slow visit in http://raw.githubusercontent.com, China.
-The mirror source: https://mirrors.tuna.tsinghua.edu.cn/ros/ is used.
Introduction of new instructions: