Skip to content

Commit 074238b

Browse files
authored
fix(railpack): set file mode in zip (#1377)
1 parent 67aa668 commit 074238b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pkg/cli/compose/context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func (zw *zipFactory) CreateHeader(info fs.FileInfo, slashPath string) (io.Write
134134
Name: slashPath,
135135
Method: zip.Deflate,
136136
}
137+
header.SetMode(info.Mode()) // sets CreatorVersion and ExternalAttrs
137138

138139
// Make reproducible
139140
header.Modified = time.Unix(sourceDateEpoch, 0)

0 commit comments

Comments
 (0)