thomvaill / log4brains

✍️ Log and publish your architecture decisions (ADR)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New ADRs are not compiled to HTML on first build

mgreensmith opened this issue · comments

Bug Report

Description

On the first invocation of log4brains build after adding a new ADR markdown doc, an HTML version of that doc is not created in the .log4brains/out/adr directory. On subsequent invocations of log4brains build, the HTML doc is correctly generated.

Steps to Reproduce

  1. Create a new markdown file in docs/adr
  2. Run log4brains build
  3. Observe that .log4brains/out/adr does not contain an HTML file matching the name of your markdown file
  4. Run log4brains build
  5. Observe that .log4brains/out/adr does contain an HTML file matching the name of your markdown file

Expected Behavior

All markdown files should be compiled into HTML on the first invocation of log4brains build.

Context

We notice this in CI (Github Actions), which is generally the first time we run log4brains build. But it is reproducible locally on MacOS 10.15.

Environment

  • Log4brains version: 1.0.0-beta.11
  • Node.js version: 14.15.4
  • Yarn version: 1.22.10
  • OS and its version: Reproducible on MacOS 10.15 and Ubuntu 20.04 (via GitHub Actions)