{"record":{"id":"c3edb5215146c37c","repo":"hasura/graphql-engine","slug":"pulling-latest-actions-codegen-files-from-internet-c3edb5","errorCode":null,"errorMessage":"pulling latest actions codegen files from internet failed: %w","messagePattern":"pulling latest actions codegen files from internet failed: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/commands/actions_use_codegen.go","lineNumber":67,"sourceCode":"\t\t\t\treturn errors.E(\n\t\t\t\t\top,\n\t\t\t\t\tfmt.Errorf(\n\t\t\t\t\t\t\"setting up codegen-assets repo failed (this is required for automatically generating actions code): %w\",\n\t\t\t\t\t\terr,\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t}\n\n\t\t\terr = ec.SetupCodegenAssetsRepo()\n\t\t\tif err != nil {\n\t\t\t\treturn errors.E(op, \"setting up codengen assets repo failed\")\n\t\t\t}\n\t\t\t// ensure codegen-assets repo exists\n\t\t\terr = ec.CodegenAssetsRepo.EnsureCloned()\n\t\t\tif err != nil {\n\t\t\t\treturn errors.E(\n\t\t\t\t\top,\n\t\t\t\t\tfmt.Errorf(\n\t\t\t\t\t\t\"pulling latest actions codegen files from internet failed: %w\",\n\t\t\t\t\t\terr,\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t}\n\n\t\t\treturn nil\n\t\t},\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\top := genOpName(cmd, \"RunE\")\n\n\t\t\terr := opts.run()\n\t\t\tif err != nil {\n\t\t\t\treturn errors.E(op, err)\n\t\t\t}\n\n\t\t\treturn nil\n\t\t},","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/cli/commands/actions_use_codegen.go#L49-L85","documentation":"Identical clone failure to the codegen command, raised from actions_use_codegen.go's PreRunE when ec.CodegenAssetsRepo.EnsureCloned() cannot clone/pull the codegen-assets repo that provides framework definitions and starter kits for `hasura actions use-codegen`.","triggerScenarios":"Running `hasura actions use-codegen` with no network access to github.com, missing git binary, bad proxy, or a corrupt/unwritable local clone directory.","commonSituations":"Offline development, CI without github egress, TLS-intercepting proxies, or a previous interrupted clone.","solutions":["Confirm network/git access: `git ls-remote https://github.com/hasura/codegen-assets`.","Fix proxy configuration (HTTPS_PROXY / git config http.proxy).","Delete the local codegen-assets clone and rerun to reclone.","Ensure git is installed and the CLI home dir is writable."],"exampleFix":null,"handlingStrategy":"retry","validationCode":"git ls-remote https://github.com/hasura/codegen-assets.git >/dev/null 2>&1 && echo ok","typeGuard":null,"tryCatchPattern":"Catch, fix connectivity/proxy, delete the local clone dir, and retry.","preventionTips":["Configure proxies for git in CI.","Cache the clone directory.","Ensure writable CLI home."],"tags":["git","network","clone","hasura-cli"],"backgroundTag":"git-clone-failed","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}