Skip to content

Commit b88473d

Browse files
committed
feat(test): fix tests
1 parent b2379c2 commit b88473d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/repository/image_functions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ func GetUntaggedManifests(ctx context.Context, poolSize int, acrClient api.AcrCL
227227
for resultManifests != nil && resultManifests.ManifestsAttributes != nil {
228228
manifests := *resultManifests.ManifestsAttributes
229229
for _, manifest := range manifests {
230+
manifest := manifest // capture range variable for goroutines
230231
// In the rare event that we run into an error with the errgroup while still doing the manifest acquisition loop,
231232
// we need to check if the context is done to break out of the loop early.
232233
if ctx.Err() != nil {

0 commit comments

Comments
 (0)