()
| 134 | } |
| 135 | |
| 136 | func date() string { |
| 137 | t := time.Now() |
| 138 | if sourceDate := os.Getenv("SOURCE_DATE_EPOCH"); sourceDate != "" { |
| 139 | if sec, err := strconv.ParseInt(sourceDate, 10, 64); err == nil { |
| 140 | t = time.Unix(sec, 0) |
| 141 | } |
| 142 | } |
| 143 | return t.Format("2006-01-02") |
| 144 | } |
| 145 | |
| 146 | func sourceFilesLaterThan(t time.Time) bool { |
| 147 | foundLater := false |