diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 09:12:13 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 09:12:34 -0400 |
commit | 9eddd1402611a31866e7f67796ea4cafbd74c5b9 (patch) | |
tree | 96fe668889a9cf79a4cedef66652f57f9b12cb04 | |
parent | f32741e227dc95ade06a6b030a91d31cb396afd8 (diff) | |
download | stasis-9eddd1402611a31866e7f67796ea4cafbd74c5b9.tar.gz |
A conda package version will be the repository tag resolved by git describe, or to the extact version requested by a [test: block if that's not possible.
-rw-r--r-- | src/deliverable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index c1ed078..c1e1a77 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -904,7 +904,7 @@ int delivery_build_recipes(struct Delivery *ctx) { //sprintf(recipe_git_url, " git_url: %s", ctx->tests[i].repository); //sprintf(recipe_git_rev, " git_rev: %s", ctx->tests[i].version); // TODO: Conditionally download archives if github.com is the origin. Else, use raw git_* keys ^^^ - sprintf(recipe_version, "{%% set version = \"%s\" %%}", ctx->tests[i].version); + sprintf(recipe_version, "{%% set version = \"%s\" %%}", ctx->tests[i].repository_info_tag ? ctx->tests[i].repository_info_tag : ctx->tests[i].version); sprintf(recipe_git_url, " url: %s/archive/refs/tags/{{ version }}.tar.gz", ctx->tests[i].repository); strcpy(recipe_git_rev, ""); sprintf(recipe_buildno, " number: 0"); |