Closed waldyrious closed 4 years ago
While this would match the documentation, we can't do that unfortunately. It would break all of our past homebrew taps including the core.
I believe github keep redirects in place, but I'm not sure. If that is the case, would it work?
They keep a redirect in place, but it's undocumented and might break randomly. There is a big red warning when I try to rename the repository.
I see. That's a pity. I guess the only way to handle this is to create a separate repo and mark this one as deprecated, but that would lose the issue history, and is generally a sub-optimal solution. Feel free to pick what choice seems more appropriate, including closing this issue.
Old issue has an older solution: https://github.com/blog/1508-repository-redirects-are-here
ping @waldyrious @sbrl
The client is also wrongly stated as C++ client in tldr-pages/tldr's README.
I'd be able to move the repo if we could co-ordinate homebrew.
We should also update the README there then, yeah
I am wondering why this was named cpp client in the first place. Was there C++ code initially, which was replaced with C ?
I'd be able to move the repo if we could co-ordinate homebrew.
AFAIK Homebrew does not support installing old versions of a formula anyway, so we would just need to submit a PR updating the tldr
formula to match the new repo URL.
@agnivade Seems like your hypothesis is right. https://github.com/tldr-pages/tldr-cpp-client/commit/813c5fb588baf217914006aaed8bb697d7c2d13b#diff-3817fa6a8ba7236b52bad41400452877
@agnivade @sbrl @owenvoke @mebeim Once the repo is renamed, GitHub will automatically redirect old URLs to the new ones. Basically all that's required to be done is to simply rename the repository.
After that related URLs can be changed in https://github.com/Homebrew/homebrew-core/blob/master/Formula/tldr.rb.
I am wondering why this was named cpp client in the first place. Was there C++ code initially, which was replaced with C ?
Yes, this was originally in C++. I switched it to C at a later point to, eventually, support Windows. Which I never actually got around to implement, unfortunately.
@Leandros: ....but Windows has a C++ compiler?
I think it's ok to finally close this. 👍 The repo has been renamed, references in Brew have been updated, and everything seems to be working as expected.
to match the documentation