Skip to content

Don't drop build_runner.zig next to executable #634

@LordMZTE

Description

@LordMZTE

Zig Version

0.10.0-dev.3685+dae7aeb33

Zig Language Server Version

38210d3

Steps to Reproduce

Start zls in a project. If the zls binary is installed in a read-only directory, such as /usr/bin this will crash with a permission denied error.

Expected Behavior

zls doesn't try to drop any files next to its executable, and instead uses some alternative path such as zig-cache or /tmp.

Actual Behavior

zls tries to create a build_runner.zig file next to its executable. This often fails, for example when zls is installed in /usr/bin (tries to create /usr/bin/build_runner.zig), and needlessly pollutes the filesystem.

This was introduced in 38210d3e9183a77dfe10e0d0f4a79d2999ce3cf7.

Once we agree on a solution, I'd very much like to implement it. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions