chore: README update demo and Error Fix (#126)

* docs: Update README with demo gif

* fix: Proxy remove dependency on interaction

* fix: Update demo gif width

* Update docs/demo/pmg-intro.tape

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com>

* fix: PMG demo

---------

Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Abhisek Datta
2026-01-18 16:00:37 +05:30
committed by GitHub
co-authored by Copilot
parent 6a3821d44a
commit edfdd543e0
16 changed files with 163 additions and 38 deletions
+17 -10
View File
@@ -4,44 +4,51 @@ import (
"github.com/safedep/pmg/usefulerror"
)
const (
errDependencyResolutionFailed = "DependencyResolutionFailed"
errPackageParseFailed = "PackageParseFailed"
errPackageAuthorNotFound = "PackageAuthorNotFound"
errGitHubRateLimitExceeded = "GitHubRateLimitExceeded"
)
var (
ErrPackageNotFound = usefulerror.Useful().
WithCode("package_not_found").
WithCode(usefulerror.ErrCodeNotFound).
WithHumanError("The requested package could not be found.").
WithHelp("Please check the package name and try again.")
ErrFailedToFetchPackage = usefulerror.Useful().
WithCode("fetch_failed").
WithCode(usefulerror.ErrCodeNetwork).
WithHumanError("Failed to retrieve the requested package.").
WithHelp("Check your network connection and try again. If the problem persists, the package repository may be temporarily unavailable.").
WithHelp("Check your network connection and try again.").
Msg("failed to fetch package")
ErrFailedToResolveVersion = usefulerror.Useful().
WithCode("resolve_version_failed").
WithCode(usefulerror.ErrCodeNetwork).
WithHumanError("Failed to resolve the requested package version.").
WithHelp("Check your network connection and try again. If the problem persists, the package repository may be temporarily unavailable.").
WithHelp("Check your network connection and try again.").
Msg("failed to resolve package version")
ErrFailedToResolveDependencies = usefulerror.Useful().
WithCode("resolve_failed").
WithCode(errDependencyResolutionFailed).
WithHumanError("Failed to resolve dependencies.").
WithHelp("Check your network connection and try again. If the problem persists, the package repository may be temporarily unavailable.").
WithHelp("Check your network connection and try again.").
Msg("failed to resolve dependencies")
ErrFailedToParsePackage = usefulerror.Useful().
WithCode("parse_failed").
WithCode(errPackageParseFailed).
WithHumanError("The package data could not be processed.").
WithHelp("The package may be corrupted or in an unsupported format.").
Msg("failed to parse package")
ErrAuthorNotFound = usefulerror.Useful().
WithCode("author_not_found").
WithCode(errPackageAuthorNotFound).
WithHumanError("The package author information could not be found.").
WithHelp("This may be due to incomplete package metadata or network issues.").
Msg("author not found")
ErrGitHubRateLimitExceeded = usefulerror.Useful().
WithCode("github_rate_limit").
WithCode(errGitHubRateLimitExceeded).
WithHumanError("GitHub API rate limit has been exceeded.").
WithHelp("Wait for the rate limit to reset or configure authentication to increase your rate limit.").
Msg("github api rate limit exceeded")