Skip to main content
← Back to list
01Issue
BugShippedSwamp CLI
Assigneesstack72

Relationships

#557 fix: namespace set on default repo writes incomplete filesystem config (missing path)

Opened by stack72 · 6/4/2026· Shipped 6/4/2026

Description

swamp datastore namespace set on a repo with no explicit datastore configured writes an incomplete config block to .swamp.yaml:

datastore: type: filesystem namespace: infra

The path field is missing. The default filesystem datastore uses an implicit path (.swamp/), but once namespace set materializes the config block in YAML, resolve_datastore.ts:310 requires an explicit path field. Every subsequent namespace command (unset, list, migrate) crashes with:

Filesystem datastore config in .swamp.yaml requires a 'path' field.

Steps to Reproduce

  1. swamp repo init (creates a default repo with no datastore block in .swamp.yaml)
  2. swamp datastore namespace set infra
  3. swamp datastore namespaces (or any namespace command)
  4. Crashes with path field error

Expected Behavior

namespace set should materialize the full default config including the path when writing to .swamp.yaml:

datastore: type: filesystem path: .swamp namespace: infra

Impact

Blocks all namespace operations on default repos (the most common setup). Found during UAT test development (#555).

Fix

In the namespace set command's updateMarkerNamespace path: when materializing a new datastore config block, include the resolved default path alongside type and namespace.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

6/4/2026, 11:36:19 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack726/4/2026, 11:05:41 PM

Sign in to post a ripple.