diff --git a/lib/manager/gomod/update.ts b/lib/manager/gomod/update.ts index 70534dff0e5b225db709de057026615bf0771c2b..b08055df406ffb705c09c39ff97a9bfeb8376ccd 100644 --- a/lib/manager/gomod/update.ts +++ b/lib/manager/gomod/update.ts @@ -1,4 +1,3 @@ -import { DateTime } from 'luxon'; import { logger } from '../../logger'; import { Upgrade } from '../common'; @@ -57,9 +56,10 @@ export function updateDependency( { depName, lineToChange, newDigestRightSized }, 'gomod: need to update digest' ); - const currentDateTime = DateTime.local().toFormat('yyyyMMddHHmmss'); - const newValue = `v0.0.0-${currentDateTime}-${newDigestRightSized}`; - newLine = lineToChange.replace(updateLineExp, `$1$2${newValue}`); + newLine = lineToChange.replace( + updateLineExp, + `$1$2${newDigestRightSized}` + ); } else { newLine = lineToChange.replace(updateLineExp, `$1$2${upgrade.newValue}`); }