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:
parent
89274e538d
commit
cac9327b44
14 changed files with 54 additions and 45 deletions
|
|
@ -20,6 +20,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/pkg/jobqueue"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/internal/jsondb"
|
||||
|
|
@ -566,8 +567,8 @@ func (q *fsJobQueue) removePendingJob(id uuid.UUID) {
|
|||
// jobMatchesCriteria returns true if it matches criteria defined in parameters
|
||||
//
|
||||
// Criteria:
|
||||
// - the job's type is one of the acceptedJobTypes
|
||||
// - the job's channel is one of the acceptedChannels
|
||||
// - the job's type is one of the acceptedJobTypes
|
||||
// - the job's channel is one of the acceptedChannels
|
||||
func jobMatchesCriteria(j *job, acceptedJobTypes []string, acceptedChannels []string) bool {
|
||||
contains := func(slice []string, str string) bool {
|
||||
for _, item := range slice {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue