Concurrency issues when launching multiple process with gitlib deps

Description

Per https://ask.clojure.org/index.php/10508/concurrency-issues-launching-multiple-process-coordinates:

When launching multiple clojure processes with the same remote git coordinate, there seems to be concurrency issues when cloning the git repository.

In this particular case, I was using node foreman to launch 2 or 3 different development workflows in parallel. One process would win and successfully clone the repo, while all others would fail with various errors. Once the git repo is successfully cloned, processes will run concurrently without issue.

The workaround is to manually launch processes so that the git repo can be successfully cloned first. But not having to worry about the concurrency issues would be nice. I was wondering if this would be considered an issue, or if my expectations or usage are off.

My clojure version is: Clojure CLI version 1.10.3.822
My git version is: git version 2.20.1 (Apple Git-117)

I have included two gists that contain log output of three different kinds of errors. The processes were run with the follow set:

export GITLIBS_DEBUG=true

https://gist.github.com/zalky/e562a9da8f4a6c1890116c8a05d53dde
https://gist.github.com/zalky/ac7c0ace34f27d289c93c70daba99acc

Happy to provide more detail if it would help.

Environment

None

Activity

Show:

Details

Assignee

Reporter

Priority

Created April 22, 2021 at 6:11 PM
Updated July 20, 2021 at 2:57 PM