This project is mirrored from https://:*****@github.com/hashicorp/terraform.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 01 Feb, 2022 1 commit
-
-
Sebastian Rivera authored
This change marks the decision to make the post plan the default stage where run tasks can occur. Since pre apply run tasks need internal revision, we'll remove the block that handles pre apply run tasks for now.
-
- 13 Jan, 2022 3 commits
- 07 Jan, 2022 1 commit
-
-
Brandon Croft authored
Older versions of TFE will not allow "task_stages" as an include parameter. In this case, fall back to reading the Run without additional options.
-
- 06 Jan, 2022 1 commit
-
-
Brandon Croft authored
go-tfe is pinned to branch run-tasks-integration pending API changes until run tasks support in the CLI is closer to release
-
- 04 Jan, 2022 13 commits
-
-
uturunku1 authored
-
uturunku1 authored
-
uturunku1 authored
-
Dylan Staley authored
Store website nav files (main)
-
James Bardin authored
dag: minor cleanup
-
James Bardin authored
cleanup some move graph handling
-
Alisdair McDiarmid authored
lang/funcs: Redact sensitive values from function errors
-
James Bardin authored
TransitiveReduction does not rely on having a single root, and only must be free of cycles. DepthFirstWalk and ReverseDepthFirstWalk do not do a topological sort, so if order matters TransitiveReduction must be run first.
-
James Bardin authored
These two functions were left during a refactor to ensure the old behavior of a sorted walk was still accessible in some manner. The package has since been removed from any public API, and the sorted versions are no longer called, so we can remove them.
-
James Bardin authored
Create a separate `validateMoveStatementGraph` function so that `ValidateMoves` and `ApplyMoves` both check the same conditions. Since we're not using the builtin `graph.Validate` method, because we may have multiple roots and want better cycle diagnostics, we need to add checks for self references too. While multiple roots are an error enforced by `Validate` for the concurrent walk, they are OK when using `TransitiveReduction` and `ReverseDepthFirstWalk`, so we can skip that check. Apply moves must first use `TransitiveReduction` to reduce the graph, otherwise nodes may be skipped if they are passed over by a transitive edge.
-
James Bardin authored
Changing only the index on a nested module will cause all nested moves to create cycles, since their full addresses will match both the From and To addresses. When building the dependency graph, check if the parent is only changing the index of the containing module, and prevent the backwards edge for the move.
-
James Bardin authored
Implied moves in nested modules were being skipped
-
James Bardin authored
Add a method for checking if the From and To addresses in a move statement are only changing the indexes of modules relative to the statement module. This is needed because move statement nested within the module will be able to match against both the From and To addresses, causing cycles in the order of move operations.
-
- 03 Jan, 2022 1 commit
-
-
Martin Atkins authored
There was an unintended regression in go-getter v1.5.9's GitGetter which caused us to temporarily fork that particular getter into Terraform to expedite a fix. However, upstream v1.5.10 now includes a functionally-equivalent fix and so we can heal that fork by upgrading. We'd also neglected to update the Module Sources docs when upgrading to go-getter v1.5.9 originally and so we were missing documentation about the new "depth" argument to enable shadow cloning, which I've added retroactively here along with documenting its restriction of only supporting named refs. This new go-getter release also introduces a new credentials-passing method for the Google Cloud Storage getter, and so we must incorporate that into the Terraform-level documentation about module sources.
-
- 22 Dec, 2021 5 commits
-
-
James Bardin authored
Handle move blocks within a module which is changing the index
-
James Bardin authored
Changing only the index on a nested module will cause all nested moves to create cycles, since their full addresses will match both the From and To addresses. When building the dependency graph, check if the parent is only changing the index of the containing module, and prevent the backwards edge for the move.
-
Martin Atkins authored
This paragraph is trying to say that try only works for dynamic errors and not for errors that are _not_ based on dynamic decision-making in expressions. I'm not sure if this typo was always here or if it was mistakenly "corrected" at some point, but either way the word "probably" changes the meaning of this sentence entirely, making it seem like Terraform is hedging the likelihood of a problem rather than checking exactly for one.
-
Barrett Clark authored
Cloud: Add parallelism back into the tests
-
Alisdair McDiarmid authored
refactoring: Move nested modules
-
- 21 Dec, 2021 6 commits
-
-
Dylan Staley authored
-
James Bardin authored
skip provider resolution when there are errors
-
James Bardin authored
Implied moves in nested modules were being skipped
-
James Bardin authored
Add a method for checking if the From and To addresses in a move statement are only changing the indexes of modules relative to the statement module. This is needed because move statement nested within the module will be able to match against both the From and To addresses, causing cycles in the order of move operations.
-
Alisdair McDiarmid authored
When applying module `moved` statements by iterating through modules in state, we previously required an exact match from the `moved` statement's `from` field and the module address. This permitted moving resources directly inside a module, but did not recur into module calls within those moved modules. This commit moves that exact match requirement so that it only applies to `moved` statements targeting resources. In turn this allows nested modules to be moved.
-
Laura Pacilio authored
Update taint command page to make alternative clearer
-
- 20 Dec, 2021 4 commits
-
-
Barrett Clark authored
As the cloud e2e tests evolved some common patters became apparent. This standardizes and consolidates the patterns into a common test runner that takes the table tests and runs them in parallel. Some tests also needed to be converted to utilize table tests.
-
Laura Pacilio authored
-
Laura Pacilio authored
-
Dylan Staley authored
Update make website workflow
-
- 17 Dec, 2021 5 commits
-
-
Martin Atkins authored
Previously we would only ever add new lock entries or update existing ones. However, it's possible that over time a module may _cease_ using a particular provider, at which point we ought to remove it from the lock file so that operations won't fail when seeing that the provider cache directory is inconsistent with the lock file. Now the provider installer (EnsureProviderVersions) will remove any lock file entries that relate to providers not included in the given requirements, which therefore makes the resulting lock file properly match the set of packages the installer wrote into the cache. This does potentially mean that someone could inadvertently defeat the lock by removing a provider dependency, running "terraform init", then undoing that removal, and finally running "terraform init" again. However, that seems relatively unlikely compared to the likelihood of removing a provider and keeping it removed, and in the event it _did_ happen the changes to the lock entry for that provider would be visible in the diff of the provider lock file as usual, and so could be noticed in code review just as for any other change to dependencies.
-
James Bardin authored
Apply graph failure handling
-
James Bardin authored
Apply should not return a nil state to be persisted.
-
James Bardin authored
errors from building during apply were lost
-
James Bardin authored
Ignore unexpanded paths when validating move statements.
-