Commit 9d2724e
authored
feat: add --pipeline-dirs flag to build command (#2323)
* feat: add --pipeline-dirs flag to build command
Adds --pipeline-dirs flag to accept multiple pipeline directories,
matching the test command functionality. The existing --pipeline-dir
(singular) is kept for backward compatibility.
Directories are searched in order with first match winning. For example,
if both custom1/fetch.yaml and custom2/fetch.yaml exist, custom1 wins:
melange build --pipeline-dirs custom1 --pipeline-dirs custom2 --pipeline-dir original config.yaml
# Searches: original/ -> custom1/ -> custom2/ -> /usr/share/melange/pipelines/
This enables layered pipeline overrides for teams with shared repositories.
Search order:
1. --pipeline-dir value (if specified)| (for backward compatibility)
2. --pipeline-dirs values (left to right)
3. Built-in pipeline directory
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
* update the docs
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
---------
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>1 parent 0f2f34d commit 9d2724e
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
194 | | - | |
| 196 | + | |
| 197 | + | |
195 | 198 | | |
196 | | - | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
247 | 256 | | |
248 | 257 | | |
249 | 258 | | |
| |||
0 commit comments