Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort result of Pathname#glob #154

Merged
merged 1 commit into from
Jul 6, 2020
Merged

Conversation

pocke
Copy link
Contributor

@pocke pocke commented Jun 16, 2020

This pull request sorts the result of Pathname#glob.
Because Pathname#glob's order depends on the environment.
See https://bugs.ruby-lang.org/issues/8709

The not sorted paths introduce confusing behavior. Steep may display different results with not-sorted paths between different environments.
So I think it it better if the paths are sorted.

By the way, I found the not-sorted paths with a confusing behavior of steep, I guess it is a bug. So I'll report it as another issue.

Because Pathname#glob's order depends on environment.
See https://bugs.ruby-lang.org/issues/8709
Copy link
Owner

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

🧼

@soutaro soutaro merged commit 7419886 into soutaro:master Jul 6, 2020
@pocke pocke deleted the sort-pathname-glob branch July 23, 2020 11:31
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.

2 participants