#Pass LazyPath to format string

1 messages · Page 1 of 1 (latest)

lean rapids
#

Is there a way to do this or anything that has the same effect? I need it to expand to the generated file path. (disk is LazyPath)
run_cmd.addArgs(&.{ "-drive", b.fmt("id=drive0,file={},format=raw,if=none", .{disk}) });

topaz flame
#

never escaped a LazyPath, it is needed to integrate properly with the build system, to avoid running things if inputs dont change, or to ensure the step that creates the path is run first, and re-use cached results

run steps have a variety of functions to pass lazy paths as arguments, choose the one that is most appropriate. You will probably have to split that into multiple args, if that is not supported by the program you will have to make a wrapper script

fading bolt
lean rapids
#

Genius