aboutsummaryrefslogtreecommitdiff
path: root/src/conda.c
Commit message (Collapse)AuthorAgeFilesLines
* Return early if unpacking the micromamba binary failsJoseph Hunkeler2024-07-131-1/+4
|
* Change return value of conda_setup_headless() from void to intJoseph Hunkeler2024-07-131-5/+7
| | | | * Replace exit() with return;
* Add github.c and github.h (#9)Joseph Hunkeler2024-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add github.c and github.h * Implements get_github_release_notes() * Remove unused variables * Fix circular dependency on tplfunc_frame * Remove predeclaration of tplfunc_frame * tpl_register_func accepts pointer to void instead * tpl_register_func sets maximum number of arguments * Frame is generated within tpl_register_func * Improve template function error handling and return/output management * Remove redundant extern statement * Include github.h and template_func_proto.h in core.h * Expose get_github_release_notes_tplfunc_entrypoint function to template engine * Add template_func_proto.c and template_func_proto.h * Replace free() with guard variant * Fix test_template::test_tpl_register_func * Fix tests * Fix tests * cmd should be at least PATH_MAX in size. * Magic number caused failure to install conda with a long installation path * Implement get_github_release_notes_auto function that bases release note data off test contexts * Disable overwriting releases by default * Add automatic release note generation function call to release_notes.md.in * Fix test_tpl_register_func() * Add enough space for tar command plus a path * Fix circular include * Github functions do not require access to core.h anyway * Add comments to union * Update README to mention template function availability * Add EnvCtl structure * Add runtime checks to avoid running all the way to the end only to be met with a configuration error. * Rename GITHUB to GH * Development docs pre-rough-draft
* 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