forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort entries by segment when building a parent node to prevent unorde…
…red directory structures. When building a parent node from action inputs, the paths to the files are sorted. These paths are then broken down into segments and a tree structure is created from the segments. Problem is, the segments at each level of the tree structure are not sorted before they are added to the parent node. This can result in an unordered directory tree. For example, the sort order of this list of files /foo/bar-client/bar-client_ijar.jar /foo/bar/bar_ijar.jar is maintained when it becomes a tree structure foo -> bar-client -> bar-client_ijar.jar bar bar_ijar.jar which is out of order. Resolves: bazelbuild#5109
- Loading branch information
James Judd
authored and
George Gensure
committed
May 4, 2018
1 parent
f19d2c1
commit af11ae5
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters