Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use registryHTTPResponseToError on /tags/list failure
We should have been doing that from the start, in order to get server-reported errors correctly. Also start using fmt.Errorf("...: %w") to get closer to Go mainstream, now that this exists. NOTE: This can break existing clients, notably (skopeo inspect) which greps the error string for 401 and 403. Sadly we don't have precise records of the original failures, so there's no way to test; we'll just have to break them and see. Signed-off-by: Miloslav Trmač <[email protected]>