Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-1490

Move away from github.com/pkg/errors

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • None
    • False
    • RUN 232

      The github.com/pkg/errors package is archived upstream and as a result is no longer even nominally maintained. Since go 1.13, the standard library's fmt.Errorf() has recognized a %w specifier that can be used for wrapping errors with additional context.

      The standard library does not currently record a stack trace the first time an error is produced or wrapped, so that functionality would need to come from somewhere else if we want to keep it. If not, we should proceed with a straightforward replacement of Wrapf() with standard library wrapping using fmt.Errorf() and the %w specifier, and audit our use of errors.Cause().

              Unassigned Unassigned
              rhn-engineering-nalin Nalin Dahyabhai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: