diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1abf081e7e..95b0b34442 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,4 +35,4 @@ jobs: version: v1.42.1 only-new-issues: true skip-pkg-cache: true - skip-build-cache: true:w \ No newline at end of file + skip-build-cache: true \ No newline at end of file diff --git a/internal/build/env.go b/internal/build/env.go index d70c0d50a4..1be30e7e81 100644 --- a/internal/build/env.go +++ b/internal/build/env.go @@ -109,6 +109,7 @@ func LocalEnv() Environment { commitRe, _ := regexp.Compile("^([0-9a-f]{40})$") if commit := commitRe.FindString(head); commit != "" && env.Commit == "" { env.Commit = commit + env.Date = getDate(commit) } return env }