aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-06-30 12:18:49 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-06-30 12:18:49 -0400
commit62728c208a31c4667927408f109838ddda5d58e1 (patch)
tree839fb2ec6153496f643bdded0bce9ba728eb0add
parent2ab4c05b391945e876ac6b266642e3799fc3d536 (diff)
downloadstasis-allow-hashes-as-version.tar.gz
Allow git commit hashes in "version" fieldallow-hashes-as-version
-rw-r--r--src/lib/delivery/delivery_install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_install.c b/src/lib/delivery/delivery_install.c
index 7badecb..9e28093 100644
--- a/src/lib/delivery/delivery_install.c
+++ b/src/lib/delivery/delivery_install.c
@@ -243,7 +243,7 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha
if (INSTALL_PKG_PIP_DEFERRED & type) {
struct Test *info = requirement_from_test(ctx, name);
if (info) {
- if (!strcmp(info->version, "HEAD")) {
+ if (!strcmp(info->version, "HEAD") || is_git_sha(info->version)) {
struct StrList *tag_data = strlist_init();
if (!tag_data) {
SYSERROR("%s", "Unable to allocate memory for tag data\n");