mill icon indicating copy to clipboard operation
mill copied to clipboard

Review and potentially fix `TaskCtx.env` handling when on Windows

Open lefou opened this issue 8 months ago • 0 comments

On Windows, environment variables don't need to be cases-sensitive, hence a simple lookup for a key might not be enough.

For example the scala.sys.env map has a withDefault override that tried for find the variable more vigorous. Task.ctx.get("UserPROFILE") should return a value, even is there is only a key for UserProfile`.

See also this review comment thread: https://github.com/com-lihaoyi/mill/pull/4917#pullrequestreview-2793944318

lefou avatar Apr 25 '25 18:04 lefou