Cannot build with "zig build"
zomglings opened this issue · comments
Neeraj Kashyap commented
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
Chris Boesch commented
Please use the recent version from https://ziglings.org
Neeraj Kashyap commented
That is the version I am using. I cloned the repo using:
git clone https://ziglings.org
Chris Boesch commented
We updated 15 Minutes ago. Now it works again.
Neeraj Kashyap commented
Thanks @chrboesch . Can confirm that it's working now. Appreciate it.