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

fix(generator): correct struct tag for subproject_leads in Leadership struct

Open
#2,329 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Tharun-Varshan-S is already working on this.

Since Oct 13, 2026.

  • #2330 by @Tharun-Varshan-S — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
tooling

Research direction

The bad tag is on the SubprojectLeads field of the Leadership struct in generator/readme_app.go, and the schema notes are in generator/README.md. Check that SubprojectLeadership already uses the snake_case subproject_leads tag, then correct the field's tag. Done means a subproject_leads key in tags.yaml unmarshals into the field and shows in the toc_subproject_readme.tmpl output. Pull request #2330 is already open against this, so check it before starting.

Written by the indexing model from the issue text.

Description

needs-group needs-kind needs-triage
Summary

The Leadership struct in generator/readme_app.go defines SubprojectLeads with an invalid YAML tag: yaml:"Subpproject Leads".

Problem & Impact
  1. Typo and casing mismatch: The tag contains a duplicate 'p' (Subpproject) and a space, instead of snake_case subproject_leads.
  2. Silent Unmarshaling Failure: In Go, yaml.Unmarshal relies on struct tags to map YAML keys to struct fields. Because of this tag mismatch, any TOC Subproject specifying subproject_leads in tags.yaml fails to unmarshal into Leadership.SubprojectLeads.
  3. Template Rendering Failure: When toc_subproject_readme.tmpl evaluates:
    {{- if .Leadership.SubprojectLeads }}
    ### Subproject Leads
    {{- range .Leadership.SubprojectLeads }}
    ...
    
    .Leadership.SubprojectLeads is always nil, causing subproject leads to be silently dropped from generated README files.
  4. In generator/README.md, the schema documentation already explicitly specifies subproject_leads:, and SubprojectLeadership (line 24) correctly uses yaml:"subproject_leads".
Proposed Fix
  • Update SubprojectLeads tag in generator/readme_app.go to yaml:"subproject_leads,omitempty".
  • Clean up step numbering and remove stale TODO comment in generator/README.md.
Dominant language
HTML
Stars
1.9k
Forks
728
Avg merge
3d 23h
Merged PRs (30d)
10

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 cncf/toc

All issues in cncf/toc

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.