Skip to content

feat: Switch to using a compiled yanglint - #11668

Open
xorrkaz wants to merge 1 commit into
ietf-tools:mainfrom
xorrkaz:jclarke-build-libyang
Open

feat: Switch to using a compiled yanglint#11668
xorrkaz wants to merge 1 commit into
ietf-tools:mainfrom
xorrkaz:jclarke-build-libyang

Conversation

@xorrkaz

@xorrkaz xorrkaz commented Aug 28, 2026

Copy link
Copy Markdown

The Debian packages lag the release of libyang and its yanglint and yangre tools. Switch to using a multi-stage Dockerfile to build libyang from source based on a release tag. Copy the compiled artifacts into the base runtime image.

This should satisfy the needs of the IETF community that need to do validation of modern features like structure augments, YANG Semver, etc.

IMAGE                     ID             DISK USAGE   CONTENT SIZE   EXTRA
datatracker-base:latest   781197738c76       2.19GB         2.19GB
root@105c0a75f01d:/workspace# yanglint
YANGLINT[W]: Configuration directory "/root/.yanglint" does not exist, creating it.
YANGLINT[W]: No saved history.
>
root@105c0a75f01d:/workspace# yanglint --version
yanglint 5.8.6

The Debian packages lag the release of libyang and its yanglint and
yangre tools.  Switch to using a multi-stage Dockerfile to build libyang
from source based on a release tag.  Copy the compiled artifacts into
the base runtime image.

This should satisfy the needs of the IETF community that need to do
validation of modern features like structure augments, YANG Semver, etc.

```
IMAGE                     ID             DISK USAGE   CONTENT SIZE   EXTRA
datatracker-base:latest   781197738c76       2.19GB         2.19GB
```

```
root@105c0a75f01d:/workspace# yanglint
YANGLINT[W]: Configuration directory "/root/.yanglint" does not exist, creating it.
YANGLINT[W]: No saved history.
>
root@105c0a75f01d:/workspace# yanglint --version
yanglint 5.8.6
```
@jennifer-richards
jennifer-richards self-requested a review September 1, 2026 01:26
@jennifer-richards jennifer-richards self-assigned this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants