Skip to content

Publish Package Metadata dynatrace@v0.35.2#11190

Open
pulumi-bot wants to merge 1 commit into
masterfrom
dynatrace/26593934393-3063
Open

Publish Package Metadata dynatrace@v0.35.2#11190
pulumi-bot wants to merge 1 commit into
masterfrom
dynatrace/26593934393-3063

Conversation

@pulumi-bot
Copy link
Copy Markdown
Collaborator

No description provided.

@pulumi-bot pulumi-bot enabled auto-merge (squash) May 28, 2026 18:59
rgharris added a commit that referenced this pull request May 29, 2026
Stop Hugo from misreading shortcode delimiters inside generated fenced code examples, which was aborting the entire site build.

resourcedocsgen now neutralizes Hugo shortcode delimiters ({{% and {{<) that appear inside fenced code blocks when emitting .md files. Hugo parses shortcodes even inside code fences, so an example snippet like {{%s|token}} (Dynatrace credential-vault syntax plus a Java String.format placeholder) was read as a call to a shortcode named "s", failing the build with 'template for shortcode "s" not found'.

The rewrite is restricted to fence interiors, so legitimate hand-authored shortcodes ({{< chooser >}} / {{% choosable %}}, which only wrap fences from the outside) are untouched. Inline code spans and 4-space-indented code blocks are intentionally outside this change because the current generator surface emits fenced examples.

Neutralization inserts a single space after {{. It needs no delimiter pairing (the offending text often has no matching %}}) and is idempotent. Tradeoff: the inserted space changes the rendered example, so a copied snippet carries an extra space (Bearer {{ %s|token}}). That is harmless to the Java String.format call, but Dynatrace would not accept the resulting vault reference if pasted verbatim. We accept this cosmetic cost over a failing build.

Surfaced by #11191 (auto-filed workflow failure for the dynatrace@v0.35.2 bump, PR #11190). The offending {{%s|token}} examples are new in that version (0 occurrences in v0.34.0, 8 in v0.35.2), so the build fails deterministically until this lands on master.

Closes #11205
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.

1 participant