Skip to content

fix(readme): align gomplate v5 formatting - #294

Merged
RoseSecurity merged 1 commit into
mainfrom
fix-gotmplate-v5-formatting
Nov 9, 2026
Merged

RoseSecurity merged 1 commit into
mainfrom
fix-gotmplate-v5-formatting

Conversation

@RoseSecurity

Copy link
Copy Markdown
Member

what

This pull request makes a minor update to the README.md.gotmpl template to improve how the list of documentation sections is created.

  • Changed the creation of the $sections variable to use the coll.Slice function instead of the built-in slice function, likely for consistency or compatibility with the templating engine.

why

  • Resolves the following warning:
❯ atmos docs generate readme
 WARN  template uses a function removed from gomplate v5; a compatibility shim is serving it for now template=docs-generate deprecated=slice replacement=coll.Slice hint="the bare `slice` alias was removed in gomplate v5. Atmos still accepts it, but this shim will be removed in a future major release. Replace `slice` with `coll.Slice` (same arguments). Without this shim, `slice` is Go's builtin, which indexes a list instead of building one."

references

@RoseSecurity
RoseSecurity requested review from a team as code owners November 9, 2026 21:31
@RoseSecurity RoseSecurity changed the title fix(readme): align gotmplate v5 formatting fix(readme): align gomplate v5 formatting Nov 9, 2026
@mergify mergify Bot added the triage Needs triage label Nov 9, 2026
@RoseSecurity
RoseSecurity merged commit aaa06b3 into main Nov 9, 2026
3 checks passed
@mergify mergify Bot removed the triage Needs triage label Nov 9, 2026
@RoseSecurity
RoseSecurity deleted the fix-gotmplate-v5-formatting branch November 9, 2026 21:33
@RoseSecurity

Copy link
Copy Markdown
Member Author

That fixed it! Thanks!

❯ atmos docs generate readme

✓ Generated docs

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.

2 participants