Skip to content

fix: add mkdir step before writing into /wordpress/seeds (#37)#38

Merged
mt8 merged 1 commit intomainfrom
fix/37-playground-mkdir
Apr 28, 2026
Merged

fix: add mkdir step before writing into /wordpress/seeds (#37)#38
mt8 merged 1 commit intomainfrom
fix/37-playground-mkdir

Conversation

@mt8
Copy link
Copy Markdown
Owner

@mt8 mt8 commented Apr 28, 2026

Closes #37.

Summary

Playground 起動時に blueprint ステップ #4

Could not write to "/wordpress/seeds/posts.xml": There is no such file or directory OR the parent directory does not exist.

が出る問題の修正。writeFile は親ディレクトリを自動作成しないため、mkdir ステップを 1 つ追加する。

Change

  • playground/blueprint.json: setSiteOptions の直後に { "step": "mkdir", "path": "/wordpress/seeds" } を挿入

Test plan

Playground's writeFile step does not auto-create parent directories,
so the very first /wordpress/seeds/posts.xml write was failing with
'parent directory does not exist'. Insert a mkdir step right after
setSiteOptions and before any writeFile that targets a subpath.
@mt8 mt8 merged commit c891fdf into main Apr 28, 2026
7 checks passed
@mt8 mt8 deleted the fix/37-playground-mkdir branch April 28, 2026 13:34
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.

Playground blueprint: writeFile failing because /wordpress/seeds parent dir missing

1 participant