Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-1001

Use standard library errors package

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • WMCO 9.0.0
    • None
    • None
    • 2
    • False
    • None
    • False
    • WINC - Sprint 234

      Description

      The openshift/windows-machine-config-operator has been using an archived library to handle errors: https://github.com/pkg/errors

      We should be using the standard library https://pkg.go.dev/errors, for a multitude of reasons.

      Engineering details

      errors.Wrapf(err,"foo") should be replaced with fmt.Errorf("foo: [%w]",err)
      errors.Wrap can be replaced with errors.New

      Acceptance Criteria

      • github.com/pkg/errors is no longer used

            aliryan Alina Ryan
            rh-ee-ssoto Sebastian Soto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: