aboutsummaryrefslogtreecommitdiff
path: root/src/stasis_main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-06-24 11:23:26 -0400
committerGitHub <noreply@github.com>2024-06-24 11:23:26 -0400
commitabe87056faa6ed02aff3bbf77c1fd78b713a0864 (patch)
treee97960b2393979e6c05bab40c610083e5925cd0a /src/stasis_main.c
parent27c475ccd857ca6f75605938ee0d83e13973672d (diff)
downloadstasis-abe87056faa6ed02aff3bbf77c1fd78b713a0864.tar.gz
Pass .ci_support/plat_arch_.yaml to conda-build (#8)
* Pass .ci_support/plat_arch_.yaml to conda-build * Fixes a few outstanding leaks in delivery context * Move micromamba function out of stasis_indexer.c * Adjust code in the indexer to accommodate the move. The function now expects a MicromambaInfo structure as its first argument. * Add missing warning message * User is informed when pandoc is not available for HTML page generation * Initialize workdir_template string to zero * Add micromamba program to runtime PATH * Expose storage.tools_dir to template engine * Remove dead code * Fix wording in comment * Fix conda-forge builds * Pass their .ci_support configurations to conda-build in order to fully set up their build runtime environment * Add get_cpu_count() * Exposes STASIS_CPU_COUNT and CPU_COUNT to the runtime environment * Implements conda reactivation template string * {{ workaround.conda_reactivate }} * This is useful to call after installing any conda packages within a test.script * Fix conda runtime inside of test.script * This ensures conda and mamba are fully initialized. * Previous behavior only placed the commands on the PATH but didn't provide any shell macros (i.e. undefined behavior) * Document CPU_COUNT and workaround.conda_reactivate
Diffstat (limited to 'src/stasis_main.c')
-rw-r--r--src/stasis_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stasis_main.c b/src/stasis_main.c
index 8b13b98..c550982 100644
--- a/src/stasis_main.c
+++ b/src/stasis_main.c
@@ -248,6 +248,7 @@ int main(int argc, char *argv[]) {
tpl_register("storage.build_sources_dir", &ctx.storage.build_sources_dir);
tpl_register("storage.build_docker_dir", &ctx.storage.build_docker_dir);
tpl_register("storage.results_dir", &ctx.storage.results_dir);
+ tpl_register("storage.tools_dir", &ctx.storage.tools_dir);
tpl_register("conda.installer_baseurl", &ctx.conda.installer_baseurl);
tpl_register("conda.installer_name", &ctx.conda.installer_name);
tpl_register("conda.installer_version", &ctx.conda.installer_version);
@@ -257,6 +258,7 @@ int main(int argc, char *argv[]) {
tpl_register("deploy.jfrog.url", &globals.jfrog.url);
tpl_register("deploy.docker.registry", &ctx.deploy.docker.registry);
tpl_register("workaround.tox_posargs", &globals.workaround.tox_posargs);
+ tpl_register("workaround.conda_reactivate", &globals.workaround.conda_reactivate);
// Set up PREFIX/etc directory information
// The user may manipulate the base directory path with STASIS_SYSCONFDIR