From e2008513b5fb4ae71d87ca6d05bdab5f3cb3a53f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 18 Jun 2026 14:05:46 -0400 Subject: Micromamba improvement (#148) * Update micromamba installation logic * Split installation from micromamba() into micromamba_install() * Return -1 when micromamba cannot be installed * Add stasis.ini option "indexer.micromamba_download_url" * Add global variable micromamba_download_url * The installation function attempts two known-good URLs by default * * Add indexer arugment '--micromamba-download-url' * Add is_file_compressed() function to utils * Call micromamba_install() from tests * Add space in usage statement * Fix usage output when option array contains arguments without short options * Add --micromamba-download-url to README.md --- tests/test_conda.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_conda.c b/tests/test_conda.c index bbbef3c..4d0b4d8 100644 --- a/tests/test_conda.c +++ b/tests/test_conda.c @@ -26,6 +26,7 @@ void test_micromamba() { for (size_t i = 0; i < sizeof(tc) / sizeof(*tc); i++) { struct testcase *item = &tc[i]; + STASIS_ASSERT(micromamba_install(&item->mminfo) == 0, "micromamba installation failed"); int result = micromamba(&item->mminfo, (char *) item->cmd); if (result > 0) { result = result >> 8; -- cgit