#Dependency Chain Question

1 messages · Page 1 of 1 (latest)

unreal echo
#

Say I have 3 libs. A uses B and C, and B uses C. It is important that the same version of C is used. Which is better practice, to re-export C in B, or is there a way to get B's dependency of C in A's build script and have it as a dependency for A?

#

(also note that B exports functions that take in types from C)

slender fossil
#

If A depends on a version of C with the same hash, then they are the same dependency.
A could also access C through B, B.build.dependency("C", .{}).

regardless of the above, try to pass the same args as B does to C, it might work if you cant do that, but it will work if you do.

not working is in the form of file in multiple module errors, or type errors for types from C that should be the same when one of them comes through B and the other through A.