Hello!

I am a Windows developer with passion on indie game development. If you would like to talk to me, kindly drop me an email at fuzhouch@gmail.com.

Posts

2023-08-19

A workaround to build Zig projects without direct network connection

Motivation Starting from Zig 0.11.0, a new feature called build.zig.zon is introduced. It’s basically a package management system, that allows developer to define dependencies of projects. When running zig build command, it automatically reads build.zig.zon file, and download a package from remote URL, extracts package to local path, then set references of build path for zig compiler. I copied the file from zls as an example. We can see it depends on three packages, two from Github archive and one from Gist.