Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Not importable package #183

Open
AlgorithmEnigma opened this issue May 30, 2023 · 1 comment
Open

Not importable package #183

AlgorithmEnigma opened this issue May 30, 2023 · 1 comment

Comments

@AlgorithmEnigma
Copy link

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
Copy link
Contributor

zxaos commented Jun 1, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants