Pointless moves. Open Source literally mean the source codes are open to all to view and use. Their licenses generally allow forking, with the caveat the forks need to be open source as well.It has happened already.
The US still has laws to ban export of certain encryption algorithms, open source implementations included, to sanctioned countries such as Iran, NK, Cuba, etc.
After all, open source projects hosted in the west are still subject to the local laws. The authorities have many ways to keep sanctioned entities from accessing the code repositories of open source projects.
Russians became the latest victims after the war in Ukraine broke out. Github, for example, deleted (some?) repositories owned by Russians without warning. Gitlab then announced to stop hiring citizens of Russia, China (and perhaps Iran?).
Open source projects are run by human beings. Human beings have different politic views.
The majority of the open source contributors are social justice warriors and anti-establishment on many issues. But some of them can still side with the mainstream narratives sometimes. For example, we have the story in which project of notepad++, a quite popular editor on Windows, labelled a release specifically to support the rioters in HK. I have seen in a few instances where people in the Rust and Debian communities pushing to shut the doors for Huawei and Loongson only because these Chinese companies are sanctioned by the US government.
Neither the US government nor the project owners can prevent anyone from pulling copies of the source codes off Github and store them on Gitee (perfectly legal by the way)
Last edited: