Skip to content

Failed to build with 0.15.1 and 0.15.2 #238

Description

@wisonlau

I'm on macOS 13.7.6 with 2 zigs installed:

$ zvm ls
0.15.1
0.15.2

Make sure the default zig compiler is 0.15.1

$ zvm use 0.15.1

Now create a Jetzig project and try to run it

$ jetzig init test01
Creating new project in /Users/heysir/wwwroot/yi/zig/jetzig/study/test01

[create] build.zig ✅
[create] config/database.zig ✅
[create] src/main.zig ✅
[create] src/app/middleware/DemoMiddleware.zig ✅
[create] src/app/views/root.zig ✅
[create] src/app/views/root/index.zmpl ✅
[create] src/app/views/root/_content.zmpl ✅
[create] public/jetzig.png ✅
[create] public/zmpl.png ✅
[create] public/favicon.ico ✅
[create] public/styles.css ✅
[create] .gitignore ✅
(working) . (done)
 ✅ zig fetch --save https://github.com/jetzig-framework/jetzig/archive/5c33b6b5218a53507467ae0647d977f0f659b510.tar.gz

Setup complete! ✈️ 🦎

Launch your new application:

    $ cd /Users/heysir/wwwroot/yi/zig/jetzig/study/test01

    $ zig build run or jetzig server

And then browse to http://localhost:8080/

$ cd test01

$ jetzig server
Launching development server. [reload:enabled]
(working) ... (done)
 ❌

[stderr]:
build.zig:10:10: error: no field named 'root_source_file' in struct 'Build.ExecutableOptions'
        .root_source_file = b.path("src/main.zig"),
         ^~~~~~~~~~~~~~~~
/Users/heysir/.zvm/0.15.1/lib/std/Build.zig:771:31: note: struct declared here
pub const ExecutableOptions = struct {
                              ^~~~~~
referenced by:
    runBuild__anon_20539: /Users/heysir/.zvm/0.15.1/lib/std/Build.zig:2215:44
    main: /Users/heysir/.zvm/0.15.1/lib/compiler/build_runner.zig:366:29
    4 reference(s) hidden; use '-freference-trace=6' to see all references

Build failed, waiting for file change...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions