terraform/internal/refactoring
kmoe 40ec62c139
command: make module installation interruptible
Earlier work to make "terraform init" interruptible made the getproviders
package context-aware in order to allow provider installation to be cancelled.

Here we make a similar change for module installation, which is now also
cancellable with SIGINT. This involves plumbing context through initwd and
getmodules. Functions which can make network requests now include a context
parameter whose cancellation cancels those requests.

Since the module installation code is shared, "terraform get" is now
also interruptible during module installation.
2021-11-11 12:28:10 +00:00
..
testdata experiments: config_driven_move has concluded 2021-11-01 08:46:15 -07:00
move_execute.go refactoring: exhaustive NestedWithin checks 2021-09-27 12:48:17 -04:00
move_execute_test.go refactoring: exhaustive NestedWithin checks 2021-09-27 12:48:17 -04:00
move_statement.go refactoring: Don't implicitly move for resources with for_each 2021-09-23 14:37:08 -07:00
move_statement_test.go experiments: config_driven_move has concluded 2021-11-01 08:46:15 -07:00
move_validate.go refactoring: First round of ValidateMoves rules 2021-07-29 12:29:36 -07:00
move_validate_test.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00