You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pkg_tar is executed on Windows host and it has package_dir specified (like a/b/c) folder separators in package_dir are encoded in the resulting TAR in a platform specific way, i.e. on Windows they are encoded as backslashes. When that TAR is then expanded on Linux or Mac they don't understand backslashes and the content gets expanded to the wrong folder tree.
The result of pkg_tar should not depend on the platform it runs on. Folder separators should always be slashes, not backslashes, and then the resulting TAR would be perfectly usable on all platforms.
The text was updated successfully, but these errors were encountered:
Hmmm... I thought I had that right the first time. I'm trying to rebuild my windows environment (lost when working from home started) and don't have a dev machine right now. Can you send along a small tar file produced on windows so I can do some forensics?
I have zipped the TAR produced on Windows and attached here. bazel-bin.zip
Regarding access to Windows environment AFAIR anybody can create a free account on Azure and get some amount of computational resources (which can be Windows VM) for free. If you don't have easier access to Windows I can look into it and probably create one for you.
* Adjust tar test to show #297
I tried to revert many pieces of code which should have fixed the problem, but could not reproduce 297. I'm fairly confident the root cause was eliminated a while ago.
When
pkg_tar
is executed on Windows host and it haspackage_dir
specified (likea/b/c
) folder separators inpackage_dir
are encoded in the resulting TAR in a platform specific way, i.e. on Windows they are encoded as backslashes. When that TAR is then expanded on Linux or Mac they don't understand backslashes and the content gets expanded to the wrong folder tree.The result of pkg_tar should not depend on the platform it runs on. Folder separators should always be slashes, not backslashes, and then the resulting TAR would be perfectly usable on all platforms.
The text was updated successfully, but these errors were encountered: