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

Absorb ImageVersionOS into ImageVersion

Open
#596 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
tooling

Research direction

Start with config/image/version_os.py and config/image/version.py to compare the fields, methods, and validator that must move. Read config/image/build_os.py to keep BuildOS lookup separate. Done means ImageVersion owns the absorbed behavior, version_os.py is deleted, and image version resolution no longer depends on the wrapper.

Written by the indexing model from the issue text.

Description

cvp:0 docker tdp:1

`ImageVersionOS` (`version_os.py`, 133 LOC) is a shallow wrapper: 8 fields, 4 methods, 1 validator. It handles `BuildOS` lookup and adds `primary`, `extension`, and `tagDisplayName` fields. The indirection adds a parent-pointer contract without hiding meaningful complexity.

Absorb the fields and methods directly into `ImageVersion`. `BuildOS` lookup logic stays separate. Delete `version_os.py`. Reduces the number of files needed to trace image version resolution from ~11 to ~9.

Files: `config/image/version_os.py`, `config/image/version.py`, `config/image/build_os.py`

Dominant language
Python
Stars
2
Forks
0
Avg merge
2d 23h
Merged PRs (30d)
20

Getting set up

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 posit-dev/images-shared

All issues in posit-dev/images-shared

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.