-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.release-blocker
Milestone
Description
Update : #65245 (comment) And #65245 (comment)
#50102 add FileInfoNames interface to archive/tar
I in August 2023 by https://go-review.googlesource.com/c/go/+/514235 wrote an implementation for the proposal
(My CL only has a complete implementation for changing FileInfoHeader behavior on unix.)
See https://pkg.go.dev/os/user#User , seems that there is no guarantee that uid and gid for non Unix systems are of type int.
This need to be resolved before go1.22 is released, in case it cannot be resolved in a backward compatible way in the future.
Possible solutions:
- Modify https://github.com/golang/go/blob/master/src/archive/tar/common.go#L645C1-L647C45 and https://github.com/golang/go/blob/master/src/archive/tar/common.go#L742C1-L743C34, said change FileInfoHeader behaviors on Unix only. This is the easiest.
- Delete the existing FileInfoNames interface in go1.22 .
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.release-blocker
Type
Projects
Status
Done