Package Details: pods 2.1.2-1

Git Clone URL: https://aur.archlinux.org/pods.git (read-only, click to copy)
Package Base: pods
Description: Manage your Podman containers
Upstream URL: https://github.com/marhkb/pods
Licenses: GPL-3.0-or-later
Submitter: igor-dyatlov
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 3
Popularity: 0.000001
First Submitted: 2022-09-14 15:12 (UTC)
Last Updated: 2024-10-08 22:16 (UTC)

Latest Comments

SoftExpert commented on 2023-06-06 07:42 (UTC) (edited on 2023-06-07 06:46 (UTC) by SoftExpert)

It seems to be a Rust compiler regression introduced in 1.70.0. We need to either use Rust 1.69.x or wait for the next Rust release.

*edited: to add the link to the issue

SoftExpert commented on 2023-06-06 04:55 (UTC)

Getting the same error here; I opened an issue with the Pods author.

yochananmarqos commented on 2023-06-05 18:19 (UTC) (edited on 2023-06-05 18:20 (UTC) by yochananmarqos)

@igor-dyatlov: Did you actually build 1.2.2 successfully? It fails both a clean chroot and updating normally with Paru:

   Compiling pods v1.2.2 (/home/yochanan/.cache/paru/clone/pods/src/pods-1.2.2)
error[E0282]: type annotations needed for `std::result::Result<_, E>`
   --> src/view/container/commit_page.rs:187:47
    |
187 | ... move |user_info| {
    |           ^^^^^^^^^
188 | ...
189 | ...j.imp().author_entry_row.set_text(user_info.name()),
    |                                      --------- type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
187 |             clone!(@weak self as obj => move |user_info: std::result::Result<_, E>| {
    |                                                        +++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::result::Result<_, E>`
   --> src/model/action.rs:416:39
    |
416 |             clone!(@weak obj => move |result| if let Ok(result) = result {
    |                                       ^^^^^^
417 |                 match result.as_ref() {
    |                       ------ type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
416 |             clone!(@weak obj => move |result: std::result::Result<_, E>| if let Ok(result) = result {
    |                                             +++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::result::Result<std::result::Result<_, E>, E>`
   --> src/model/action.rs:498:56
    |
498 | ...   clone!(@weak obj, @weak container => move |result| if let Ok(result) = result {
    |                                                  ^^^^^^
...
506 | ...                   stream::Abortable::new(ar.into_inner(), abort_registration),
    |                                              -- type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
498 |             clone!(@weak obj, @weak container => move |result: std::result::Result<std::result::Result<_, E>, E>| if let Ok(result) = result {
    |                                                              +++++++++++++++++++++++++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::result::Result<_, E>`
   --> src/model/client.rs:179:43
    |
179 |                 clone!(@weak obj => move |info| match info {
    |                                           ^^^^
180 |                     Ok(info) => {
181 |                         obj.set_version(info.version.unwrap().version);
    |                                         ---- type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
179 |                 clone!(@weak obj => move |info: std::result::Result<_, E>| match info {
    |                                               +++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::result::Result<T, _>`
   --> src/view/container/health_check_page.rs:233:51
    |
233 |                 clone!(@weak self as obj => move |result| if let Err(e) = result {
    |                                                   ^^^^^^
...
237 |                         &e.to_string()
    |                          - type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
233 |                 clone!(@weak self as obj => move |result: std::result::Result<T, _>| if let Err(e) = result {
    |                                                         +++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::result::Result<T, E>`
   --> src/view/repo_tag/add_dialog.rs:112:67
    |
112 | ...                   clone!(@weak obj => move |result| match result {
    |                                                 ^^^^^^
...
118 | ...                           obj.set_error(&e.to_string());
    |                                              - type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
112 |                                         clone!(@weak obj => move |result: std::result::Result<T, E>| match result {
    |                                                                         +++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::option::Option<std::result::Result<push_page::RegistryAuth, E>>`
   --> src/view/repo_tag/push_page.rs:146:55
    |
146 | ...                   clone!(@weak obj => move |maybe| {
    |                                                 ^^^^^
...
174 | ...                                       &e.to_string()
    |                                            - type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
146 |                             clone!(@weak obj => move |maybe: std::option::Option<std::result::Result<push_page::RegistryAuth, E>>| {
    |                                                            ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `std::result::Result<T, _>`
   --> src/view/repo_tag/row.rs:190:55
    |
190 |                     clone!(@weak self as obj => move |result| if let Err(e) = result {
    |                                                       ^^^^^^
...
198 |                             &e.to_string()
    |                              - type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified
    |
190 |                     clone!(@weak self as obj => move |result: std::result::Result<T, _>| if let Err(e) = result {
    |                                                             +++++++++++++++++++++++++++

For more information about this error, try `rustc --explain E0282`.
error: could not compile `pods` (bin "pods") due to 8 previous errors
FAILED: src/pods 
/usr/bin/env CARGO_HOME=/home/yochanan/.cache/paru/clone/pods/src/build/cargo-home /usr/bin/cargo build --manifest-path /home/yochanan/.cache/paru/clone/pods/src/pods-1.2.2/Cargo.toml --target-dir /home/yochanan/.cache/paru/clone/pods/src/build/src --release && cp src/release/pods src/pods
ninja: build stopped: subcommand failed.

cookiewookie commented on 2023-01-17 20:00 (UTC) (edited on 2023-01-17 20:05 (UTC) by cookiewookie)

==> Starting prepare()...
    Updating git repository `https://github.com/vv9k/podman-api-rs.git`
error: failed to get `podman-api` as a dependency of package `pods v1.0.2 (/home/user/.cache/yay/pods/src/pods-1.0.2)`

Caused by:
  failed to load source for dependency `podman-api`

Caused by:
  Unable to update https://github.com/vv9k/podman-api-rs.git#ce169655




Caused by:
  failed to fetch into: /home/user/.cargo/git/db/podman-api-rs-0bc99869f629f4c5

Caused by:
  failed to authenticate when downloading repository: git@github.com:vv9k/podman-api-rs.git

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  no authentication available
==> ERROR: A failure occurred in prepare().
    Aborting...
checking dependencies...

yochananmarqos commented on 2023-01-01 20:55 (UTC)

@igor-dyatlov: Please make the following changes to adhere to Rust package guidelines:

prepare() {
  cd "$pkgname-$pkgver"
  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
  export RUSTUP_TOOLCHAIN=stable
  arch-meson "$pkgname-$pkgver" build
  meson compile -C build
}

No idea why you're using ${pkgver//_/-}.

bader commented on 2022-10-26 03:49 (UTC)

Please add gtksourceview5 as a required dep.

...
warning: `"pkg-config" "--libs" "--cflags" "gtksourceview-5" "gtksourceview-5 >= 4.90"` did not exit successfully: exit status: 1

error: failed to run custom build command for `sourceview5-sys v0.4.2`
...