Skip to content

File enumeration order in directory-scanning mode should be deterministic #8776

Closed
@RyanCavanaugh

Description

@RyanCavanaugh

Repro: Set up a.ts, b.ts, each with some statements, and a tsconfig.json in a folder using outFile then compile.

Result: Depending on which order the OS returns the files (which could change per machine), you might get one a.ts's contents before b.ts, or after

We should .sort() https://github.com/Microsoft/TypeScript/blob/adbf8fdee0c9f6ba46d106c4ca972e438511cbcb/src/compiler/commandLineParser.ts#L751 here so that TS builds are deterministic

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssue relates to TypeScript team infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions