-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manifest: Allow for TreeArtifacts in PackageFilesInfo (#421)
The package-independent JSON manifests currently do not consider whether a "file" in a `PackageFilesInfo` provider is actually a file or a directory. This change provides this awareness. This also fixes up some other (apparent) logic issues related to directories, and additionally provides a test. Since the tests now involve generated TreeArtifacts, this change also forces the manifest generation tests to use the manifest "short_path". There may be a better way to do this, but it seems to work for now. Additionally, this change fixes some Windows-specific path separator consistency issues exposed in `pkg_tar` by the aforementioned change. Thanks to @beasleyr-vmw for investigating this. Co-authored-by: Ryan Beasley <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[ | ||
[0, "BUILD","tests/mappings/BUILD","",null,null], | ||
[2, "foodir",null,"711","foo","bar"], | ||
[0, "mappings_test.bzl","tests/mappings/mappings_test.bzl","0644",null,null] | ||
[0, "mappings_test.bzl","tests/mappings/mappings_test.bzl","0644",null,null], | ||
[3, "treeartifact","tests/mappings/treeartifact","0644",null,null] | ||
] |
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