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

Terraform: fix module updates with a lockfile #3976

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

feelepxyz
Copy link
Contributor

This is the other side of #3968

This fixes module updates when there's a lockfile present. Modules are
not included in the lockfile so adding a guard to only attempt lockfile
updates for providers.

Fixed some test setup to match what the parsed files would look like.

@feelepxyz feelepxyz requested a review from a team as a code owner June 23, 2021 09:13
@@ -691,21 +691,6 @@ module "consul" {
provider "registry.terraform.io/hashicorp/aws" {
version = "3.45.0"
constraints = ">= 3.37.0, < 3.46.0"
hashes = [
"h1:LKU/xfna87/p+hl5yTTW3dvOqWJp5JEM+Dt3nnvSDvA=",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This expectation was flaking on my machine as the hash is changing

@feelepxyz feelepxyz force-pushed the feelepxyz/handle-modules-with-lockfiles branch from 47756ad to 318488d Compare June 23, 2021 09:18
This is the other side of #3968

This fixes module updates when there's a lockfile present. Modules are
not included in the lockfile so adding a guard to only attempt lockfile
updates for providers.

Fixed some test setup to match what the parsed files would look like.
@feelepxyz feelepxyz force-pushed the feelepxyz/handle-modules-with-lockfiles branch from 318488d to 44a5b08 Compare June 23, 2021 09:19
@feelepxyz feelepxyz merged commit df81fa6 into main Jun 23, 2021
@feelepxyz feelepxyz deleted the feelepxyz/handle-modules-with-lockfiles branch June 23, 2021 09:29
@thepwagner thepwagner mentioned this pull request Jun 23, 2021
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 this pull request may close these issues.

2 participants