From b9d4260b81cd6916126c2f820673c0e6c7ec7320 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Wed, 4 May 2022 23:30:13 +0200 Subject: [PATCH] Add deps to golangci-lint (#10659) In order to make the synced version of golangci-lint workflow handle the CGO in snmp_exporter/generator, add some package dependencies. Signed-off-by: SuperQ --- .github/workflows/golangci-lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 662ea3b6e..136d7d4b9 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -21,6 +21,9 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.18.x + - name: Install snmp_exporter/generator dependencies + run: sudo apt-get update && sudo apt-get -y install libsnmp-dev + if: github.repository == 'prometheus/snmp_exporter' - name: Lint uses: golangci/golangci-lint-action@v3.1.0 with: