Skip to content

Respect XDG directory settings on macOS #25167

@aaronsky

Description

@aaronsky

Description of the feature request:

Per #16937, while the XDG Base Directory spec is more commonly adopted on Linux, there's little I'm aware of in the way of supporting it on macOS for those users who set the environment variables. Is this something that can be added as a secondary option for that platform, or is there something special about /private/var/tmp as an output root?

Which category does this issue belong to?

Core

What underlying problem are you trying to solve with this feature?

A similar issue as interrogated with #16937, but for macOS instead of just Linux.

Which operating system are you running Bazel on?

macOS 15.3

What is the output of bazel info release?

release 8.0.1

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)help wantedSomeone outside the Bazel team could own thisteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions