Skip to content

Commit

Permalink
fix smoke tests failing because Dir.entries order is not deterministic (
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman authored Jan 31, 2024
1 parent 85a4af6 commit 0de6d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/dependabot/file_fetchers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def _cloned_repo_contents(relative_path)
repo_path = File.join(clone_repo_contents, relative_path)
return [] unless Dir.exist?(repo_path)

Dir.entries(repo_path).filter_map do |name|
Dir.entries(repo_path).sort.filter_map do |name|
next if name == "." || name == ".."

absolute_path = File.join(repo_path, name)
Expand Down

0 comments on commit 0de6d27

Please sign in to comment.