From 8e4ecd3effd47a01b2e5758cf3e52b4aff6a7306 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 30 Aug 2024 06:32:47 +0100 Subject: [PATCH] Update GitHub Actions workflows. (#633) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit b6d3a9ffa9e3ffb274476425aa9668a2956f5d09. --- .golangci.yml | 8 +++++--- Makefile | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 31a3a6c1e..6537f1c01 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,17 +10,19 @@ linters: - govet - ineffassign - lll - - megacheck + - gosimple + - staticcheck - misspell - nakedret - revive - unconvert - unused enable-all: false -run: - skip-files: +issues: + exclude-files: - schema.go - pulumiManifest.go +run: timeout: 20m linters-settings: gci: diff --git a/Makefile b/Makefile index 0b4d6a92c..dfffa008c 100644 --- a/Makefile +++ b/Makefile @@ -121,12 +121,12 @@ install_plugins: .pulumi/bin/pulumi .pulumi/bin/pulumi plugin install converter terraform 1.0.16 lint_provider: provider - cd provider && golangci-lint run -c ../.golangci.yml + cd provider && golangci-lint run --path-prefix provider -c ../.golangci.yml # `lint_provider.fix` is a utility target meant to be run manually # that will run the linter and fix errors when possible. lint_provider.fix: - cd provider && golangci-lint run -c ../.golangci.yml --fix + cd provider && golangci-lint run --path-prefix provider -c ../.golangci.yml --fix # `make provider_no_deps` builds the provider binary directly, without ensuring that # `cmd/pulumi-resource-datadog/schema.json` is valid and up to date.