crystal-lang / shards

Dependency manager for the Crystal language
Other
765 stars 102 forks source link

Failed to clone on Arch lInux #497

Closed kostya closed 3 years ago

kostya commented 3 years ago
Crystal 1.0.0 [dd40a2442] (2021-03-22)
Shards 0.14.1 [addc26a] (2021-03-10)
Arch Linux
dependencies:
  clear:
    github: anykeyh/clear
    branch: master

shards update

shards update
Resolving dependencies
Fetching https://github.com/anykeyh/clear.git
Fetching https://github.com/jwaldrip/admiral.cr.git
Fetching https://github.com/anykeyh/generate.cr.git
Fetching https://github.com/will/crystal-pg.git
Fetching https://github.com/anykeyh/inflector.cr.git
Failed to clone https://github.com/anykeyh/inflector.cr.git

but git clone https://github.com/anykeyh/inflector.cr.git locally work.

kostya commented 3 years ago

after rm -rf ~/.cache/shards/, now every shard failed to clone, not understand whats wrong, git clone works.

kostya commented 3 years ago

btw on Ubuntu all works ok. But not on Arch, i think may be this is related to dns-resolv issues (because i use custom /etc/resolv.conf).

straight-shoota commented 3 years ago

Could you run with --verbose flag and show the output?

kostya commented 3 years ago

I tried with --verbose and run command by hands:

git clone -c core.askPass=true --mirror --quiet -- https://github.com/kostya/myhtml.git myhtml
Segmentation fault (core dumped)

i find that remove --mirror fix this segfault. Git 2.31.1. So this is looks like Arch package bug, or some related packages bug, like openssl, or git itself.

kostya commented 3 years ago

This was git bug, and would be fixed in next after 2.31.1 version.