#Make package manager also download source code locally

1 messages · Page 1 of 1 (latest)

karmic talon
#

Is there a way to make the package manager also download the source code of the dependencies? Currently I use git submodules for this and was wondering if there is an integrated way to do this with the package manager.

gray trench
#

but zig packages are source code

karmic talon
#

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.

gray trench
#

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?

karmic talon
#

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).

gray trench
#

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

karmic talon
#

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!