Skip to content

Commit 05841d4

Browse files
committed
internal/{frontend,worker}: insert GoModPath for VersionMap
FetchAndUpdateState in internal/frontend and internal/worker now insert the GoModPath field on VersionMap. Updates golang/go#36811 Updates golang/go#37002 Updates golang/go#37106 Change-Id: Idfce6d685d24d915608acc1748a84b9db5312ae4 Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/751270 CI-Result: Cloud Build <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent a5b5fa4 commit 05841d4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/frontend/fetch.go

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func FetchAndUpdateState(ctx context.Context, modulePath, requestedVersion strin
4848
ModulePath: fr.ModulePath,
4949
RequestedVersion: fr.RequestedVersion,
5050
ResolvedVersion: fr.ResolvedVersion,
51+
GoModPath: fr.GoModPath,
5152
Status: fr.Status,
5253
Error: errMsg,
5354
}

internal/worker/fetch.go

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ func updateVersionMapAndDeleteModulesWithErrors(ctx context.Context, db *postgre
176176
RequestedVersion: ft.RequestedVersion,
177177
ResolvedVersion: ft.ResolvedVersion,
178178
Status: ft.Status,
179+
GoModPath: ft.GoModPath,
179180
Error: errMsg,
180181
}
181182
start := time.Now()

0 commit comments

Comments
 (0)