Skip to content

test: gbrain-missing PATH case leaks host /opt/homebrew/bin #2255

Closed

Description

@GoloCatMash

Reproduction\n\nEnvironment: macOS arm64 with gbrain installed in /opt/homebrew/bin, origin/main 83238f9ba28b9a5dfa3405fa625b70f7b5b99d39.\n\nRun:\n\n bun test test/gstack-gbrain-source-wireup.test.ts\n\nThe test named "--strict + gbrain missing on PATH: exits 2" fails with expected 2, received 1.\n\nThe fixture says its fake bin is empty but constructs PATH with /opt/homebrew/bin. On a developer host where gbrain is installed there, the supposedly missing executable is visible and the test is not hermetic.\n\n### Expected\n\nThe missing-PATH fixture should exclude host package-manager directories or otherwise shadow gbrain deterministically.

Activity

  1. added a commit that references this issue on Aug 22, 2026
    2010b34
  2. added a commit that references this issue on Aug 24, 2026
    ad84005
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions