Skip to content

The tracker takes the global gitignore patterns as an input, not from $HOME #1203

Open

Description

@David-Noble-at-work

Area

Product

What

file.Find, file.Glob and file.WalkTree read the global gitignore while planning, through gitignore.NewTracker → xdg.ConfigPath → os.UserHomeDir, which cost them the sandboxed claim. Under the rule of #1202, the application resolves core.excludesfile and the XDG fallback once and hands the patterns to the tracker, which reads only what the spec carries, and the three methods claim sandboxed again. Whether they can claim deterministic is a separate question #694 records. Waits on #1202.

Evidence of completion

Before this issue closes, a comment on it shows the three methods claiming sandboxed and the tracker taking its patterns from the spec, and links the pull request.

Plan and design documents

Kind Document
Plan Not yet opened
Related #694, the feature; #677, the claims that surfaced it; #530, hermeticity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions