{"record":{"id":"f4ae7f1fdcaecf88","repo":"hasura/graphql-engine","slug":"pulling-latest-actions-codegen-files-from-internet","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_codegen.go","lineNumber":57,"sourceCode":"\t\tPreRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\top := genOpName(cmd, \"PreRunE\")\n\n\t\t\terr := ec.SetupCodegenAssetsRepo()\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\"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\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\topts.actions = args\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","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/cli/commands/actions_codegen.go#L39-L75","documentation":"Thrown by the Hasura CLI actions codegen command when it cannot clone or update the codegen-assets repository (github.com/hasura/codegen-assets), which holds the framework codegen templates. The wrapper calls ec.CodegenAssetsRepo.EnsureCloned(), which performs a git clone/pull of that repo into the CLI's home directory. Any git/network/permissions failure inside EnsureCloned is surfaced with this message.","triggerScenarios":"Running `hasura actions codegen` (or any command whose PreRunE ensures the codegen-assets repo) while offline, behind a proxy that blocks github.com, when git is not installed or not on PATH, or when ~/.hasura/codegen-assets (or the equivalent clone dir) is corrupted or not writable.","commonSituations":"Corporate networks with TLS-intercepting proxies, CI runners without network egress to github.com, read-only home directories, or a leftover half-cloned repo after an interrupted earlier run.","solutions":["Check network access to github.com (e.g. `git ls-remote https://github.com/hasura/codegen-assets`) and fix proxy/DNS issues.","Ensure git is installed and on PATH (`git --version`).","Delete the partially cloned codegen-assets directory under the CLI config/home dir and rerun so it reclones cleanly.","If behind a proxy, configure git's http.proxy (or HTTPS_PROXY) and retry.","As a workaround, manually clone the codegen-assets repo into the location the CLI expects."],"exampleFix":null,"handlingStrategy":"retry","validationCode":"exec.Command(\"git\", \"ls-remote\", \"https://github.com/hasura/codegen-assets.git\").Run() // exit 0 => clone should succeed","typeGuard":null,"tryCatchPattern":"Wrap the CLI invocation; on error containing 'pulling latest actions codegen files', check network/proxy, remove the local clone dir, and retry once.","preventionTips":["Pre-clone the codegen-assets repo in CI before running actions commands.","Cache the clone directory between CI runs.","Configure proxy env vars for git."],"tags":["git","network","clone","hasura-cli","codegen"],"backgroundTag":"git-clone-failed","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}