Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/go-chi/chi to v4.1.3 #396

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ require (
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
github.com/blang/semver v3.5.1+incompatible
github.com/cavaliercoder/go-rpm v0.0.0-20200122174316-8cb9fd9c31a8
github.com/go-chi/chi v4.1.2+incompatible
github.com/go-chi/chi v4.1.3+incompatible
github.com/go-openapi/errors v0.22.0
github.com/go-openapi/loads v0.22.0
github.com/go-openapi/runtime v0.28.0

Unchanged files with check annotations Beta

"fmt"
"log"
"github.com/go-chi/chi/middleware"

Check failure on line 23 in pkg/log/log.go

GitHub Actions / Analyze (go)

no required module provides package github.com/go-chi/chi/middleware; to add it:

Check failure on line 23 in pkg/log/log.go

GitHub Actions / build

missing go.sum entry for module providing package github.com/go-chi/chi/middleware (imported by github.com/sigstore/rekor/pkg/log); to add:
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
func New() types.TypeImpl {
bat := BaseAlpineType{}
bat.Kind = KIND

Check failure on line 41 in pkg/types/alpine/alpine.go

GitHub Actions / lint

bat.Kind undefined (type BaseAlpineType has no field or method Kind) (typecheck)
bat.VersionMap = VersionMap

Check failure on line 42 in pkg/types/alpine/alpine.go

GitHub Actions / lint

bat.VersionMap undefined (type BaseAlpineType has no field or method VersionMap) (typecheck)
return &bat
}
return nil, errors.New("cannot unmarshal non-Alpine types")
}
return bat.VersionedUnmarshal(apk, *apk.APIVersion)

Check failure on line 58 in pkg/types/alpine/alpine.go

GitHub Actions / lint

bat.VersionedUnmarshal undefined (type *BaseAlpineType has no field or method VersionedUnmarshal) (typecheck)
}
func (bat *BaseAlpineType) CreateProposedEntry(ctx context.Context, version string, props types.ArtifactProperties) (models.ProposedEntry, error) {
if version == "" {
version = bat.DefaultVersion()
}
ei, err := bat.VersionedUnmarshal(nil, version)

Check failure on line 65 in pkg/types/alpine/alpine.go

GitHub Actions / lint

bat.VersionedUnmarshal undefined (type *BaseAlpineType has no field or method VersionedUnmarshal) (typecheck)
if err != nil {
return nil, fmt.Errorf("fetching Intoto version implementation: %w", err)
}
u := UnmarshalTester{}
// ensure semver range parser is working
invalidSemVerRange := "not a valid semver range"
err := VersionMap.SetEntryFactory(invalidSemVerRange, u.NewEntry)

Check failure on line 63 in pkg/types/alpine/alpine_test.go

GitHub Actions / lint

u.NewEntry undefined (type UnmarshalTester has no field or method NewEntry) (typecheck)
if err == nil || VersionMap.Count() > 0 {
t.Error("invalid semver range was incorrectly added to SemVerToFacFnMap")
}
// valid semver range can be parsed
err = VersionMap.SetEntryFactory(">= 1.2.3", u.NewEntry)

Check failure on line 69 in pkg/types/alpine/alpine_test.go

GitHub Actions / lint

u.NewEntry undefined (type UnmarshalTester has no field or method NewEntry) (typecheck)
if err != nil || VersionMap.Count() != 1 {
t.Error("valid semver range was not added to SemVerToFacFnMap")
}
func New() types.TypeImpl {
bit := BaseCOSEType{}
bit.Kind = KIND

Check failure on line 41 in pkg/types/cose/cose.go

GitHub Actions / lint

bit.Kind undefined (type BaseCOSEType has no field or method Kind) (typecheck)
bit.VersionMap = VersionMap

Check failure on line 42 in pkg/types/cose/cose.go

GitHub Actions / lint

bit.VersionMap undefined (type BaseCOSEType has no field or method VersionMap) (typecheck)
return &bit
}
return nil, errors.New("cannot unmarshal non-COSE types")
}
return it.VersionedUnmarshal(in, *in.APIVersion)

Check failure on line 58 in pkg/types/cose/cose.go

GitHub Actions / lint

it.VersionedUnmarshal undefined (type BaseCOSEType has no field or method VersionedUnmarshal) (typecheck)
}
func (it *BaseCOSEType) CreateProposedEntry(ctx context.Context, version string, props types.ArtifactProperties) (models.ProposedEntry, error) {
if version == "" {
version = it.DefaultVersion()
}
ei, err := it.VersionedUnmarshal(nil, version)

Check failure on line 65 in pkg/types/cose/cose.go

GitHub Actions / lint

it.VersionedUnmarshal undefined (type *BaseCOSEType has no field or method VersionedUnmarshal) (typecheck)
if err != nil {
return nil, fmt.Errorf("fetching COSE version implementation: %w", err)
}