Commit dbb2fdc
committed
app: more versatile initialization for path in config
in case a manifest file is contained into some sub directories,
the command to init a workspace locally should be
```
west init -l sub1/sub2 --mf west.yml
```
but in that case, the west top dir is going to be into `sub1`
which is an issue.
one workaround is to use:
```
west init -l sub1 --mf sub2/west.yml
```
but in that case, the config is initialized incorrectly:
`manifest.path` contains only `sub1` and `manifest.file` is `sub2/west.yml`.
`manifest.path` should contain a path, even if `--mf` is a relative path.
`manifest.file` should only contain the filename.
this change allows any usage so that the workspace top dir is created next to `sub1`
and the manifest repo can be located into nested directories
Signed-off-by: Cyril Fougeray <[email protected]>1 parent 361004d commit dbb2fdc
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments