Skip to content

fix: handle SCAFFOLD_MANIFEST.yml (underscore) in downloaded release tarballs#178

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-aidd-create-url-failure
Draft

fix: handle SCAFFOLD_MANIFEST.yml (underscore) in downloaded release tarballs#178
Copilot wants to merge 2 commits intomainfrom
copilot/fix-aidd-create-url-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

GitHub release tarballs convert hyphens to underscores in filenames, so SCAFFOLD-MANIFEST.yml arrives as SCAFFOLD_MANIFEST.yml, causing aidd create <url> to always fail with a manifest-not-found error.

Changes

  • lib/scaffold-resolver.js — Added resolveManifestPath(dir) that checks for SCAFFOLD-MANIFEST.yml first, then falls back to SCAFFOLD_MANIFEST.yml. downloadExtension now calls this after extraction instead of hardcoding the hyphen form. Exports resolveManifestPath and SCAFFOLD_MANIFEST_NAMES for consumers.

  • lib/scaffold-create.jsrunCreate now derives the manifest filename from path.basename(paths.manifestPath) rather than hardcoding SCAFFOLD-MANIFEST.yml, so the correct variant is passed to runManifest after copying to the destination folder.

  • Tests — Two new cases in scaffold-resolver.test.js (underscore fallback, hyphen preference when both exist); one new case in scaffold-create.test.js (underscore manifest path propagated to runManifestFn).

Copilot AI linked an issue Mar 30, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix aidd create URL always fails issue fix: handle SCAFFOLD_MANIFEST.yml (underscore) in downloaded release tarballs Mar 30, 2026
Copilot AI requested a review from ericelliott March 30, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: aidd create <url> alawys fails

2 participants