Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Update shared files and make sure they stay in sync

Open
#1,029 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cmake, cpp

Research direction

Start by inspecting the repository's shared exercise files and CMake scripts, then compare the referenced templates directory and bin/update-from-templates script in arm64-assembly. The work is done when a single source of truth can synchronize all exercises, the sync script returns non-zero after changes for a pre-commit check, and Catch2 and CMake scripts are upgraded.

Written by the indexing model from the issue text.

Description

Over at arm64-assembly we have a templates directory that holds files shared by all exercises plus a script that synchronizes all exercises with the contents of that directory. This way we have a single source of truth in templates, the sync to all exercises happens automatically. By having the script return a non-zero exit code if it made any changes, we can also use that in a pre-commit check in CI.

We should setup something similar here as well and also use that chance to upgrade Catch2 and CMake scripts.

Note: Not having to copy files in the first place, but instead referencing a single source of truth wherever it is needed, would obviously be the much cleaner solution here, but due to the way the Exercism downloader works, for now exercises need to be self-contained.

Dominant language
C++
Stars
291
Forks
244
Avg merge
17m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/cpp

All issues in exercism/cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.