update to go 1.19

UBI and the oldest support Fedora (37) now all have go 1.19, so we are
cleared to switch.

gofmt now reformats comments in certain cases, so that explains the formatting
changes in this commit.
See https://go.dev/doc/go1.19#go-doc

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2023-07-21 13:34:22 +02:00 committed by Ondřej Budai
parent 89274e538d
commit cac9327b44
14 changed files with 54 additions and 45 deletions

View file

@ -86,7 +86,8 @@ func NewAPIResponse(body []byte) (*APIResponse, error) {
// apiError converts an API error 400 JSON to a status response
//
// The response body should alway be of the form:
// {"status": false, "errors": [{"id": ERROR_ID, "msg": ERROR_MESSAGE}, ...]}
//
// {"status": false, "errors": [{"id": ERROR_ID, "msg": ERROR_MESSAGE}, ...]}
func apiError(resp *http.Response) (*APIResponse, error) {
defer resp.Body.Close()

View file

@ -8,18 +8,19 @@
// not from other functions.
//
// NOTE: The compose fail/finish tests use fake composes so the following are not
// fully tested here:
//
// * image download
// * log download
// * logs archive download
// * cancel waiting compose
// * cancel running compose
// fully tested here:
//
// In addition osbuild-composer has not implemented:
// * image download
// * log download
// * logs archive download
// * cancel waiting compose
// * cancel running compose
//
// * compose/results
// * compose/metadata
// In addition osbuild-composer has not implemented:
//
// * compose/results
// * compose/metadata
package client
import (

View file

@ -55,7 +55,7 @@ func GetProjectsInfoV0(socket *http.Client, projNames string) ([]rpmmd.PackageIn
return list.Projects, nil, nil
}
//DepsolveProjectsV0 returns the dependencies of the names projects
// DepsolveProjectsV0 returns the dependencies of the names projects
func DepsolveProjectsV0(socket *http.Client, projNames string) ([]rpmmd.PackageSpec, *APIResponse, error) {
body, resp, err := GetRaw(socket, "GET", "/api/v0/projects/depsolve/"+projNames)
if resp != nil || err != nil {