initial report on rm failing to remove cache/locales
authoryarikoptic <yarikoptic@web>
Sat, 3 Oct 2020 03:52:33 +0000 (03:52 +0000)
committeradmin <admin@branchable.com>
Sat, 3 Oct 2020 03:52:33 +0000 (03:52 +0000)
doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn b/doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn
new file mode 100644 (file)
index 0000000..dfb1ed6
--- /dev/null
@@ -0,0 +1,34 @@
+### Please describe the problem.
+
+Originally reported against datalad [#4976](https://github.com/datalad/datalad/issues/4976). Ran into it again and decided to reproduce by simply trying to make `git config` in parallel (they should not crash, right?) and it brings to the same problem reported
+
+```shell
+#!/bin/bash
+
+set -eu
+export PS4='> '
+set -x
+cd "$(mktemp -d ${TMPDIR:-/tmp}/dl-XXXXXXX)"
+
+which git
+grep runshell `which git`
+
+git init
+git annex init
+
+for s in {1..30}; do
+    git config annex.version &
+done
+wait
+
+``` 
+
+I also wonder if it is possible to avoid dealing with locales upon **every** invocation of git/git-annex? couldn't it be done just once e.g. per installed annex? (sorry if we had this discussion already, but it feels not yet resolved optimally).
+
+### What version of git-annex are you using? On what operating system?
+
+`8.20200908-gcfc74c2f4`
+
+
+[[!meta author=yoh]]
+[[!tag projects/datalad]]