Skip to content

Commit 7526406

Browse files
committed
quarto-bld - pandoc symlink vendoring
Note that if we are being instructed not to vendor binaries, Pandoc won't be present in the architecture specific directory, so just skip this step. See conda-forge/quarto-feedstock#36
1 parent 4cc168d commit 7526406

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package/src/common/configure.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@ export async function configure(
4646
copyQuartoScript(config, config.directoryInfo.bin);
4747

4848
info("Creating architecture specific Pandoc link");
49-
copyPandocScript(config, join(config.directoryInfo.bin, "tools"));
49+
const vendor = Deno.env.get("QUARTO_VENDOR_BINARIES");
50+
if (vendor === undefined || vendor === "true") {
51+
// Quarto tools may look right in the bin/tools directory for Pandoc
52+
// so make a symlink that points to the architecture specific version.
53+
// Note that if we are being instructed not to vendor binaries,
54+
// Pandoc won't be present in the architecture specific directory, so
55+
// just skip this step.
56+
copyPandocScript(config, join(config.directoryInfo.bin, "tools"));
57+
}
5058

5159
// record dev config. These are versions as defined in the root configuration file.
5260
const devConfig = createDevConfig(

0 commit comments

Comments
 (0)