()
| 160 | } |
| 161 | |
| 162 | func date() string { |
| 163 | t := time.Now() |
| 164 | if sourceDate := os.Getenv("SOURCE_DATE_EPOCH"); sourceDate != "" { |
| 165 | if sec, err := strconv.ParseInt(sourceDate, 10, 64); err == nil { |
| 166 | t = time.Unix(sec, 0) |
| 167 | } |
| 168 | } |
| 169 | return t.Format("2006-01-02") |
| 170 | } |
| 171 | |
| 172 | func sourceFilesLaterThan(t time.Time) bool { |
| 173 | foundLater := false |