Skip to content

Tidy up: stage the requested schema even when it is gitignored (jtd2jar.sh) #190

Open

Description

@simbo1905

Sub-issue 11 of 26 from the 2026-11-21 bot-review-comment audit. Parent issue: #179 (Bot review comment tidy up).
Audited origin/main HEAD: 2e5cf37. Audit date: 2026-11-21.

== Finding 11 (verbatim from the audit findings file) ==

  1. PR Issue 148 forward fixes JDK 25 build stage distroless WORKDIR and jdt2jar helper #151 — scripts/jtd2jar.sh staging filter can omit the requested schema file.
    Author: chatgpt-codex-connector[bot], 2026-08-28. Comment: Issue 148 forward fixes JDK 25 build stage distroless WORKDIR and jdt2jar helper #151 (comment)
    Source: scripts/jdt2jar.sh:19. Current: scripts/jtd2jar.sh:19 (rsync -a --filter=':- .gitignore' --exclude='.git/' . "$WORK_DIR/"; original schema path passed unchanged to docker run ... "$@").
    Flagged: "When the requested schema is under any ignored path, this filter omits it from the staging directory while line 22 passes the original path unchanged to the container, so compilation fails with 'Schema file not found'. This affects the script's own .tmp/test.jtd.json example because .gitignore excludes .tmp".
    Still applies: the script (renamed jdt2jar.sh -> jtd2jar.sh by PR Rename jdt2jar to jtd2jar #164) still prepends the .gitignore filter without forcing the explicitly requested schema into the staging copy.
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions