Commit 4f1107a
authored
azure-pipelines: install libyang3 instead of libyang1 (#4578)
sonic-buildimage no longer builds the libyang1 debs (libyang_1.0.73,
libyang-cpp, python3-yang); it now builds only libyang3. Update the CI
deb install steps in azure-pipelines.yml and the dependency list in
README.md to install libyang3_*.deb and python3-libyang_*.deb instead,
using versionless globs. The libyang-cpp deb has no libyang3 equivalent
and is dropped.
Updated the deb install lists in azure-pipelines.yml (both Install Debian dependencies steps) and the dependency list in README.md, applying the following mapping:
libyang_1.0.73_amd64.deb -> libyang3_*.deb
libyang-cpp_1.0.73_amd64.deb -> removed (no libyang3 equivalent)
python3-yang_1.0.73_amd64.deb -> python3-libyang_*.deb
Versionless globs are used throughout so the CI does not need to track exact package versions.
The .semgrep/no-direct-libyang.yml guard rule was left unchanged; it forbids direct import libyang (routing through sonic-yang-mgmt instead) and is not a deb reference.
How to verify it
In the CI Install Debian dependencies steps, the dpkg -i commands now reference libyang3_*.deb and python3-libyang_*.deb, which match the debs produced by current sonic-buildimage. No libyang1 deb references (libyang_1, libyang-cpp, python3-yang) remain in azure-pipelines.yml or README.md.
Part of sonic-net/sonic-buildimage#22385.
Signed-off-by: Brad House <bhouse@nexthop.ai>1 parent 1b6d979 commit 4f1107a
2 files changed
Lines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 84 | + | |
| 85 | + | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
235 | 232 | | |
236 | 233 | | |
237 | 234 | | |
238 | | - | |
239 | | - | |
240 | | - | |
| 235 | + | |
| 236 | + | |
241 | 237 | | |
242 | 238 | | |
243 | 239 | | |
| |||
0 commit comments