dagger/dagger · error

check workspace config at %s: %w

Error message

check workspace config at %s: %w

What it means

Stat-ing for a workspace config file (workspace.json / dagger workspace config) at an ancestor directory failed with a non-not-exist error while checking whether an explicit config owns migration there.

Source

Thrown at core/schema/workspace_migrate.go:686

			return true
		}
	}
	return false
}

func workspaceMigrationHasExplicitConfigAncestor(
	ctx context.Context,
	statFS core.StatFS,
	root string,
	dir string,
) (bool, error) {
	root = filepath.Clean(root)
	dir = filepath.Clean(dir)
	for {
		if dir == root || strings.HasPrefix(dir, root+string(filepath.Separator)) {
			_, exists, err := core.StatFSExists(ctx, statFS, filepath.Join(dir, workspace.ConfigFileName))
			if err != nil {
				return false, fmt.Errorf("check workspace config at %s: %w", dir, err)
			}
			if exists {
				return true, nil
			}
		}
		if dir == root {
			return false, nil
		}
		next := filepath.Dir(dir)
		if next == dir {
			return false, nil
		}
		dir = next
	}
}

func (s *workspaceSchema) workspaceMigrationChangeset(
	ctx context.Context,

View on GitHub (pinned to 82ba2681db)

Solutions

  1. Inspect the wrapped stat error at the named directory
  2. Fix filesystem access issues on the host path
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at core/schema/workspace_migrate.go:686 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of dagger/dagger@82ba2681db (2026-09-05). Data as JSON: /api/errors/8f11d4ed2c9d3dad. Report an issue: GitHub.