Skip to content

Commit

Permalink
Remove outdated comments
Browse files Browse the repository at this point in the history
The call to `SetModTime` was removed in pulumi#11002 but the comment stayed around. The `nolint` directive had been added in pulumi#1494 to excuse the (now-removed) use of `SetModTime`.
  • Loading branch information
mmdriley committed Apr 5, 2023
1 parent 3459a76 commit d8e2737
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sdk/go/common/resource/asset.go
Expand Up @@ -1047,9 +1047,7 @@ func addNextFileToZIP(r ArchiveReader, zw *zip.Writer, seenFiles map[string]bool

// Set a nonzero -- but constant -- modification time. Otherwise, some agents (e.g. Azure
// websites) can't extract the resulting archive. The date is comfortably after 1980 because
// the ZIP format includes a date representation that starts at 1980. Use `SetModTime` to
// remain compatible with Go 1.9.
//nolint:megacheck
// the ZIP format includes a date representation that starts at 1980.
fh.Modified = time.Date(1990, time.January, 1, 0, 0, 0, 0, time.UTC)

fw, err := zw.CreateHeader(fh)
Expand Down

0 comments on commit d8e2737

Please sign in to comment.