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

fix deprecation of NewDigestFromHex and Digest.Hex #83

Merged
merged 2 commits into from
May 25, 2023

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Nov 8, 2022

Both of these were deprecated in 55f6758 (#33), but the format of the GoDoc comments didn't follow the correct format, which causes them not being picked up by tools as "deprecated".

This patch:

  • Fixes the comments to be in the right format.
  • Updates uses in the codebase to use the alternatives.

Also gofmt'd the code (first commit)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Both of these were deprecated in 55f6758, but
the format of the GoDoc comments didn't follow the correct format, which causes
them not being picked up by tools as "deprecated".

This patch:

- Fixes the comments to be in the right format.
- Updates uses in the codebase to use the alternatives.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Member Author

@vbatts @AkihiroSuda @stevvooe ptal

Err: digest. ErrDigestInvalidLength,
Err: digest.ErrDigestInvalidLength,
Copy link
Member Author

Choose a reason for hiding this comment

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

Was surprised this actually worked, but apparently spaces are accepted (TIL!)

@stevvooe stevvooe merged commit 1aab4ea into opencontainers:master May 25, 2023
@thaJeztah thaJeztah deleted the fix_deprecated_comments branch May 25, 2023 19:58
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.

3 participants