Skip to content

Environment keys should not be case sensitive on Windows #134

@jakepetroules

Description

@jakepetroules

On Windows, the environment keys are case-insensitive. Instead of using a [String: String] type, we should define an EnvironmentKey structure that handles the case-insensitivity considerations across platforms.

This is rather important, as we've run into real bugs in the build system as a result of treating the environment as a case sensitive dictionary.

See https://github.com/swiftlang/swift-build/blob/main/Sources/SWBUtil/EnvironmentKey.swift for an example of how we did this in Swift Build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions