Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The inappropriate curl options used by fcitx5-pinyin-zhwiki to retrieve the zhwiki.dict.yaml file through `rime-install felixonmars/fcitx5-pinyin-zhwiki'. #18

Open
hongyi-zhao opened this issue Dec 8, 2020 · 0 comments

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Dec 8, 2020

On Ubuntu 20.04, I try to install the fcitx5-pinyin-zhwiki for rime with the following command via plum:

werner@X10DAi:~/.local/share/fcitx5/rime$ env all_proxy=socks5://127.0.0.1:18888 rime_dir="$HOME/.local/share/fcitx5/rime" rime-install felixonmars/fcitx5-pinyin-zhwiki

When the above command is running, I check the corresponding curl process and find that the invoking method is as following:

$ curl -fRL -o zhwiki.dict.yaml -z zhwiki.dict.yaml
https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.1/zhwiki-20201120.dict.yaml

The above options means that a new download will only be triggered if the remote file has been updated and make sure the local file gets the same time stamp as that remote version. If I have partially downloaded the remote file before, this method will never download the remote file again until it has been updated once more. IMO, this isn't always the expected result which we want to see. So I think this should be a misuse/inappropriate combination of curl options for the scenario discussed here.

Regards,
HY

@hongyi-zhao hongyi-zhao changed the title The small file size retrieved by `rime-install felixonmars/fcitx5-pinyin-zhwiki'. Thevery small file size of zhwiki.dict.yaml retrieved by `rime-install felixonmars/fcitx5-pinyin-zhwiki'. Dec 8, 2020
@hongyi-zhao hongyi-zhao changed the title Thevery small file size of zhwiki.dict.yaml retrieved by `rime-install felixonmars/fcitx5-pinyin-zhwiki'. The very small file size of zhwiki.dict.yaml retrieved by `rime-install felixonmars/fcitx5-pinyin-zhwiki'. Dec 9, 2020
@hongyi-zhao hongyi-zhao changed the title The very small file size of zhwiki.dict.yaml retrieved by `rime-install felixonmars/fcitx5-pinyin-zhwiki'. The inappropriate curl options used by fcitx5-pinyin-zhwiki to retrieve the zhwiki.dict.yaml file through `rime-install felixonmars/fcitx5-pinyin-zhwiki'. Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant