You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,64 @@ For instance, consider the following two files:
135
135
```
136
136
The resulting extension import would import vcs2l at version `main`, `immutable/hash` at version `25e4ae2` and `immutable/tag` at version `1.1.5`.
137
137
138
+
#### Multiple Extensions
139
+
140
+
The `extends` key also supports a list of files to extend from. The files are imported in the order they are specified and the precedence is given to the last file in case of duplicate repository entries.
141
+
142
+
For instance, consider the following three files:
143
+
144
+
- **`base_1.repos`**: contains two repositories `vcs2l` and `immutable/hash`, checked out at `1.1.3`.
The resulting extension import would import `immutable/hash` at version `1.1.4` (from `base_2.repos`) and `vcs2l` at version `1.1.5`.
189
+
190
+
Duplicate file names in the `extends` list are not allowed and would raise the following error:
191
+
192
+
```bash
193
+
Duplicate entries found in extends in file: <relative-path>/multiple_extension.repos
194
+
```
195
+
138
196
#### Circular Loop Protection
139
197
140
198
In order to avoid infinite loops in case of circular imports the tool detects already imported files and raises an error if such a file is encountered again.
0 commit comments