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

  1. Confirm network/git access: `git ls-remote https://github.com/hasura/codegen-assets`.
  2. Fix proxy configuration (HTTPS_PROXY / git config http.proxy).
  3. Delete the local codegen-assets clone and rerun to reclone.
  4. 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

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


AI-assisted analysis of hasura/graphql-engine@724551b9ae (2026-08-28). Data as JSON: /api/errors/c3edb5215146c37c. Report an issue: GitHub.