mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(submodules): allow to match submodules by version prefix
This commit is contained in:
parent
d530750ffe
commit
5a7eefc489
1 changed files with 3 additions and 1 deletions
|
|
@ -93,9 +93,11 @@ let
|
|||
};
|
||||
|
||||
findModule = {name, version ? null, latest ? true}: let
|
||||
versionPrefix = head (splitString [".x"] version);
|
||||
|
||||
matchingSubmodules = filter (el:
|
||||
el.definition.name == name &&
|
||||
(if version != null then el.definition.version == version else true)
|
||||
(if version != null then hasPrefix versionPrefix el.definition.version else true)
|
||||
) cfg.imports;
|
||||
|
||||
versionSortedSubmodules = sort (s1: s2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue