Skip to content

Make the gh and node Report Note True When a One-Line Vendor Source Is Configured #4173

Done

Description

@ptr727

Problem

The report note for gh and node in host-setup/linux/install-tools.sh can say something false:

if [[ ! -f "$SOURCES_DIR/$name.sources" ]]; then
    note "$tool" "upstream repository not configured, the available version is the distro's"
fi

It tests only for the deb822 file this script writes. A host can carry the vendor's own one-line source for the same repository, as a .list file. On that host the upstream repository is configured, and the available version is the vendor's. The note says the opposite on both counts.

The powershell note beside it already tests both forms, microsoft-prod.sources and microsoft-prod.list.

How to Reproduce

Construct the case: a sources directory holding a one-line github-cli.list and no github-cli.sources. Run the report for gh. The note reads "upstream repository not configured, the available version is the distro's".

Fix Direction

Say what is true in each case. With neither file, the repository is not configured. With only the one-line file, it is configured by a file this script does not manage, which is what the unmanaged status already means. tool_configured reads the same single file, so the two should agree on one test.

Found while reviewing #4161. It predates that change.

Activity

  1. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-24): PR #4394 merged to develop at 15f3c3c; branch and worktree cleaned up, so this claim holds no files. The issue closes on promotion.

    Backlog burndown claim (away run 2026-11-24, round 1, group 7): branch burndown/gh-node-source-note, issue #4173.

    Predicted files:

    • host-setup/linux/install-tools.sh, the gh | node report note and tool_configured, so both read one test of the sources directory.
    • tests/test_install_tools.py, the report-note tests, with a constructed sources directory holding only a one-line .list.
    • host-setup/linux/README.md, the unmanaged paragraph and the one-line-source paragraph, only where the change makes either false.

    Any other group needing one of these files waits for this branch to merge.

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