GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: execid tests compare symlink-resolved ExecStamp.Path against unresolved t.TempDir — fail on macOS (port of dezren39/nix#366 fix) · Issue #282 · developing-today/code

mcpx: execid tests compare symlink-resolved ExecStamp.Path against unresolved t.TempDir — fail on macOS (port of dezren39/nix#366 fix) #282

New issue
Copy link
New issue
Copy link
Closed
#283
Closed
mcpx: execid tests compare symlink-resolved ExecStamp.Path against unresolved t.TempDir — fail on macOS (port of dezren39/nix#366 fix)#282
#283
Copy link
Assignees
dezren39

Description

@dezren39
dezren39
opened on Oct 18, 2026
Issue body actions

pkgs/mcpx/internal/config/execid_test.go still compares ExecStamp.Path against an unresolved t.TempDir(). ExecStamp (execid.go:92) reports the path with symlinks resolved (filepath.EvalSymlinks), so on macOS — where t.TempDir() is under /var, a symlink to /private/var — the two named tests can never pass. This is the same defect as dezren39/darwin-nix#366 (fixed there by PR #385), present in this repo's pkgs/mcpx copy: the two files' execid.go are byte-identical, and the test file differs from nix's post-fix version at exactly these two sites.

Evidence (this run, main 6acacf6)

go test masks the failure (it canonicalises TMPDIR), so reproduce with a compiled test binary under a symlinked TMPDIR — the same simulation nix's sweep used:

go test -c -o config.test ./internal/config/
TMPDIR=<symlink-to-a-real-dir> ./config.test -test.run 'TestExecIdentityFollowsTheExecutableNotTheCommandName|TestExecIdentityResolvesAgainstTheServersOwnPath' -test.v

Both fail:

  • execid_test.go:36: stamp {Path:/tmp/real-tmp/.../bin/tool ...} does not name the resolved file <symlinked-tmp>/.../bin/tool
  • execid_test.go:52: stamp {Path:/tmp/real-tmp/.../elsewhere/tool ...} ignores the PATH the server is given

With TMPDIR=/tmp (no symlink) both pass. Sites: execid_test.go:25 (TestExecIdentityFollowsTheExecutableNotTheCommandName) and :48 (TestExecIdentityResolvesAgainstTheServersOwnPath) use t.TempDir() and compare st.Path against a path joined from it. The other t.TempDir() sites in the file (:60, :104, :136) do not compare against a resolved stamp path and were deliberately left alone in the nix fix.

Why it matters

These are two of the tests behind dezren39/darwin-nix#366's "Go tests fail on macOS" report; in this repo they make internal/config red on every Mac, training developers to ignore the suite. This repo already has internal/testsupport.TempDir (used by merge_test.go in the same package), which returns the symlink-resolved dir — the fix is a port, not new infrastructure.

Acceptance criteria

  • The two named tests use testsupport.TempDir(t) (with the explanatory comment, refs re-pointed to this issue), matching nix PR chore(opencode): untrack runtime state and stale backups under .opencode/ (#367) #385.
  • Compiled-binary repro above passes under a symlinked TMPDIR; the full internal/config suite passes normally.
  • No production code changes; the other t.TempDir() sites stay as they are.

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 18, 2026
  2. dezren39
    added a commit that references this issue on Oct 18, 2026

    Merge pull request #283 from developing-today/creator/282-execid-test…

    bbc7e21
  3. dezren39
    closed this as completedin #283on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.