Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Jan 30, 2025
1 parent 461b433 commit 0694e7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/mise/mise.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ func (m *Mise) runCmd(args ...string) (string, error) {
var stdout, stderr bytes.Buffer
cmd.Stdout = &stdout
cmd.Stderr = &stderr
cmd.Env = append(cmd.Env, "MISE_LOG_FILE_LEVEL=trace")

// We want to shell out to the git CLI here
// Without it, I was noticing races when multiple processes tried to check the version of the same package in parallel
// Sometimes a checkout operation would fail.
// I am testing out forcing usage of the git CLI to see if it helps
// Source: https://github.com/jdx/mise/blob/main/src/git.rs#L124
// Config: https://github.com/jdx/mise/blob/main/settings.toml#L369
cmd.Env = append(cmd.Env, "MISE_LIBGIT2=false")
cmd.Env = append(cmd.Env, "MISE_GIX=false")

Expand Down

0 comments on commit 0694e7f

Please sign in to comment.