mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-16 08:10:02 +00:00
dbf9188792
```bash GO111MODULE=on go get github.com/hashicorp/terraform@pluginsdk-v0.12-early7 GO111MODULE=on go mod vendor GO111MODULE=on go mod tidy ```
14 lines
367 B
Go
14 lines
367 B
Go
package earlyconfig
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform-config-inspect/tfconfig"
|
|
"github.com/hashicorp/terraform/tfdiags"
|
|
)
|
|
|
|
// LoadModule loads some top-level metadata for the module in the given
|
|
// directory.
|
|
func LoadModule(dir string) (*tfconfig.Module, tfdiags.Diagnostics) {
|
|
mod, diags := tfconfig.LoadModule(dir)
|
|
return mod, wrapDiagnostics(diags)
|
|
}
|