fly-apps / terraform-provider-fly

Terraform provider for the Fly.io API
BSD 3-Clause "New" or "Revised" License
114 stars 38 forks source link

Not importable package #183

Open AlgorithmEnigma opened 1 year ago

AlgorithmEnigma commented 1 year ago

I am attempting to create a Pulumi adapter based on the Terraform provider however I get the issue: import "github.com/fly-apps/terraform-provider-fly" is a program, not an importable package

I am not a Go programmer so I am unsure but I believe that it's because the main.go package is called main, is this something that could be fixed so it would be importable?

zxaos commented 1 year ago

Hi @AlgorithmEnigma - I'm not familiar with how exactly the Pulumi adapters work, but you could try importing using import "github.com/fly-apps/terraform-provider-fly/internal/provider" which is just the provider code and not the executable wrapper.