BMAD-METHOD/docs/how-to
Akhilesh Tyagi 1040c3c306
fix: correctly resolve output_folder paths outside project root (#2132)
* fix(bmad-init): correctly resolve output_folder paths outside project root

  When output_folder was set to an absolute path (e.g. /Users/me/outputs),
  the {project-root}/{value} result template stored it as
  {project-root}//absolute/path. resolve_project_root_placeholder then did
  a naive string replace, producing /project//absolute/path — a broken path
  that workflows could not resolve.

  For relative paths outside the root (e.g. ../../sibling), the same naive
  replace left un-normalized paths like /project/../../sibling in the
  resolved config, which some tools mishandled.

  Fix resolve_project_root_placeholder to strip the {project-root} token,
  detect whether the remainder is absolute (returning it directly) or
  relative (joining with project root and normalizing via os.path.normpath).

  Fix apply_result_template to skip the template entirely when raw_value is
  already an absolute path, and to normalize the result for relative-but-
  outside paths. This covers the bmad-init SKILL write path, which bakes
  the resolved path directly into config.yaml.

  Add 7 tests covering all three path cases (absolute, relative-with-
  traversal, normal in-project) for both functions.

* Address review comments

---------

Co-authored-by: Akhilesh Tyagi <akhilesh.t@nextiva.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-03-26 21:46:14 -05:00
..
customize-bmad.md fix(docs): community feedback — typo, locale 404s, llms-full (#2091) 2026-03-21 16:42:57 -06:00
established-projects.md refactor: consolidate agents into phase-based skill directories (#2050) 2026-03-18 01:01:33 -05:00
get-answers-about-bmad.md refactor: consolidate agents into phase-based skill directories (#2050) 2026-03-18 01:01:33 -05:00
install-bmad.md docs: mention next install channel (#1887) 2026-03-11 02:34:26 -06:00
non-interactive-installation.md fix: correctly resolve output_folder paths outside project root (#2132) 2026-03-26 21:46:14 -05:00
project-context.md docs: fix duplicate sidebar order number (#2071) 2026-03-20 11:38:35 -06:00
quick-fixes.md docs: rewrite quick-fixes how-to around Quick Dev workflow 2026-03-19 00:05:30 -06:00
shard-large-documents.md docs: fix duplicate sidebar order number (#2071) 2026-03-20 11:38:35 -06:00
upgrade-to-v6.md docs: update terminology from commands to skills across all documentation (#1850) 2026-03-07 16:14:25 -07:00