Skip to content

Commit 4b63470

Browse files
authored
azure-pipelines: install only libyang3 (drop libyang1) (#697)
#### Description Update the CI pipeline to install only the libyang3 Debian packages and drop the libyang1 packages. sonic-buildimage no longer builds libyang1 (`libyang_1.0.73`); it now builds only libyang3, so the libyang1 download filter and install command no longer resolve to any artifact. The libyang3 packages (`libyang3_*.deb`, `python3-libyang*.deb`) were already added during the transition (#589) and remain in place using versionless globs. #### Motivation and Context sonic-buildimage stopped building the libyang1 packages (`libyang_1.0.73`, `libyang-cpp`, `python3-yang`) and now builds only libyang3 (see sonic-net/sonic-buildimage#22385). A prior change (#589) installed both libyang1 and libyang3 during the transition. With libyang1 gone, the `target/debs/trixie/libyang_1.0.73_amd64.deb` download filter and the `sudo dpkg -i libyang_1.0.73_amd64.deb` install step reference an artifact that no longer exists, which would break the pipeline. This change removes those libyang1 references and keeps only the libyang3 globs. #### How Has This Been Tested? Verified that after the change `azure-pipelines.yml` no longer references the libyang1 package and only references libyang3 packages via versionless globs (`libyang3_*.deb`, `python3-libyang*.deb`). The Debian dependency download and install steps continue to resolve against the libyang3 artifacts produced by current sonic-buildimage builds. #### Additional Information (Optional) Part of sonic-net/sonic-buildimage#22385. Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
1 parent 4293980 commit 4b63470

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

azure-pipelines.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ steps:
4242
- script: |
4343
set -xe
4444
sudo apt-get -y purge libnl-3-dev libnl-route-3-dev || true
45-
sudo dpkg -i libyang_1.0.73_amd64.deb \
46-
libyang3_*.deb \
45+
sudo dpkg -i libyang3_*.deb \
4746
python3-libyang*.deb \
4847
libnl-3-200_*.deb \
4948
libnl-genl-3-200_*.deb \

0 commit comments

Comments
 (0)