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

resource github_repository: etag: DiffSuppressFunc is for suppressing differences #910

Closed
eduardchai opened this issue Sep 23, 2021 · 12 comments · Fixed by #911
Closed

resource github_repository: etag: DiffSuppressFunc is for suppressing differences #910

eduardchai opened this issue Sep 23, 2021 · 12 comments · Fixed by #911

Comments

@eduardchai
Copy link

Error with github_repository in v4.15.0.

Error: Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:

1 error occurred:
	* resource github_repository: etag: DiffSuppressFunc is for suppressing differences between config and state representation. There is no config for computed-only field, nothing to compare.

Provider Version

v4.15

Terraform Version

v0.13.5

Affected Resource(s)

  • github_repository

Expected Behavior

Run without error

Actual Behavior

Error: Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:

1 error occurred:
	* resource github_repository: etag: DiffSuppressFunc is for suppressing differences between config and state representation. There is no config for computed-only field, nothing to compare.
@creack
Copy link

creack commented Sep 23, 2021

Getting the same error with v1.0.7, reverting the github provider to v4.14 "fixed" the issue.

@james-callahan
Copy link
Contributor

Looks like this was #909

@viniciusps
Copy link

We are also facing the same issue here:

Error: Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:

1 error occurred:
	* resource github_repository: etag: DiffSuppressFunc is for suppressing differences between config and state representation. There is no config for computed-only field, nothing to compare.

TF version: 0.14.9
Github provider version: v4.15.0

@paulalex
Copy link

paulalex commented Sep 23, 2021

My builds have been failing for this since this morning as well.

Error: Internal validation of the provider failed! This is always a bug with the provider itself, and not a user issue. Please report this bug:

1 error occurred:
resource github_repository: etag: DiffSuppressFunc is for suppressing differences between config and state representation. There is no config for computed-only field, nothing to compare.

@fatbasstard
Copy link

Same error here since this morning

skorfmann added a commit to cdktf/cdktf-repository-manager that referenced this issue Sep 23, 2021
skorfmann added a commit to cdktf/cdktf-repository-manager that referenced this issue Sep 23, 2021
skorfmann added a commit to cdktf/cdktf-repository-manager that referenced this issue Sep 23, 2021
@ChristophShyper
Copy link

ChristophShyper commented Sep 23, 2021

Please add 👍 instead of putting pointless comments. It's obvious it breaks for everybody that uses newest provider version.

@husain-aljamri
Copy link

I just though I might add this comment: I don't actually manage any github resources in my TF config. The only thing I'm using the Github provider for is the datasource github_ip_ranges, and I still get this error on every terraform plan run. This only showed up this morning, I didn't have this issue earlier this week.

ArchiFleKs added a commit to particuleio/terraform-kubernetes-addons that referenced this issue Sep 23, 2021
@w0rmr1d3r
Copy link

It's happening with the provider on other versions:

    github = {
      source  = "integrations/github"
      version = "~> 4.3"
    }

@ChristophShyper
Copy link

ChristophShyper commented Sep 23, 2021

It's happening with the provider on other versions:

    github = {
      source  = "integrations/github"
      version = "~> 4.3"
    }

Please check your terraform init output and see which exactly version is being used.
"~> 4.3" will point to 4.15.

@w0rmr1d3r
Copy link

w0rmr1d3r commented Sep 23, 2021

You are right @ChristophShyper !
It's pointing to 4.15.
Sorry for generating any noise :shame-on-me:
As @creack said, fixing the version to 4.14 solves the issue until a fix is done.

@leighmhart
Copy link

same with 4.15 - pinning to 4.14 for now.

Error: Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:

1 error occurred:
	* resource github_repository: etag: DiffSuppressFunc is for suppressing differences between config and state representation. There is no config for computed-only field, nothing to compare.
	```
	
	

@nhumphreys
Copy link

nhumphreys commented Sep 23, 2021

Even though the issue is since resolved

I have pinned to 4.14

required_providers {
    github = {
      source  = "integrations/github"
      version = "4.14"
    }
  }

nevertheless i am sill havew the same issue in my CI.

│ Error: Internal validation of the provider failed! This is always a bug
│ with the provider itself, and not a user issue. Please report
│ this bug:
│ 
│ 1 error occurred:
│ 	* resource github_repository: etag: DiffSuppressFunc is for suppressing differences between config and state representation. There is no config for computed-only field, nothing to compare.

noticed also in the provider resulution in init is bringing 4.15 from terraform/github

Initializing provider plugins...
- Finding hashicorp/aws versions matching "3.58.0"...
- Finding integrations/github versions matching "4.14.0"...
- Finding latest version of hashicorp/github...
- Installing hashicorp/aws v3.58.0...
- Installed hashicorp/aws v3.58.0 (signed by HashiCorp)
- Installing integrations/github v4.14.0...
- Installed integrations/github v4.14.0 (signed by a HashiCorp partner, key ID 38027F80D7FD5FB2)
- Installing hashicorp/github v4.15.0...
- Installed hashicorp/github v4.15.0 (signed by HashiCorp)

Any thoughts why this is happening?

Hi @kanekotic We've had the same problem, and perhaps the cause is the same for you...

If you have references to the github provider in modules those modules may also need pinning to the 4.14 version.

For us we had to add the following to all (well most) sub module usage to ensure the right version is used everywhere we need it.

terraform {
  required_providers {
    github = {
      source  = "integrations/github"
      version = "4.14.0"
    }
  }
}

The Terraform documentation mentions in a note the following:

Note: Only provider configurations are inherited by child modules, not provider source or version requirements. Each module must declare its own provider requirements. This is especially important for non-HashiCorp providers.

ref that helped our discovery:
#696 (comment)

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

Successfully merging a pull request may close this issue.