Skip to content

Conversation

@christoph-zededa
Copy link
Contributor

@christoph-zededa christoph-zededa commented Jun 25, 2025

if pkglib.NewFromConfig is used in parallel, it calls

git -C /some/directory update-index -q --refresh

in parallel.

But git does not like this and exits with 128.

This can be easily tried with:

git -C /some/dir update-index -q --refresh & \
git -C /some/dir update-index -q --refresh

- What I did
call pkglib.NewFromConfig in parallel

- How I did it

christoph-zededa/eve@1d09b27#diff-0d57db8877b73415b85ec56b72d4b265790a1d353d906b3574f6168227295719R149

- How to verify it

run the code with this fix

- Description for the changelog
fix parallel pkglib.NewFromConfig

- A picture of a cute animal (not mandatory but encouraged)

ChatGPT Image Jun 25, 2025, 08_35_37 PM

if `pkglib.NewFromConfig` is used in parallel, it calls
```
git -C /some/directory update-index -q --refresh
```
in parallel.

But `git` does not like this and exits with 128.

This can be easily tried with:
```
git -C /some/dir update-index -q --refresh & \
git -C /some/dir update-index -q --refresh
```

Signed-off-by: Christoph Ostarek <[email protected]>
@deitch deitch merged commit 3f54a80 into linuxkit:master Jun 25, 2025
22 checks passed
@OhmSpectator
Copy link

  • A picture of a cute animal (not mandatory but encouraged)

We need it in our PR template

@christoph-zededa
Copy link
Contributor Author

  • A picture of a cute animal (not mandatory but encouraged)

We need it in our PR template

Actually I thought the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants