Yesterday I created my first package and I couldn't install it. The same error appeared all the time: thread 'main' panicked at 'called Result::unwrap() on an Err value: InvalidArchive("Invalid zip header"). I tried removing the .git and it didn't solve the problem.
After some hours I tried again and found that all packages have the same branch name: Master. So, I changed the default branch from Main to Master and it worked.
Hey @not-AMM,
Thanks for reporting this issue! Indeed, I originally assumed the master branch would be the default one... I'll make sure to fix them in the upcoming releases :)
I think just switching it over could break a lot of repositories for people
or dictate the name branch that they work off of. I may be still ignorant
of a setting, but it'd be nice to retain the ability to switch the branch
name at will after changing the default. Another, albeit quick and dirty,
usage of this could be that I have a branch named test and I want a few
users to grab upcoming changes to try them out. This is something that is
easier to instruct non-tech savvy users.
On Tue, Nov 24, 2020 at 12:26 PM Federico Terzi notifications@github.com
wrote:
Hey @not-AMM https://github.com/not-AMM,
Thanks for reporting this issue! Indeed, I originally assumed the master
branch would be the default one... I'll make sure to fix them in the
upcoming releases :)—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/federico-terzi/espanso/issues/526#issuecomment-733214899,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJSAF4OO6YJSSKSKINNMRTSRQJIFANCNFSM4UAC5EAQ
.
Hey @fuzzyweapon,
Thank you for the feedback! We could add a flag to specify the branch name so that hopefully that use-case will be covered
Cheers :)
Sounds great!