Cannot clone repo on Windows #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi Acmeism (@acmeism) / Ingy (@ingydotnet),
This in an excellent project! I am sure that many developers will find it useful. However, there appears to be a problem cloning the repo on Windows.
As per the "Getting the Data" section in the ReadMe, I tried the following command:
git clone https://github.com/acmeism/RosettaCodeData --single-branch --depth=1The initial portion of the clone command worked, but it then failed with an invalid path error:
My guess for the failure is that the ":" is an invalid character in the Windows filesystem. Might it be possible to change a colon character in a filename to the valid "-" character instead?
Kind Regards,
Liam
I too am running into this issue. Is anyone still working on this project? I noticed in the RosettaCode-pm project that provides services for this there was an update 10 months ago for 2023 but it looks like nothing in this repo has been updated in years and years.
https://github.com/acmeism/RosettaCodeData/commits/main/
The repo has been updated many times in the last year.
Last update was 5 days ago.
I recently got a Windows machine. I can look into this sometime soon.
Hi Ingy, (@ingydotnet),
This evening I retried the "git clone" command as noted above:
The same error occurred, as in the previous attempt:
It is quite possible that there are many more "invalid path" errors due to the "colon" character in the pathname. So, it may take some work to resolve this issue.
Thanks for saying that you will take some time to look into this issue.
Kind Regards,
Liam
https://gist.github.com/ingydotnet/b4a1d20dc95490fa1d3c2a59b6758565
417 bad paths.
Should be pretty easy to not use
:.Can try to address manually.
Only 3 dirs...
OK I ran
possibly cleaner way but this is just a test.
No more paths with
:although there are some broken symlinks.I pushed to branch https://github.com/acmeism/RosettaCodeData/tree/remove-colons
@celtic-coder can you
git clone --branch=remove-colons ...and report back if at least the clone works on windows.If so I'll fix up the build tool properly.
Thanks for your patience :)
Hi Ingy, (@ingydotnet),
Thanks for making these changes! It will be a few days before I can get around to testing this.
When I have the opportunity, I will get back to you on this.
Kind regards,
Liam
Hi Ingy, (@ingydotnet),
I ran the following command:
We now have a further example of an "invalid path" error:
The two culprits with "multiple dots" in the filename appear to be:
These appear in both the "Lang" and "Task" sections.
Kind Regards,
Liam