ratfactor / ziglings

Learn the Zig programming language by fixing tiny broken programs.
MIT License
4.32k stars 479 forks source link

Cannot build with "zig build" #369

Closed zomglings closed 10 months ago

zomglings commented 10 months ago

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
chrboesch commented 10 months ago

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

zomglings commented 10 months ago

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

git clone https://ziglings.org
chrboesch commented 10 months ago

We updated 15 Minutes ago. Now it works again.

zomglings commented 10 months ago

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