Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 15e7e79

Browse files
authored
Merge pull request #514 from ChrisHines/fix-non-git
Store version map in cache on success (instead of failure) to retrieve it.
2 parents fbc17ea + f3a0479 commit 15e7e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gps/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func (sg *sourceGateway) require(ctx context.Context, wanted sourceState) (errSt
464464
return err
465465
})
466466

467-
if err != nil {
467+
if err == nil {
468468
sg.cache.storeVersionMap(pvl, true)
469469
}
470470
case sourceHasLatestLocally:

0 commit comments

Comments
 (0)