ratfactor / ziglings

Learn the Zig programming language by fixing tiny broken programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build with "zig build"

zomglings opened this issue · comments

I am trying to set up ziglings.org locally so that I can do the exercises.

After cloning the repo and running zig build, this is the error I see (after obfuscating my home directory as $HOME):

/test/tests.zig:11:18: error: root struct of file 'std' has no member named 'build'
const Build = std.build;
              ~~~^~~~~~
$HOME/zig/lib/std/std.zig:1:1: note: struct declared here
pub const ArrayHashMap = array_hash_map.ArrayHashMap;
^~~
referenced by:
    Step: $HOME/learn/ziglings.org/test/tests.zig:15:14
    addCliTests: $HOME/learn/ziglings.org/test/tests.zig:19:65
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

My zig version:

$ zig version
0.12.0-dev.2043+6ebeb85ab

Please use the recent version from https://ziglings.org

That is the version I am using. I cloned the repo using:

git clone https://ziglings.org

We updated 15 Minutes ago. Now it works again.

Thanks @chrboesch . Can confirm that it's working now. Appreciate it.