-
Notifications
You must be signed in to change notification settings - Fork 179
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
pkg_tar should not strip top level dirname from tree artifacts #404
Comments
I think I resolved this with Please confirm. |
Maybe. But we still have a problem with pkg_tar directly consuming tree artifacts. So, I think the pkg_tar needs to change to not strip the tree, and if you want it gone, you can wrap with pkg_files to remove a level. |
Closes bazelbuild#404 While adding tests to make sure we actually could strip it with pkg_files, I discovered a deficiency in pkg_tar_test. It was not doing a check on the file names, only content and type. Fixing that exposed a pre-existing bug. Fortunately, the problem uncovered is fixed by bazelbuild#554, so the tests should pass once that, followed by this PR are submitted. Allow pkg_files.strip_prefix to work on tree artifact without having to use `renames`. Update to 0.7.0 to reflect that this is sort of a big behavioral change.
Closes bazelbuild#404 While adding tests to make sure we actually could strip it with pkg_files, I discovered a deficiency in pkg_tar_test. It was not doing a check on the file names, only content and type. Fixing that exposed a pre-existing bug. Fortunately, the problem uncovered is fixed by bazelbuild#554, so the tests should pass once that, followed by this PR are submitted. Allow pkg_files.strip_prefix to work on tree artifact without having to use `renames`. Update to 0.7.0 to reflect that this is sort of a big behavioral change.
Closes #404 While adding tests to make sure we actually could strip it with pkg_files, I discovered a deficiency in pkg_tar_test. It was not doing a check on the file names, only content and type. Fixing that exposed a pre-existing bug. Fortunately, the problem uncovered is fixed by #554, so the tests should pass once that, followed by this PR are submitted. Allow pkg_files.strip_prefix to work on tree artifact without having to use `renames`. Update to 0.7.0 to reflect that this is sort of a big behavioral change.
When we have a tree artifact as input, we strip the top level name.
That is not always appropriate.
The text was updated successfully, but these errors were encountered: