And there are no options to skip that behaviour.
detpax stores only minimal set of metainformation. Directories walking
-is done in a sorted way. No UIDs/GIDs or any kind of timestamps are
-stored, but permissions with sticky/setuid/setgid bits.
+is done in a sorted way. No UIDs/GIDs or any kind of timestamps are stored
+(except for dummy mtime), but permissions with sticky/setuid/setgid bits.
It also has ability to set higher precedence ordering for some
directories. For example BASS packages stores their dependencies as
"sort"
"strings"
"syscall"
+ "time"
)
const (
return files[i].order < files[j].order
})
- hdr := tar.Header{Format: tar.FormatPAX}
+ hdr := tar.Header{
+ Format: tar.FormatPAX,
+ ModTime: time.Date(1981, 1, 1, 0, 0, 0, 0, time.UTC),
+ }
for _, info := range files {
hdr.Name = info.name
hdr.Mode = int64(info.mode & 0o777)