gitpod-io/dazzle

The order of $PATH is not guaranteed

utam0k opened this issue · 0 comments

Bug description

The order of $PATH is not guaranteed. This will, for example, randomly determine which takes precedence when python is installed on both pyenv and the system.

for k, v := range envs {
res[i] = fmt.Sprintf("%s=%s", k, v)
i++
}

related:

Steps to reproduce

I couldn't figure out how to actually run dazzle to be sure, but I can see that there is no order guarantee for map[string][string].
https://go.dev/play/p/XcEBRuUmXZy

Expected behavior

The order of $PATH is guaranteed to be in the order of base -> others.

Example repository

No response

Anything else?

No response