From 15daa4005c90a6c41b4b522fefdac53508cff588 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Wed, 24 Jan 2024 10:51:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8C=20remove=20slow=20github=20caching?= =?UTF-8?q?=20(#3093)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ๐ŸŒ remove slow github caching * ๐Ÿงน small go change to trigger the test --- .github/workflows/pr-test-lint.yml | 10 ---------- providers/os/resources/cpe/pkg2cpe.go | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr-test-lint.yml b/.github/workflows/pr-test-lint.yml index 5c0a07f655..a996c6b38c 100644 --- a/.github/workflows/pr-test-lint.yml +++ b/.github/workflows/pr-test-lint.yml @@ -71,16 +71,6 @@ jobs: go-version: ">=${{ env.golang-version }}" cache: false - # https://github.com/actions/cache/blob/main/examples.md#go---modules - - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - name: 'Set up gcloud CLI' uses: 'google-github-actions/setup-gcloud@v2' diff --git a/providers/os/resources/cpe/pkg2cpe.go b/providers/os/resources/cpe/pkg2cpe.go index b1452d2fb1..2fa19b4517 100644 --- a/providers/os/resources/cpe/pkg2cpe.go +++ b/providers/os/resources/cpe/pkg2cpe.go @@ -6,8 +6,9 @@ package cpe import ( "errors" "fmt" - "github.com/facebookincubator/nvdtools/wfn" "strings" + + "github.com/facebookincubator/nvdtools/wfn" ) func NewPackage2Cpe(vendor, name, version, release, arch string) (string, error) {