Skip to content

Commit

Permalink
fix: golangci-lint issues (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb authored Oct 6, 2023
1 parent ffce36b commit 2e49a87
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
# renovate: datasource=go depName=github.com/golangci/golangci-lint
version: v1.54.2
args: --timeout 5m
only-new-issues: true
yaml-lint:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion api/stas/v1alpha1/containerimagescan_types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1alpha1

import (
"github.com/distribution/distribution/reference"
"github.com/distribution/reference"
"github.com/opencontainers/go-digest"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/statnett/image-scanner-operator
go 1.20

require (
github.com/distribution/distribution v2.8.3+incompatible
github.com/distribution/reference v0.5.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/mitchellh/mapstructure v1.5.0
github.com/onsi/ginkgo/v2 v2.12.1
Expand Down Expand Up @@ -31,7 +31,6 @@ require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chigopher/pathlib v1.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/distribution/distribution v2.8.3+incompatible h1:RlpEXBLq/WPXYvBYMDAmBX/SnhD67qwtvW/DzKc8pAo=
github.com/distribution/distribution v2.8.3+incompatible/go.mod h1:EgLm2NgWtdKgzF9NpMzUKgzmR7AMmb0VQi2B+ZzDRjc=
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
github.com/emicklei/go-restful/v3 v3.10.2 h1:hIovbnmBTLjHXkqEBUz3HGpXZdM7ZrE9fJIZIqlJLqE=
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/stas/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package stas

import (
"github.com/distribution/distribution/reference"
"github.com/distribution/reference"
corev1 "k8s.io/api/core/v1"

stasv1alpha1 "github.com/statnett/image-scanner-operator/api/stas/v1alpha1"
Expand Down

0 comments on commit 2e49a87

Please sign in to comment.