Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zigup does not compile with latest master (0.11.0-dev.1782+b52be973d) #81

Open
DivergentClouds opened this issue Feb 22, 2023 · 1 comment

Comments

@DivergentClouds
Copy link

I get the error

/home/clouds/Downloads/zigup/GitRepoStep.zig:60:14: error: expected type '[]const u8', found 'Build.Cache.Directory'
            b.build_root,
            ~^~~~~~~~~~~
/home/clouds/zig/0.11.0-dev.1782+b52be973d/files/lib/std/Build/Cache.zig:5:23: note: struct declared here
pub const Directory = struct {
                      ^~~~~~
referenced by:
    buildOrFail: /home/clouds/Downloads/zigup/build.zig:22:35
    buildNoreturn: /home/clouds/Downloads/zigup/build.zig:14:17
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

/home/clouds/Downloads/zigup/build.zig:52:43: error: expected type '[]const u8', found 'Build.Cache.Directory'
    run_step.addArg(self.pathFromRoot(self.cache_root));
                                      ~~~~^~~~~~~~~~~
/home/clouds/zig/0.11.0-dev.1782+b52be973d/files/lib/std/Build/Cache.zig:5:23: note: struct declared here
pub const Directory = struct {
                      ^~~~~~
/home/clouds/zig/0.11.0-dev.1782+b52be973d/files/lib/std/Build.zig:1344:35: note: parameter type declared here
pub fn pathFromRoot(b: *Build, p: []const u8) []u8 {
                                  ^~~~~~~~~~
/home/clouds/Downloads/zigup/GitRepoStep.zig:186:24: error: expected type '?[]const u8', found 'Build.Cache.Directory'
    child.cwd = builder.build_root;
                ~~~~~~~^~~~~~~~~~~
/home/clouds/zig/0.11.0-dev.1782+b52be973d/files/lib/std/Build/Cache.zig:5:23: note: struct declared here
pub const Directory = struct {

when compiling on version 0.11.0-dev.1782+b52be973d

@resolritter
Copy link

resolritter commented Apr 29, 2023

Try using 0.11.0-dev.1507+6f13a725a, which is what CI currently uses:

version: 0.11.0-dev.1507+6f13a725a

You can download Zig versions manually from https://ziglang.org/builds/zig-$TARGET-$VERSION.tar.xz, e.g. https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.1782+b52be973d.tar.xz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants