Skip to content

Use ordered maps for options and users - #370

Merged
Jake Bailey (jakebailey) merged 4 commits into
mainfrom
jabaile/ordered-maps
Feb 19, 2025
Merged

Use ordered maps for options and users#370
Jake Bailey (jakebailey) merged 4 commits into
mainfrom
jabaile/ordered-maps

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Feb 19, 2025

Copy link
Copy Markdown
Member

This swaps out the unordered maps like map[string]any, map[string][]string for OrderedMaps. This should make paths handling no longer nondeterministic.

This required some changes to OrderedMap to handle nil.

Fixes #369


CompilerOptions::
{"lib":["lib.es5.d.ts","lib.es2015.symbol.wellknown.d.ts"],"module":1,"target":1}
{"module":1,"target":1,"lib":["lib.es5.d.ts","lib.es2015.symbol.wellknown.d.ts"]}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is now in flag order, so that shows that this is working at least.

@DanielRosenwasser Daniel Rosenwasser (DanielRosenwasser) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me, but I want to check in about string keys.

Comment thread internal/collections/ordered_map.go Outdated
@jakebailey
Jake Bailey (jakebailey) deleted the jabaile/ordered-maps branch February 19, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

paths does not consistently work

2 participants