jeftadlvw / git-nest

Nest external repositories into your project without git being bothered.
https://github.com/jeftadlvw/git-nest
Apache License 2.0
1 stars 1 forks source link

🐛 adding multiple repositories in parallel causes only one module to show up in `nestmodules.toml` #21

Closed jeftadlvw closed 2 months ago

jeftadlvw commented 2 months ago

During testing, running git nest add in parallel in multiple terminals causes that only one submodule is added to nestmodules.toml, which is the last process to finish.

I expect that running multiple processes of git nest add does not resemble in a wrong configuration file.

jeftadlvw commented 2 months ago

The reason is, that on startup already existing submodules are read from nestmodules.toml. Because the applications are run at the same time, the configuration file does not exist (== no other nested modules) and thus replaces any file contents when writing it's own configuration (== only one modules).