terraform/internal/initwd
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 initwd: Error message for local paths escaping module packages 2021-05-27 11:00:43 -07:00
doc.go command: "terraform init" can partially initialize for 0.12upgrade 2019-01-14 11:33:21 -08:00
from_module.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00
from_module_test.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00
load_config.go Move tfdiags/ to internal/tfdiags/ 2021-05-17 14:09:07 -07:00
module_install.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00
module_install_hooks.go Move module install functionality over to internal/initwd 2019-01-14 11:33:21 -08:00
module_install_test.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00
testing.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00