Skip to content

improve validation of provider RPC responses #31047

@abergmeier

Description

@abergmeier

Terraform Version

Terraform v1.1.9
on linux_amd64

Terraform Configuration Files

resource "buildx_instance" "foo" {
  name = "test-basic"
  driver {
    name = "docker-container"
  }
  bootstrap = true
}

resource "buildx_built" "foo" {
  file    = "testdata/Containerfile"
  context = "."
  output {
    docker {
      dest = "image.docker"
    }
  }
  instance = buildx_instance.foo.name
}

Debug Output

See https://gist.github.com/abergmeier/fe55ad498453c30c85dde63aca2aa54b

Expected Behavior

It should not have crashed.

Actual Behavior

It crashes.

Steps to Reproduce

CGO_ENABLED=0 TF_ACC=1 TF_LOG=trace go test ./internal/resources/builttest -v

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions