Skip to content

Commit 0a0ecf5

Browse files
authored
fix: sort scripts list (#2477)
This allows to have a consistent output from `devbox run`. Closes #1631 and #1991. ## Summary ## How was it tested? I tested running multiple times `devbox run` in different project where I use it.
1 parent c0d4d98 commit 0a0ecf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/devbox/devbox.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ func (d *Devbox) ListScripts() []string {
345345
keys[i] = k
346346
i++
347347
}
348+
349+
slices.Sort(keys)
350+
348351
return keys
349352
}
350353

0 commit comments

Comments
 (0)