Fission-AI/OpenSpec · error
Store local path does not exist
Error message
Store local path does not exist: ${input.localPath} What it means
Filesystem check in resolveGitStoreBackendConfig: the resolved localPath (made absolute against cwd when relative) is not an existing directory, verified via pathIsDirectory. The store backend requires its local clone/worktree to be present on disk.
Solutions
- Verify the path exists and is a directory, not a file
- Correct typos in the localPath value
- Clone the store repository first if it has not been fetched yet
- Check relative paths are relative to the intended cwd
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/store/foundation.ts:397 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25).
Data as JSON: /api/errors/e1463065cad901f2.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/store/foundation.ts:397
getStoreMetadataPath(storeRoot),
serializeStoreMetadataState(state)
);
}
export async function resolveGitStoreBackendConfig(
input: ResolveGitStoreBackendInput,
cwd = process.cwd()
): Promise<StoreGitBackendConfig> {
if (input.localPath.length === 0) {
throw new Error('Store local path must not be empty.');
}
const resolvedPath = path.isAbsolute(input.localPath)
? path.resolve(input.localPath)
: path.resolve(cwd, input.localPath);
if (!(await pathIsDirectory(resolvedPath))) {
throw new Error(`Store local path does not exist: ${input.localPath}`);
}
if (input.remote !== undefined && input.remote.length === 0) {
throw new Error('Store backend remote must not be empty when provided.');
}
if (input.branch !== undefined && input.branch.length === 0) {
throw new Error('Store branch must not be empty when provided.');
}
return {
type: 'git',
local_path: normalizeExistingPathForStorage(resolvedPath),
...(input.remote ? { remote: input.remote } : {}),
...(input.branch ? { branch: input.branch } : {}),
};
}
View on GitHub (pinned to 6926ccb18a)