Skip to main content
← Back to list
01Issue
BugClosedSwamp Club
AssigneesNone

extension push ignores modelsDir setting in .swamp.yaml

Opened by swampadmin · 12/7/2024

Description

swamp extension push always resolves model file paths relative to <repo-root>/extensions/models/, ignoring the modelsDir setting in .swamp.yaml.

Steps to Reproduce

  1. Initialize a swamp repo with a custom modelsDir:
    # .swamp.yaml
    modelsDir: .swamp/extensions/models
  2. Create model files in the custom directory (.swamp/extensions/models/my_model.ts)
  3. Create a manifest referencing my_model.ts
  4. Run swamp extension push --dry-run manifest.yaml

Expected Behavior

The push command should resolve model paths using the configured modelsDir from .swamp.yaml, finding files at .swamp/extensions/models/my_model.ts.

Actual Behavior

The push command always looks at the default path extensions/models/my_model.ts, producing:

Model file not found: my_model.ts (expected at /path/to/repo/extensions/models/my_model.ts)

Workaround

Remove the modelsDir key from .swamp.yaml and move model files to the default extensions/models/ directory.

Summary

The fix would involve updating the model file resolution logic in extension_push.ts to read the modelsDir setting from .swamp.yaml (if present) before constructing the expected file path.

Environment

  • swamp version: 20260227.033008.0-sha.c637ddd9
  • OS: macOS (Darwin 25.3.0, arm64)
02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.