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

netavark 1.8.0 build failure with release vendor crates #819

Closed
jpalus opened this issue Sep 27, 2023 · 10 comments
Closed

netavark 1.8.0 build failure with release vendor crates #819

jpalus opened this issue Sep 27, 2023 · 10 comments

Comments

@jpalus
Copy link
Contributor

jpalus commented Sep 27, 2023

Build of netavark 1.8.0 with vendor crates taken from a 1.8.0 release fails for me ie (rust 1.72.1):

error[E0432]: unresolved imports `event_listener::Event`, `event_listener::EventListener`
 --> /home/users/builder/rpm/BUILD/netavark-1.8.0/vendor/async-lock/src/barrier.rs:1:22
  |
1 | use event_listener::{Event, EventListener};
  |                      ^^^^^  ^^^^^^^^^^^^^ no `EventListener` in the root
  |                      |
  |                      no `Event` in the root

error[E0432]: unresolved imports `event_listener::Event`, `event_listener::EventListener`
  --> /home/users/builder/rpm/BUILD/netavark-1.8.0/vendor/async-lock/src/mutex.rs:20:22
   |
20 | use event_listener::{Event, EventListener};
   |                      ^^^^^  ^^^^^^^^^^^^^ no `EventListener` in the root
   |                      |
   |                      no `Event` in the root

error[E0432]: unresolved imports `event_listener::Event`, `event_listener::EventListener`
  --> /home/users/builder/rpm/BUILD/netavark-1.8.0/vendor/async-lock/src/once_cell.rs:10:22
   |
10 | use event_listener::{Event, EventListener};
   |                      ^^^^^  ^^^^^^^^^^^^^ no `EventListener` in the root
   |                      |
   |                      no `Event` in the root

error[E0432]: unresolved imports `event_listener::Event`, `event_listener::EventListener`
  --> /home/users/builder/rpm/BUILD/netavark-1.8.0/vendor/async-lock/src/rwlock/raw.rs:16:22
   |
16 | use event_listener::{Event, EventListener};
   |                      ^^^^^  ^^^^^^^^^^^^^ no `EventListener` in the root
   |                      |
   |                      no `Event` in the root

error[E0432]: unresolved imports `event_listener::Event`, `event_listener::EventListener`
 --> /home/users/builder/rpm/BUILD/netavark-1.8.0/vendor/async-lock/src/semaphore.rs:8:22
  |
8 | use event_listener::{Event, EventListener};
  |                      ^^^^^  ^^^^^^^^^^^^^ no `EventListener` in the root
  |                      |
  |                      no `Event` in the root

Build succeeds if crates are vendored with cargo vendor (comparing contents of cargo vendor output and netavark-v1.8.0-vendor.tar.gz shows many differences).

@rahilarious
Copy link

rahilarious commented Sep 28, 2023

yep. Same here. I'm surprised even after rc1 and this much of CI, such stuff happen at release . I'm so exhausted from trying to troubleshoot this (thought something was wrong with my build system) I got it confused with podman.

Need some sleep

@Luap99
Copy link
Member

Luap99 commented Sep 28, 2023

@baude PTAL

@Luap99
Copy link
Member

Luap99 commented Sep 28, 2023

I can reproduce even recreating the vendored deps locally with make vendor-tarball. Seems like cargo-vendor-filterer is replacing required deps for some reason.

@flouthoc
Copy link
Collaborator

@Luap99 I think vendor can be still prepared by using older diff from here: f07cc04 and then cargo-vendor-filterer can be debugged later ?

@Luap99
Copy link
Member

Luap99 commented Sep 28, 2023

@Luap99 I think vendor can be still prepared by using older diff from here: f07cc04 and then cargo-vendor-filterer can be debugged later ?

Yes I updated the tarball now on the release so it should work now, I still leave this open until we know why cargo vendor-filterer does not work correctly.

@flouthoc
Copy link
Collaborator

@Luap99 Should it be manually published for aardvark-dns as well ? I suspect same issue will be there.

@Luap99
Copy link
Member

Luap99 commented Sep 28, 2023

@Luap99 Should it be manually published for aardvark-dns as well ? I suspect same issue will be there.

Nobody complained there so I don't think it has the same problem, this seem to be a very specific bug around how dependencies and features are resolved.

@jpalus
Copy link
Contributor Author

jpalus commented Sep 28, 2023

Can confirm aardvark-dns 1.8.0 builds fine.

@lsm5
Copy link
Member

lsm5 commented Sep 28, 2023

guess we can close this?

@Luap99
Copy link
Member

Luap99 commented Sep 29, 2023

yes, although we should create CI tests for this mechanism to prevent releasing non working assets.

@Luap99 Luap99 closed this as completed Sep 29, 2023
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

No branches or pull requests

5 participants