meshery / meshery/meshkit

Duplicate error codes in meshkit library

Open
#903 0 comments 0 reactions 1 assignee View on GitHub

@parthivsaikia is already working on this.

Since Jan 8, 2026.

kind/bug
Dominant language
Go
Stars
223
Forks
225
Avg merge
7d 1h
Merged PRs (30d)
1

Description

### Current Behavior
A number of meshkit errors have duplicate error codes. e.g.

Error Code | Variable Name | File Location
-- | -- | --
meshkit-11245 | ErrAuthenticatingToRegistryCode | models/oci/error.go
  | ErrUnknownFormatCode | models/converter/error.go
  | ErrDecodeYamlCode | encoding/error.go
meshkit-11248 | ErrTaggingPackageCode | models/oci/error.go
  | ErrCompressToTarGZCode | utils/error.go
  | ErrUnmarshalSyntaxCode | encoding/error.go

### Expected Behavior
Every error should have a unique identifier code. The new errors should start from 11320.

---
### Contributor [Guides](https://docs.meshery.io/project/contributing) and [Handbook](https://meshery.io/community#handbook)
- 🛠 [Meshery Build & Release Strategy](https://docs.meshery.io/project/contributing/build-and-release)
- 📚 [Instructions for contributing to documentation](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#documentation-contribution-flow)
- Meshery documentation [site](https://docs.meshery.io/) and [source](https://github.com/meshery/meshery/tree/master/docs)
- 🎨 Wireframes and [designs for Meshery UI](https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
- 🙋🏾🙋🏼 Questions: [Discussion Forum](http://discuss.meshery.io) and [Community Slack](https://slack.meshery.io)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.