juhp / fbrnch

Tool to update fedora packages branches

Home Page:https://hackage.haskell.org/package/fbrnch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help is broken without product-versions.json

QuLogic opened this issue · comments

I mentioned on IRC that product-versions.json broke somehow, though I managed to fix it. This is not a report about that. Rather, it is a report that --help/-h broke while that file is missing.

Even if product-versions.json cannot be downloaded or is invalid, --help should never be broken. Command-line options should be checked before doing anything, just in case --help is requested.

Yeah I noticed this too while trying to build the package in copr (I ended up disabling the manpage because I wanted to get the release out, but maybe I was too cavalier on this :-( ).

Actually I am not completely sure what is going on/wrong - the cached json file should expire every 6 hours: seems like something could be wrong there, though in retrospect I realized I should have renamed the name along with the content change.

Let me try to change it so that it doesn't happen anymore.

Just for reference the json file will become now an array of the product versions.

Ah I found the actual problem: the cabal build (which I use for copr) was still using an older broken commit for the pdc lib - no wonder it wasn't working. :-(

Ah I found the actual problem: the cabal build (which I use for copr) was still using an older broken commit for the pdc lib - no wonder it wasn't working. :-(

That should be fixed in fbrnch-0.4-2

Also, if the JSON is invalid, then tab complete doesn't work.

I have added some further changes in git on Sunday to further prevent this from re-occurring:
renamed the json file and also removed it's early parsing in main
(essentially removing the last clever ""skeumorphism"" from the option processing).

Thank you for reporting this bug.