mirror of https://github.com/hashicorp/terraform
commit
05f21cdff8
@ -1,16 +0,0 @@
|
||||
package terraform
|
||||
|
||||
const errPluginInit = `
|
||||
Plugins are external binaries that Terraform uses to access and manipulate
|
||||
resources. The configuration provided requires plugins which can't be located,
|
||||
don't satisfy the version constraints, or are otherwise incompatible.
|
||||
|
||||
Terraform automatically discovers provider requirements from your
|
||||
configuration, including providers used in child modules. To see the
|
||||
requirements and constraints, run "terraform providers".
|
||||
|
||||
%s
|
||||
|
||||
Plugin reinitialization required. Please address the above error(s) and run
|
||||
"terraform init".
|
||||
`
|
||||
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "==> Checking that code complies with static analysis requirements..."
|
||||
# Skip legacy code which is frozen, and can be removed once we can refactor the
|
||||
# remote backends to no longer require it.
|
||||
skip="internal/legacy|backend/remote-state/"
|
||||
|
||||
# Skip generated code for protobufs.
|
||||
skip=$skip"|internal/planproto|internal/tfplugin5|internal/tfplugin6"
|
||||
|
||||
packages=$(go list ./... | egrep -v ${skip})
|
||||
|
||||
# We are skipping style-related checks, since terraform intentionally breaks
|
||||
# some of these. The goal here is to find issues that reduce code clarity, or
|
||||
# may result in bugs.
|
||||
staticcheck -checks 'all,-ST*' ${packages}
|
||||
Loading…
Reference in new issue