Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): install rust plugin dependencies #768

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Conversation

tigarmo
Copy link
Contributor

@tigarmo tigarmo commented Jul 2, 2024

I don't know why this started happening just recently, but it looks like the CI
runner does not have the pkg-config (a rust plugin dep) package installed.
Instead, it looks like it has pkgconf, pulled in by r-base-dev. I say this
because those get removed when we explicitly install pkg-config:

...
 The following packages will be REMOVED:
   pkgconf r-base-dev
 The following NEW packages will be installed:
   autopoint cmake cmake-data dh-elpa-helper gperf help2man libjsoncpp25
   librhash0 ninja-build pkg-config qt5-qmake qt5-qmake-bin qtchooser scons
 0 upgraded, 14 newly installed, 2 to remove and 41 not upgraded.
...

@tigarmo tigarmo force-pushed the work/rust-deps-ci branch 3 times, most recently from 199c110 to 0441220 Compare July 2, 2024 22:43
I don't know why this started happening just recently, but it looks like the CI
runner does not have the `pkg-config` (a rust plugin dep) package installed.
Instead, it looks like it has `pkgconf`, pulled in by `r-base-dev`. I say this
because those get removed when we explicitly install `pkg-config`:

```
...
 The following packages will be REMOVED:
   pkgconf r-base-dev
 The following NEW packages will be installed:
   autopoint cmake cmake-data dh-elpa-helper gperf help2man libjsoncpp25
   librhash0 ninja-build pkg-config qt5-qmake qt5-qmake-bin qtchooser scons
 0 upgraded, 14 newly installed, 2 to remove and 41 not upgraded.
...
```
@tigarmo tigarmo changed the title chore(ci): install packages used by the rust plugin chore(ci): install rust plugin dependencies Jul 3, 2024
@tigarmo tigarmo marked this pull request as ready for review July 3, 2024 11:52
@tigarmo tigarmo requested a review from a team July 3, 2024 12:01
Copy link
Contributor

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

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

Question - those packages are listed here (

return {"curl", "gcc", "git", "pkg-config", "findutils"}
), doesn't craft-parts install those itself?

@mr-cal mr-cal requested a review from a team July 3, 2024 13:24
@tigarmo
Copy link
Contributor Author

tigarmo commented Jul 3, 2024

Question - those packages are listed here (

return {"curl", "gcc", "git", "pkg-config", "findutils"}

), doesn't craft-parts install those itself?

exactly, that's the call that fails because the user running the tests isn't root (E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?)

@tigarmo tigarmo merged commit deed6a3 into main Jul 3, 2024
10 checks passed
@tigarmo tigarmo deleted the work/rust-deps-ci branch July 3, 2024 13:44
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.

3 participants