aboutsummaryrefslogtreecommitdiff
path: root/src/conda.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass .ci_support/plat_arch_.yaml to conda-build (#8)Joseph Hunkeler2024-06-241-5/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Rebrand OhMyCal (OMC) as STASIS (#7)Joseph Hunkeler2024-06-211-13/+11
|
* Clean upJoseph Hunkeler2024-05-021-2/+3
| | | | | * Add comment * Remove unused code
* Increase buffer size to match input argument sizesJoseph Hunkeler2024-04-101-1/+1
|
* Disable conda's sanity checks. (i.e. don't verify every transaction)Joseph Hunkeler2024-04-021-5/+6
|
* Changes to strlist_*() functions:Joseph Hunkeler2024-04-021-2/+2
| | | | | Functions that modify the input StrList have been refactored to use `struct StrList **` instead of `struct StrList *`. * Fixes realloc error handling
* Use GENERIC_ARRAY_FREE instead of split_free()Joseph Hunkeler2024-03-221-1/+1
|
* Use do/while in guard_* macros to make them behave more like functionsJoseph Hunkeler2024-03-101-4/+4
|
* Fixes several memory leaksJoseph Hunkeler2024-02-261-0/+4
|
* Refactor std{out,err} to f_std{out,err}Joseph Hunkeler2024-02-061-2/+2
| | | | * Bare stdout and stderr, even as struct members, tend to conflict with numerous libc implementations.
* Use shell() in place of shell2()Joseph Hunkeler2024-01-291-1/+1
|
* Install conda and pip packagesJoseph Hunkeler2023-12-101-9/+48
|
* Add function conda_check_required()Joseph Hunkeler2023-12-101-0/+37
| | | | * First pass. Needs work.
* Set solver to libmamba by defaultJoseph Hunkeler2023-12-101-0/+1
|
* Set conda to quiet mode when verbosity is not toggledJoseph Hunkeler2023-12-101-1/+7
|
* Use "env" program instead of "printenv" shell built-in to read environmentJoseph Hunkeler2023-12-101-1/+1
|
* Use TMPDIR, and fail when script cannot be executed within that filesystemJoseph Hunkeler2023-11-201-1/+4
|
* Implements slightly improved error handlingJoseph Hunkeler2023-11-201-27/+32
| | | | | | | * Return status from conda_ and delivery_ functions * Caller prints meaningful error, and handles it * Enable warnings during compilation * Squelch format-truncation warning -- those strings are extremely unlikely to overflow (famous last words)
* Replaces BUFSIZ with OMC_BUFSIZJoseph Hunkeler2023-11-201-1/+1
|
* Consolidate conda_setup_headless() from main.cJoseph Hunkeler2023-10-311-1/+15
|
* Parse output of "printenv -0" to preserve environment correctlyJoseph Hunkeler2023-10-311-10/+30
| | | | | | * Use fgetc in place of fgets * Split key/value on '=' * Issue warnings on invalid key/value
* Initial commitJoseph Hunkeler2023-10-261-0/+176