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

Feat: add support for Provider-defined functions #200

Merged
merged 11 commits into from
Sep 29, 2024

Conversation

TomerHeber
Copy link
Collaborator

@TomerHeber TomerHeber commented Sep 24, 2024

  1. Updated to go 1.23.
  2. Upgraded dependencies.
  3. Added a test for provider function.
  4. Fixed google tests for older versions (removed tests).
  5. Removed current linter, replacing with golang lint ci.

fixes #199

@@ -0,0 +1,33 @@
linters:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new linter... the older one is longer active...


require (
github.com/bmatcuk/doublestar v1.3.4
github.com/hashicorp/go-hclog v1.5.0
github.com/hashicorp/hcl/v2 v2.16.2
github.com/hashicorp/hcl/v2 v2.22.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgraded the versions to support provider functions.

- google_beta_resource_skip
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this test from older providers where setting a specific provider version doesn't work...

@@ -3,7 +3,8 @@
terraform {
required_providers {
google = {
source = "hashicorp/google"
source = "hashicorp/google"
version = "4.84.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to lock the version... this is because the 'labels' was removed from beta state (now in main version).
therefore, need to lock to a version where this was beta.

}

output "hashicups_ecr_repository_account_id" {
value = provider::aws::arn_parse(aws_ecr_repository.hashicups.arn).account_id
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provider function...

terratag.go Show resolved Hide resolved
@TomerHeber TomerHeber requested a review from sagydr September 26, 2024 18:23
@yaronya yaronya removed their request for review September 29, 2024 07:49
@TomerHeber TomerHeber merged commit c131667 into master Sep 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Provider-defined functions
2 participants