Autoreload with patch."ssh://git@..." #20737
-
I have a directory with several repos under development, N lib repos an M bin repos that use the lib repos. In order to cover my development, there is a sibling .cargo directory with config.toml that declares patches for all the development repos.
Now, when rust analyzer starts working, the ssh urls will get updated (Updating git repository Is there a more elegant approach to get rust analyzer out of the infinite Autoreload loop with ssh url patches? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Sorry for the late reply. I'll check what's happening |
Beta Was this translation helpful? Give feedback.
-
What do you expect rust-analyzer to do? Is there a way to not got into an infinite loop? rust-analyzer just calls Cargo, that updates the repository, and it also watches over changes and reruns Cargo. We could probably avoid that if we will compare the old and new contents and don't rerun Cargo if nothing has changed, but that will degrade performance for everyone else, which I don't think is justified. Your working method seems like a bad practice. |
Beta Was this translation helpful? Give feedback.
Memory usage won't be impacted, speed will, and in latency-sensitive parts of r-a. We also don't have a good way to compare the speed, and I wouldn't want to take the risk.
They can be used just fine, just not in the way you do it.