Difference between revisions of "Error: Failed to download module"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
=== Please use a personal access token instead ===
+
== Please use a personal access token instead ==
 
  ╷
 
  ╷
 
  │ Error: Failed to download module
 
  │ Error: Failed to download module
Line 12: Line 12:
 
  │
 
  │
  
 +
Solution: Generate a [[PAT]] and use it as password when prompted for username and password.
  
=== [[pathspec]] '[[master]]' did not match any file(s) known to git ===
+
== [[pathspec]] '[[master]]' did not match any file(s) known to git ==
 
  ╷
 
  ╷
 
  │ Error: Failed to download module
 
  │ Error: Failed to download module

Latest revision as of 15:18, 19 October 2021

Please use a personal access token instead[edit]

╷
│ Error: Failed to download module
│
│ Could not download module "s3" (main.tf:4) source code from "github.com/your-project/path-to-your/modules/s3": error 
downloading
│ 'https://github.com/your-project/terraform-templates-infra.git': /usr/bin/git exited with 128: Cloning into '.terraform/modules/s3'...
│ remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
│ remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
│ fatal: Authentication failed for 'https://github.com/your-project/terraform-templates-infra.git'

Solution: Generate a PAT and use it as password when prompted for username and password.

pathspec 'master' did not match any file(s) known to git[edit]

╷
│ Error: Failed to download module
│
│ Could not download module "parameters" (main.tf:257) source code from "github.com/your-project/your-module/parameters":
│ error downloading 'https://github.com/your-project/terrafo-infra.git': /usr/bin/git exited with 1: error: pathspec 'master' did not
│ match any file(s) known to git
│
╵

Related terms[edit]

See also[edit]

Advertising: