Skip to content

fix: add libudev-dev to dependency installation for improved compatib…#550

Merged
felix-schultz merged 1 commit intoalphafrom
dev
Apr 2, 2026
Merged

fix: add libudev-dev to dependency installation for improved compatib…#550
felix-schultz merged 1 commit intoalphafrom
dev

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

…ility

@felix-schultz felix-schultz merged commit 9e0b061 into alpha Apr 2, 2026
12 of 14 checks passed
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the setup-environment GitHub Action to include libudev-dev in the installed packages. The reviewer suggests incrementing the cache version to ensure the new dependency is correctly picked up and recommends using a YAML folded block scalar for improved readability of the package list.

uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libclang-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-dev pkg-config protobuf-compiler webkit2gtk-4.1 libglib2.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libxcb1-dev libxrandr-dev libdbus-1-dev libpipewire-0.3-dev libwayland-dev libegl-dev
packages: libgtk-3-dev libclang-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-dev pkg-config protobuf-compiler webkit2gtk-4.1 libglib2.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libxcb1-dev libxrandr-dev libdbus-1-dev libpipewire-0.3-dev libwayland-dev libegl-dev libudev-dev
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

When adding a new dependency to the packages list, it is important to increment the version on line 32 (e.g., to 1.1) to invalidate the existing cache. If the version is not updated, GitHub Actions may use a previously cached environment that lacks libudev-dev, which would prevent the fix from being applied in workflows where a cache already exists.

Additionally, consider using a YAML folded block scalar (>-) to list the packages. This significantly improves readability and makes it easier to manage dependencies in the future.

        packages: >-
          libgtk-3-dev
          libclang-dev
          libjavascriptcoregtk-4.1-dev
          libsoup-3.0-dev
          pkg-config
          protobuf-compiler
          webkit2gtk-4.1
          libglib2.0-dev
          libwebkit2gtk-4.1-dev
          libappindicator3-dev
          librsvg2-dev
          patchelf
          libxcb1-dev
          libxrandr-dev
          libdbus-1-dev
          libpipewire-0.3-dev
          libwayland-dev
          libegl-dev
          libudev-dev

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.

1 participant