Skip to content

refactor(platform): use pkg/utils/errors instead of the standard errors package - #2147

Merged
mbrandenburger merged 1 commit into
hyperledger-labs:mainfrom
entrepreneurme:refactor/std-errors-to-pkg-utils
Oct 19, 2026
Merged

mbrandenburger merged 1 commit into
hyperledger-labs:mainfrom
entrepreneurme:refactor/std-errors-to-pkg-utils

Conversation

@entrepreneurme

@entrepreneurme entrepreneurme commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Seven platform files imported the standard errors package. The ones that only need Join or Is now use pkg/utils/errors.
  • errors.As stays on the standard library. Those two imports are renamed from errors2 to stderrors.
  • git grep finds no remaining standard errors import in non-test platform files outside vfsdk.

Fixes #2136

Test plan

  • go vet ./platform/... ./pkg/...
  • go test for common utils, view sdk dig, storage drivers, and the fabric sqlite and common SQL packages
  • Postgres driver tests need Docker, which is not available here
  • Confirm CI is green

Made with Cursor

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Hey @entrepreneurme 👋 thanks for the PR!
I'm your friendly PR Helper Bot 🤖 and I'll be riding shotgun on this one, keeping track of your PR's status to help you get it approved and merged.

This comment updates automatically as you push changes -- think of it as your PR's live scoreboard!
Here's the latest:


PR Checks

✅ DCO Sign-off -- All commits have valid sign-offs. Nice work!


❌ GPG Signature -- Heads up! The following commits don't have a verified GPG signature:

  • 49e8e0f refactor: use pkg/utils/errors instead of the standard errors package

You'll need to sign your commits with GPG (e.g. git commit -S). See the Signing Guide for a step-by-step walkthrough.


✅ Merge Conflicts -- No merge conflicts detected. Smooth sailing!


✅ Issue Link -- Linked to #2136 (assigned to you).


⏳ All checks must pass before this PR can be reviewed. You've got this!

@github-actions github-actions Bot added the status: needs revision The pull request requires changes from the author before it can be reviewed or merged label Oct 17, 2026
@mbrandenburger
mbrandenburger self-requested a review October 19, 2026 07:42
@mbrandenburger mbrandenburger added this to the 26Q4 milestone Oct 19, 2026
@github-actions github-actions Bot added status: needs review The pull request is ready for maintainer review and removed status: needs revision The pull request requires changes from the author before it can be reviewed or merged labels Oct 19, 2026
@mbrandenburger mbrandenburger changed the title refactor: use pkg/utils/errors instead of the standard errors package refactor(platform): use pkg/utils/errors instead of the standard errors package Oct 19, 2026
@mbrandenburger
mbrandenburger enabled auto-merge (squash) October 19, 2026 07:47
The platform packages that only needed Join, Is, or As now follow the
project error convention. As stays on the standard library under the
stderrors alias.

Fixes hyperledger-labs#2136

Signed-off-by: Ujjwal Khandelwal <ujjwal.khandelwal@yahoo.com>
@mbrandenburger
mbrandenburger force-pushed the refactor/std-errors-to-pkg-utils branch from f3ff4fb to 49e8e0f Compare October 19, 2026 07:47
@github-actions github-actions Bot added status: needs revision The pull request requires changes from the author before it can be reviewed or merged and removed status: needs review The pull request is ready for maintainer review labels Oct 19, 2026

@mbrandenburger mbrandenburger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @entrepreneurme for your help.

@mbrandenburger
mbrandenburger merged commit 57bdcdd into hyperledger-labs:main Oct 19, 2026
rgowrishankar pushed a commit to rgowrishankar/fabric-smart-client that referenced this pull request Oct 20, 2026
…rs package (hyperledger-labs#2147)

The platform packages that only needed Join or Is now pkg/utils/errors; 
As stays on the standard library under the stderrors alias.

Fixes hyperledger-labs#2136

Signed-off-by: Ujjwal Khandelwal <ujjwal.khandelwal@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs revision The pull request requires changes from the author before it can be reviewed or merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(platform): use pkg/utils/errors instead of the standard errors package

2 participants