-
Notifications
You must be signed in to change notification settings - Fork 18k
archive/zip: AddFS omits trailing slash in directory names #71235
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
Comments
CC @songgao, @ianlancetaylor. |
Change https://go.dev/cl/642375 mentions this issue: |
As hana pointed out, this issue might be related to the issue happens in vscode-go causing the test failure. I'm not very familiar with the go release process (about code freeze). Is this CL going to merge in gotip and released in go 1.24? (If it can merge in gotip, I will just drop my CL and wait for the fix here) |
@h9jiang it will be in 1.24. |
This takes over CL 642375. Fixes golang#71235. Change-Id: Ic88654da5ae80911bc28329e008de1396c97856e
Change https://go.dev/cl/644075 mentions this issue: |
Go version
go version go1.24-20241213-RC00 cl/706019355 +e39e965e0e X:fieldtrack,boringcrypto linux/amd64
Output of
go env
in your module/workspace:What did you do?
The doc for zip.FileHeader.Name says "A trailing slash indicates that this file is a directory."
When change https://go.dev/cl/578415 added directories, it did not include the trailing slashes.
repro: https://go.dev/play/p/9C5y2uZ1A2U?v=gotip
What did you see happen?
dir
dir/file
What did you expect to see?
dir/
dir/file
The text was updated successfully, but these errors were encountered: