Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse complex variables which contain custom types. #602

Open
graza-io opened this issue Oct 28, 2024 · 1 comment
Open

Unable to parse complex variables which contain custom types. #602

graza-io opened this issue Oct 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working stale

Comments

@graza-io
Copy link
Contributor

Issue

When setting a variable with a complex type (object for example) which contains a custom type connection or notifier it fails to be parsed correctly.

Reproduction:

Create a basic mod.fp mod:

mod "local" {
  title = "test"
}

variable "complex" {
  type = object({
    db = connection.steampipe
  })
}

Attempt to list variables:

flowpipe variable list

Results in error:

Error: Internal Error: Failed to decode mod: A type specification is either a primitive type keyword (bool, number, string), complex type constructor call or Turbot custom type (connection, notifier)
@graza-io graza-io added the bug Something isn't working label Oct 28, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants