Skip to content

Zig env's output is no longer json #49

@tw4452852

Description

@tw4452852

With ziglang/zig@0fb7a0a, zig env will not output json anymore, we need to find a better way to accomodate this change when we try to detect cache directory:

setup-zig/common.js

Lines 204 to 211 in 475c97b

await exec.exec('zig', ['env'], {
listeners: {
stdout: (data) => {
env_output += data.toString();
},
},
});
return JSON.parse(env_output)['global_cache_dir'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions