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 <superq@gmail.com>
pull/10640/head^2
Ben Kochie 3 years ago committed by GitHub
parent 0a30ac3f9b
commit b9d4260b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save