hasura/graphql-engine · error
pulling latest actions codegen files from internet failed: %
Error message
pulling latest actions codegen files from internet failed: %w
What it means
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`.
Source
Thrown at cli/commands/actions_use_codegen.go:67
return errors.E(
op,
fmt.Errorf(
"setting up codegen-assets repo failed (this is required for automatically generating actions code): %w",
err,
),
)
}
err = ec.SetupCodegenAssetsRepo()
if err != nil {
return errors.E(op, "setting up codengen assets repo failed")
}
// ensure codegen-assets repo exists
err = ec.CodegenAssetsRepo.EnsureCloned()
if err != nil {
return errors.E(
op,
fmt.Errorf(
"pulling latest actions codegen files from internet failed: %w",
err,
),
)
}
return nil
},
RunE: func(cmd *cobra.Command, args []string) error {
op := genOpName(cmd, "RunE")
err := opts.run()
if err != nil {
return errors.E(op, err)
}
return nil
},View on GitHub (pinned to 724551b9ae)
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.
Defensive patterns
Strategy: retry
Validate before calling
git ls-remote https://github.com/hasura/codegen-assets.git >/dev/null 2>&1 && echo ok
Try / catch
Catch, fix connectivity/proxy, delete the local clone dir, and retry.
Prevention
- Configure proxies for git in CI.
- Cache the clone directory.
- Ensure writable CLI home.
When it happens
Trigger: Running `hasura actions use-codegen` with no network access to github.com, missing git binary, bad proxy, or a corrupt/unwritable local clone directory.
Common situations: Offline development, CI without github egress, TLS-intercepting proxies, or a previous interrupted clone.
Related errors
- pulling latest actions codegen files from internet failed: %
- setting up codegen-assets repo failed (this is required for
- unable to fetch introspection schema: %w
- error in fetching introspection schema: %w
- determining database kind of '%s': %w
AI-assisted analysis of hasura/graphql-engine@724551b9ae (2026-08-28).
Data as JSON: /api/errors/c3edb5215146c37c.
Report an issue: GitHub.