terraform/internal/getmodules
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
..
doc.go getmodules: Beginnings of a new package about Terraform module packages 2021-06-03 08:50:34 -07:00
file_detector.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
getter.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00
installer.go command: make module installation interruptible 2021-11-11 12:28:10 +00:00
package.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
subdir.go getmodules: Beginnings of a new package about Terraform module packages 2021-06-03 08:50:34 -07:00