Skip to content
Merged
Show file tree
Hide file tree
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 .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
version: v2.11
version: v2.13
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ linters:
- godox
- goheader
- gomoddirectives
- gomodguard
- gomodguard_v2
- goprintffuncname
- gosec
- gosmopolitan
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestCall(t *testing.T) {
synthErr error
}{
{"normal", []byte("Hi\n"), nil},
{"normal", nil, errors.New("Superbad HTTP Error!")},
{"http-error", nil, errors.New("Superbad HTTP Error!")},
} {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
Expand Down
7 changes: 4 additions & 3 deletions functions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ import (

func TestRepoFromString(t *testing.T) {
t.Parallel()
const cosignRepoURL = "https://github.com/sigstore/cosign"
for _, tc := range []struct {
name string
sut string
expect string
mustErr bool
}{
{"reposlug", "sigstore/cosign", "https://github.com/sigstore/cosign", false},
{"noscheme", "github.com/sigstore/cosign", "https://github.com/sigstore/cosign", false},
{"reposlug", "sigstore/cosign", cosignRepoURL, false},
{"noscheme", "github.com/sigstore/cosign", cosignRepoURL, false},
{"norepo", "github.com/sigstore", "", true},
{"locator", "git+https://github.com/sigstore/cosign@main", "https://github.com/sigstore/cosign", false},
{"locator", "git+https://github.com/sigstore/cosign@main", cosignRepoURL, false},
} {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
Expand Down