tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
293 stars 50 forks source link

Can't `tldr --update` when installed from Brew on Linux #91

Open JanPokorny opened 1 year ago

JanPokorny commented 1 year ago

Reproduction Rate

Always

Steps to Reproduce

OS: Pop_OS! 22.04 (Ubuntu-based)

❯ brew install tldr
==> Downloading https://ghcr.io/v2/homebrew/core/tldr/manifests/1.5.0
Already downloaded: /home/jp/.cache/Homebrew/downloads/5ce896f3ef77116e85ee637f74d355724ba1f637c129324296d0d0422b79d7d3--tldr-1.5.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/tldr/blobs/sha256:948fa2f4233dc829670e11d5eed35ac8180383d
Already downloaded: /home/jp/.cache/Homebrew/downloads/b7e71b27bd44c29e33162bd843053d09b7ec12e51b6cee35a4ded1b50acc7b32--tldr--1.5.0.x86_64_linux.bottle.tar.gz
==> Pouring tldr--1.5.0.x86_64_linux.bottle.tar.gz
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:10: warning: Insecure world writable dir /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims in PATH, mode 040777
🍺  /home/linuxbrew/.linuxbrew/Cellar/tldr/1.5.0: 10 files, 102.4KB
==> Running `brew cleanup tldr`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

~
❯ tldr tar
Error: Downloading File: https://github.com/tldr-pages/tldr/archive/main.zip
This page doesn't exist yet!
Submit new pages here: https://github.com/tldr-pages/tldr

~
❯ tldr --update
Error: Downloading File: https://github.com/tldr-pages/tldr/archive/main.zip

Result

See above

Expected Result

I would expect it to work

Additional Information

I can wget the file just fine:

~                                                                              
❯ wget https://github.com/tldr-pages/tldr/archive/main.zip
--2022-09-20 15:52:29--  https://github.com/tldr-pages/tldr/archive/main.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/tldr-pages/tldr/zip/refs/heads/main [following]
--2022-09-20 15:52:29--  https://codeload.github.com/tldr-pages/tldr/zip/refs/heads/main
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3633846 (3.5M) [application/zip]
Saving to: ‘main.zip’

main.zip                   100%[======================================>]   3.46M  1.90MB/s    in 1.8s    

2022-09-20 15:52:31 (1.90 MB/s) - ‘main.zip’ saved [3633846/3633846]