diff --git a/lib/datasource/go/digest.spec.ts b/lib/datasource/go/digest.spec.ts
index 0da89888e90f36460dc63cb10dfce8797566c35f..1439970baa663f6971d69e38d5d71c0175416fba 100644
--- a/lib/datasource/go/digest.spec.ts
+++ b/lib/datasource/go/digest.spec.ts
@@ -1,7 +1,7 @@
 import * as httpMock from '../../../test/http-mock';
 import { mocked } from '../../../test/util';
 import * as _hostRules from '../../util/host-rules';
-import { getDigest } from './digest';
+import { getDigest } from '.';
 
 jest.mock('../../util/host-rules');
 
diff --git a/lib/datasource/go/index.ts b/lib/datasource/go/index.ts
index dcc924c25ff9ca865dfea7be808194edd1bf5928..2e805c7197cd5f6f76c56fe7c6ce571b3920b213 100644
--- a/lib/datasource/go/index.ts
+++ b/lib/datasource/go/index.ts
@@ -4,6 +4,8 @@ import * as goproxy from './releases-goproxy';
 
 export { id } from './common';
 
+export { getDigest } from './digest';
+
 export const customRegistrySupport = false;
 
 export function getReleases(