feat: Download default terraform version when minor version mismatches (#1775)

This commit is contained in:
Abhineet Jain
2022-06-22 23:11:52 +00:00
committed by GitHub
parent 6a2a145545
commit c6b1daabc5
5 changed files with 158 additions and 19 deletions
+1 -2
View File
@@ -376,7 +376,6 @@ func server() *cobra.Command {
shutdownConnsCtx, shutdownConns := context.WithCancel(cmd.Context())
defer shutdownConns()
go func() {
defer close(errCh)
server := http.Server{
// These errors are typically noise like "TLS: EOF". Vault does similar:
// https://github.com/hashicorp/vault/blob/e2490059d0711635e529a4efcbaa1b26998d6e1c/command/server.go#L2714
@@ -590,7 +589,7 @@ func newProvisionerDaemon(ctx context.Context, coderAPI *coderd.API,
CachePath: cacheDir,
Logger: logger,
})
if err != nil {
if err != nil && !xerrors.Is(err, context.Canceled) {
errChan <- err
}
}()