Skip to content

Commit

Permalink
Update credential-cache messages to user (#582)
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Sirish A Yelgundhalli <[email protected]>
  • Loading branch information
adityasaky authored Oct 21, 2024
1 parent 51907a6 commit 02af74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cache/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *Service) GetCredential(req api.GetCredentialRequest, resp *api.Credenti
fmt.Println("Get", req.ID)
i, ok := s.store.Get(req.ID)
if ok {
fmt.Println("found cred!")
fmt.Println("gitsign-credential-cache: found credential!")
cred, ok := i.(*api.Credential)
if !ok {
return fmt.Errorf("unknown credential type %T", i)
Expand All @@ -71,7 +71,7 @@ func (s *Service) GetCredential(req api.GetCredentialRequest, resp *api.Credenti
}

// If nothing is in the cache, fallback to interactive flow.
fmt.Println("no cred found, going through intereractive flow...")
fmt.Println("gitsign-credential-cache: no cached credential found, falling back to interactive flow...")
idf := fulcio.NewIdentityFactory(os.Stdin, os.Stdout)
id, err := idf.NewIdentity(ctx, req.Config)
if err != nil {
Expand Down

0 comments on commit 02af74d

Please sign in to comment.