Skip to content

Cover Git Submodules in the Standup and Audit Specs #3918

Open

Description

@ptr727

Problem

No hub text covers a fleet repository that carries a git submodule. A KiCad board repository (type eda) pinning a part library as a submodule at a release tag runs into three questions that STANDUP.md, RESYNC.md, and the carried configs leave open. The pattern comes up for every eda board that depends on a shared part library.

  1. Local lint scope. STANDUP 1A says to "Scope a linter's file set in the workflow rather than relaxing either config, since .markdownlint-cli2.jsonc is carried verbatim". The carried config's own guidance points to "a .markdownlint-cli2.jsonc carrying its own ignores beside that content". That second route can't work inside a submodule, because the submodule's tree belongs to another repository. In CI the submodule contents never reach the linters (the validate-task checkout fetches no submodules). A local docker_lint.py run lints the submodule's Markdown, spelling, and line endings as if they were this repository's.
  2. CI fetch. validate-task.yml's checkout takes no submodules: input. A validate hook that needs the submodule (for example ERC/DRC against the pinned library, or a 3D export) has no documented way to fetch it. When the submodule repository is private, the caller's GITHUB_TOKEN cannot fetch it at all.
  3. Visibility. A public repository with a private submodule leaves the submodule unfetchable for every reader. No rule says to check that before publishing.

Observed

This came up in the DevKitCIoT standup dry run (audit run 2026-11-07T15:54:43Z | hub 7cfe988e). The board was pinned to a part library as a submodule at a release tag. That library is private, so the repository vendored the parts instead of keeping the submodule.

Ask

Decide whether submodules are a supported construct. If they are, state:

  • how a repository scopes local lint away from the submodule
  • how a validate hook fetches it
  • the visibility rule

If they are not, state the vendoring alternative, so the next eda repository doesn't have to rediscover it.

Activity

  1. added
    enhancement
    on Nov 7, 2026
  2. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer, 2026-11-10. Submodules are a supported construct, private ones included.

    A repository using a private submodule already needs a token granting rights to whatever other private repositories it depends on. So the fleet supports an optional token, making that use standard rather than specific to the KiCad library case.

    So the work states:

    • How a repository scopes local lint away from the submodule.
    • How a validate hook fetches it, through an optional submodules input and an optional token on validate-task.yml. A repository that passes neither behaves as it does today.
    • The visibility rule, for a public repository with a private submodule.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions