Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache: fix warning #1162

Merged
merged 1 commit into from May 24, 2020
Merged

cache: fix warning #1162

merged 1 commit into from May 24, 2020

Conversation

jirfag
Copy link
Member

@jirfag jirfag commented May 23, 2020

Fix warning about not existing cache file.

Fixes: #925

Fix warning about not existing cache file.

Fixes: #925
@@ -81,7 +81,7 @@ func (c *Cache) fileName(id [HashSize]byte, key string) string {
var errMissing = errors.New("cache entry not found")

func IsErrMissing(err error) bool {
return err == errMissing
return errors.Cause(err) == errMissing

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

thank you, you are right. We will fix when will be replacing pkg/errors by errors. I guess it can happen with go1.15.

@jirfag jirfag merged commit fd0524f into master May 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/fix-cache-warning branch May 24, 2020 07:19
@ldez ldez added this to the v1.28 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frequent "failed to get data from low-level cache" warning
4 participants