diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4c60b589..930f5da1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,6 +18,5 @@ jobs: version: v1.31 skip-build-cache: true skip-pkg-cache: true - args: --build-tags "containers_image_openpgp containers_image_ostree" - + args: --build-tags "containers_image_openpgp containers_image_ostree" --skip-dirs internal/pkg/staticfiles diff --git a/Makefile b/Makefile index 4e57863c..8ef05064 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ $(TOOLS_DIR): # Lint lint: @echo Running golangci-lint... - @$(GOLANGCI_LINT) run --build-tags "$(WW_BUILD_GO_BUILD_TAGS)" ./... + @$(GOLANGCI_LINT) run --build-tags "$(WW_BUILD_GO_BUILD_TAGS)" --skip-dirs internal/pkg/staticfiles ./... debian: all diff --git a/internal/pkg/staticfiles/static.go b/internal/pkg/staticfiles/static.go index a7499172..ac9a4741 100644 --- a/internal/pkg/staticfiles/static.go +++ b/internal/pkg/staticfiles/static.go @@ -98,7 +98,6 @@ func getResource(path string) ([]byte, error) { // // Return the available resources in a slice. // -//nolint:unused,deadcode func getResources() []EmbeddedResource { i := 0 ret := make([]EmbeddedResource, len(RESOURCES))