not recognizing change in dependency
cat1000101 opened this issue · comments
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
make a project that is structured so that there is another project inside of it meaning:
lets have a main projext called test
inside of its src we have another project that we depend on it we call that project lets say test2
now in the main project we in the zon add a dependency called test2
like this:
.dependencies = .{
.test2 = .{
.path = "src/test2",
},
},
now the test2 project just compiles ome files into a test2.elf that we can refrence in the main build.zig that we use to do things like make an iso
we refrence it by in the main build.zig doing
const test2_dep = b.dependency("test2", .{});
const test2 = test2_dep.artifact("test2.elf");
b.installArtifact(test2);
now we can refrence test2 as if it was a *step.compile
and use it to make a iso with the output bin
the problem is that after building for the first time it works but after the first time the zig build doesnt try to recompile the inner project
for example i change the test2 main file to print another thing and in my example print out of the qemu using port e9 meow and save then i try to do a zig build it just doesnt see a change
i did make a depend step for everything and make a step that just depends on every step called all so i always used it
for more info:
zig (0.13.0)
fedora linux 40
i did add all files in the zon file in both projects
for the repo of the original code that i found this in which is my project : https://github.com/cat1000101/NyaOS
there what i did is to
zig build run
which builds everything and run
then i did a change in the kernel, any change did the trick like removing the content of a full file
then try to recompile again using
zig build run
and it didnt register the change just run it again without compiling anything or doing naything
Expected Behavior
i was expecting the zig build to parse through the dependency and find if there was a change and build it too