Commit 92fa8ed
committed
Avoid uselessly trying to migrate plugins
The only time we need to migrate context-scope plugins is after moving
from a CLI < 1.3 to a newer one. This commit makes use of the existing
global initializer to do this migration once, for all contexts.
This avoids an unnecessary slow down for every CLI commands, especially
shell completion which should be as fast as possible.
Signed-off-by: Marc Khouzam <marc.khouzam@broadcom.com>1 parent 92c98e8 commit 92fa8ed
5 files changed
Lines changed: 408 additions & 248 deletions
File tree
- pkg
- catalog
- globalinit
- pluginsupplier
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
54 | 53 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
66 | | - | |
67 | | - | |
| 60 | + | |
| 61 | + | |
68 | 62 | | |
69 | 63 | | |
70 | | - | |
71 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
0 commit comments