Skip to content

Exclude nested output directories from workspaces by path #36

Closed

Description

@nishide-dev

背景

texrun compile は、前回の出力を次の workspace にコピーしないよう、texrun-out という名前(任意の深さ)と、project root 直下の --output ディレクトリを除外しています(PR #34)。しかし WorkspaceConfig には「root からの相対パス」で除外する手段がないため、-o build/pdf のように root の 2 段以上下を出力先にすると、次回の run でその中身が workspace にコピーされ、入力上限を無駄に消費します。PR #34 では warning(JSON の notes[].kind = "output_inside_project")を出すだけにしています。

作業内容

  • texrun-workspace の WorkspaceConfig に、root 相対のパスで除外する設定(例: excluded_paths: Vec<WorkspacePath>)を追加する。既存の名前 folding と、大文字小文字・正規化を区別しない filesystem での別名チェックも同じように適用する
  • MaterializeReport に除外理由を記録する(既存の ExclusionReason に追加するか検討)
  • CLI で、出力先が root 配下にある場合はそのパスを除外に加え、上記の warning を不要にする

Refs #4, #6, #34

🤖 Generated with Claude Code

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