Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

fix: added back handling no credentials error #74

Merged
merged 2 commits into from
Jun 8, 2023
Merged

fix: added back handling no credentials error #74

merged 2 commits into from
Jun 8, 2023

Conversation

wangxiaoxuan273
Copy link
Collaborator

Fixing the error of PR #68

Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2023

Codecov Report

Merging #74 (963e70f) into main (ab5d0bd) will increase coverage by 0.13%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
+ Coverage   82.27%   82.41%   +0.13%     
==========================================
  Files           6        6              
  Lines         378      381       +3     
==========================================
+ Hits          311      314       +3     
  Misses         45       45              
  Partials       22       22              
Impacted Files Coverage Δ
native_store.go 87.75% <100.00%> (+0.79%) ⬆️

@@ -67,6 +68,9 @@ func (ns *nativeStore) Get(ctx context.Context, serverAddress string) (auth.Cred
var cred auth.Credential
out, err := ns.exec.Execute(ctx, strings.NewReader(serverAddress), "get")
if err != nil {
if err.Error() == errCredentialsNotFoundMessage {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add back the original comment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added back the comment

Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shizhMSFT shizhMSFT merged commit 323e44c into oras-project:main Jun 8, 2023
@wangxiaoxuan273 wangxiaoxuan273 mentioned this pull request Jun 19, 2023
3 tasks
@wangxiaoxuan273 wangxiaoxuan273 deleted the no-credentials branch June 20, 2023 06:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants