Merge pull request #23658 from hashicorp/mildwonkey/b-terrafrom-bundle
terraform-bundle: fix panic with addrs.Provider
This commit is contained in:
commit
2f36a82091
4
Makefile
4
Makefile
|
@ -39,10 +39,12 @@ testacc: fmtcheck generate
|
|||
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -mod=vendor -timeout 120m
|
||||
|
||||
# e2etest runs the end-to-end tests against a generated Terraform binary
|
||||
# and a generated terraform-bundle binary.
|
||||
# The TF_ACC here allows network access, but does not require any special
|
||||
# credentials since the e2etests use local-only providers such as "null".
|
||||
# credentials.
|
||||
e2etest: generate
|
||||
TF_ACC=1 go test -mod=vendor -v ./command/e2etest
|
||||
TF_ACC=1 go test -mod=vendor -v ./tools/terraform-bundle/e2etest
|
||||
|
||||
test-compile: fmtcheck generate
|
||||
@if [ "$(TEST)" = "./..." ]; then \
|
||||
|
|
|
@ -182,7 +182,7 @@ func (c *PackageCommand) Run(args []string) int {
|
|||
} else { //attempt to get from the public registry if not found locally
|
||||
c.ui.Output(fmt.Sprintf("- Checking for provider plugin on %s...",
|
||||
releaseHost))
|
||||
_, _, err := installer.Get(addrs.Provider{Type: name}, constraint)
|
||||
_, _, err := installer.Get(addrs.NewLegacyProvider(name), constraint)
|
||||
if err != nil {
|
||||
c.ui.Error(fmt.Sprintf("- Failed to resolve %s provider %s: %s", name, constraint, err))
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue