ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
<FromGitter> <skinnyjames> > @skinnyjames hard to say w/o a reproducible scenario ⏎ ⏎ @Blacksmoke16 , just a follow up on shards install failing in docker, I am able to somewhat reproduce this with shards install on a docker build. ⏎ It seems to generally happen on cloning `` as a dependency of `` ⏎ ...
<FromGitter> <skinnyjames> Itd oes seem that `git clone` is wrapped in retry ( I'd be surpised if it was netowrk related though.
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <Blacksmoke16> what happens if you try to manually run that git command a few times? does it reproduce that way?
<FromGitter> <> also what `shards --version` is that? 🤔 ⏎ my output of `shards --verbose` is completely different, doesn't use clone at all, only `git fetch`
<FromGitter> <> your output almost looks like it's trying to clone the same shards multiple times in concurrently
<FromGitter> <Blacksmoke16> its in a retry so its failing to clone a few times until the retry is exhausted id guess
<FromGitter> <> ah, it's serial, ok
<FromGitter> <Blacksmoke16> is it possible you already have them installed so it just needs to look for updates? afaik `git fetch` doesnt really allow for pulling a remote repo to your machine?
<FromGitter> <> hm, `rm -rf lib ; shards install --verbose` doesn't show me any clones
<FromGitter> <Blacksmoke16> sec
<FromGitter> <> which is a bit strange indeed
<FromGitter> <Blacksmoke16> no it deff clones
<FromGitter> <Blacksmoke16> `rm -rf ~/.cache/shards` then try again
<FromGitter> <> ah, that was the trick yep
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <> @skinnyjames: fwiw, you could try `--jobs=1` to make sure it's not something weird with the parallel fetching
<FromGitter> <> but that has been released quite a while ago and i haven't heard complaints, yet, so seems unlikely to me
<FromGitter> <> if you really want to go deep i suppose you could replace your `git` with a wrapper script that injects some verbose logging parameters
<FromGitter> <Blacksmoke16> or just see if you can run the command manually w/o `--quiet` and see if it reproduceds
<FromGitter> <> yup that too
<FromGitter> <> it's a bit annoying that shards doesn't pass --verbose through to the git commands
<FromGitter> <Blacksmoke16> Maybe it should if you pass it to shards
<FromGitter> <> haven't problems with it myself but i can see how this is a more cumbersome to debug than it should be :/
<FromGitter> <Blacksmoke16> Could check the issues
<FromGitter> <> yea
<FromGitter> <> yea nah i don't fix it anyway. i'm generally trying to postpone all issues until chatgpt supports "fix issue #124"
<FromGitter> <> in fact, wouldn't even be surprised if it could add that if you paste it the code, but too lazy to try
ur5us has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 252 seconds]
yxhuvud has joined #crystal-lang
<FromGitter> <skinnyjames> Ah, when running it manually it works the first time and then fails due to the file / directory already existing.
<FromGitter> <skinnyjames> Oh making a git wrapper is probably a good idea. I think it'd also be cool to log the full error ( as a side effect instead of only swallowing it in the retry. (Happy to open a PR)
_ht has joined #crystal-lang
<FromGitter> <skinnyjames> also: ⏎ ⏎ > Ah, when running it manually it works the first time and then fails due to the file / directory already existing.
<FromGitter> <skinnyjames> based on the output it does seem to be running `git clone` for different shard dependencies concurrently, and i notice that both of the deps for `crest` live in `` so i do wonder if there is some sort of race condition at play? Thanks all, I'm going to keep digging into this angle.
<FromGitter> <> @skinnyjames: mind sharing the `dependencies` part of your `shard.yml`? i couldn't reproduce it here
<FromGitter> <skinnyjames> absolutely! ⏎ ⏎ ```code paste, see link``` []
<FromGitter> <skinnyjames> Hm.. I just got a (perhaps related) error when doing a docker build and installing apt packages: ⏎ ⏎ ```code paste, see link``` []
<FromGitter> <skinnyjames> I wonder if something is up with my..uh..ISP
<FromGitter> <skinnyjames> Or my docker configuration? I'm not sure this is an issue with shards. Big apologies for the misdirection - I was confused because it always failed on the same dependency
jmdaemon has quit [Quit: ZNC 1.8.2 -]
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
<FromGitter> <> np at all. DNS errors are iffy. ⏎ ⏎ fwiw, can confirm that i don't see any duplicate cloning when running `rm -rf ~/.cache/shards lib shard.lock ; shards install --verbose` with your `shard.yml`. so i think blacksmoke is right, the duplicates you've seen are most likely retries - due to the dns lookup errors.
<FromGitter> <> if you have access to the resolver config on that machine then i'd try switching to the cloudflare or google resolvers: ⏎ ⏎ ``` ⏎ ⏎ ⏎``` ⏎ ⏎ those are usually more reliable than what ISPs and hosters provide by default. []
pusewicz has joined #crystal-lang
<FromGitter> <skinnyjames> Ah nice! thanks!
Stephie- has quit [Quit: Fuck this shit, I'm out!]
Vexatos has quit [Read error: Connection reset by peer]
Stephie has joined #crystal-lang
Vexatos has joined #crystal-lang
sagax has quit [Remote host closed the connection]
pusewicz is now known as pusewicz|away
pusewicz|away has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmdaemon has joined #crystal-lang
ur5us has joined #crystal-lang
_ht has quit [Quit: _ht]
pusewicz has joined #crystal-lang
pusewicz is now known as pusewicz|away
FromGitter has quit [Ping timeout: 252 seconds]
oprypin has quit [Ping timeout: 272 seconds]
pusewicz|away has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SamantazFox has quit [Quit: Bye]
Daniel1970 has joined #crystal-lang
Daniel1970 has quit [Client Quit]
Daniel1970 has joined #crystal-lang