#Make package manager also download source code locally
1 messages · Page 1 of 1 (latest)
that's... what the package manager does? maybe i'm misunderstanding your question
but zig packages are source code
Maybe it doesn't work with dependencies in C, but I basically just want a folder in my project with all the source code of that dependency... say the raylib graphics library for example.
it'll download it to the global zig cache, but yes it will give you access to the source code
is there a particular reason you want it in your project folder specifically?
I do that with all my projects so that they are all self contained with everything I need to build (also makes archiving them on a backup drive easier).
right, well if you use the package manager it can still download all the things you need to build the project on demand
if you really want to you can back up the global zig cache too
you may also be interested in this issue: https://github.com/ziglang/zig/issues/14283
I just read through the proposal. That's exactly what I would like to have. Also noticed now that the source code is really in the global Zig cache, just hidden under some hash value for that folder while I though those were just some build artifacts. Thanks for pointing me to it!