Skip to content

Restore Compiler Explorer badge in exemplar but not cookiecutter#352

Merged
ednolan merged 1 commit intomainfrom
enolan_restoregodbolt1
Apr 19, 2026
Merged

Restore Compiler Explorer badge in exemplar but not cookiecutter#352
ednolan merged 1 commit intomainfrom
enolan_restoregodbolt1

Conversation

@ednolan
Copy link
Copy Markdown
Member

@ednolan ednolan commented Apr 19, 2026

e064736 removed the Compiler Explorer badge from both exemplar and cookiecutter, on the logic that newly created libraries won't have godbolt links yet. However, as pointed out by #351, unlike libraries stamped out from the cookiecutter template, exemplar itself isn't a newly created library and it can include a proper Compiler Explorer link. This commit restores the Compiler Explorer link to exemplar while still omitting it from cookiecutter templates, by using the cookiecutter._generating_exemplar mechanism.

e064736 removed the Compiler Explorer
badge from both exemplar and cookiecutter, on the logic that newly
created libraries won't have godbolt links yet. However, as pointed
out by #351, unlike
libraries stamped out from the cookiecutter template, exemplar itself
isn't a newly created library and it can include a proper Compiler
Explorer link. This commit restores the Compiler Explorer link to
exemplar while still omitting it from cookiecutter templates, by using
the cookiecutter._generating_exemplar mechanism.
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — enolan_restoregodbolt1 into main

@ednolan ednolan merged commit 6c72eb9 into main Apr 19, 2026
98 checks passed
@ednolan ednolan deleted the enolan_restoregodbolt1 branch April 19, 2026 19:22
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