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

domain 0.10.2 built failed after upgrading #411

Closed
Xuanwo opened this issue Oct 12, 2024 · 8 comments · Fixed by #412
Closed

domain 0.10.2 built failed after upgrading #411

Xuanwo opened this issue Oct 12, 2024 · 8 comments · Fixed by #412

Comments

@Xuanwo
Copy link

Xuanwo commented Oct 12, 2024

Hi, @partim. Thank you for maintaining this library.

I noticed that 0.10.2 is broken after upgrading:

error[E0433]: failed to resolve: could not find `zonetree` in the crate root
   --> /home/xuanwo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/domain-0.10.2/src/net/xfr/protocol/interpreter.rs:8:12
    |
8   | use crate::zonetree::types::ZoneUpdate;
    |            ^^^^^^^^ could not find `zonetree` in the crate root
    |
note: found an item that was configured out
   --> /home/xuanwo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/domain-0.10.2/src/lib.rs:177:9
    |
177 | pub mod zonetree;
    |         ^^^^^^^^
    = note: the item is gated behind the `unstable-zonetree` feature

error[E0433]: failed to resolve: could not find `zonetree` in the crate root
   --> /home/xuanwo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/domain-0.10.2/src/net/xfr/protocol/iterator.rs:9:12
    |
9   | use crate::zonetree::types::ZoneUpdate;
    |            ^^^^^^^^ could not find `zonetree` in the crate root
    |
note: found an item that was configured out
   --> /home/xuanwo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/domain-0.10.2/src/lib.rs:177:9
    |
177 | pub mod zonetree;
    |         ^^^^^^^^
    = note: the item is gated behind the `unstable-zonetree` feature

Would you consider releasing a 0.10.3 to address this? Thanks in advance.

@Xuanwo Xuanwo changed the title domain 0.10.2 built failed after upgrading to 0.10.2 domain 0.10.2 built failed after upgrading Oct 12, 2024
@ximon18
Copy link
Member

ximon18 commented Oct 12, 2024

Hi @Xuanwo,

Thank you for trying the release and thank you very much for reporting this issue, I'm sorry that you encountered a problem.

I wonder if you are building using a subset of enabled features. I ask because our GitHub Actions CI builds and tests are passing, and cargo build and cargo build --all-features seem to work for me.

I can however produce a similar error if I build with cargo build --features net so we should fix that.

Are you building with some specific features enabled? And if so, which ones?

Thanks,

Ximon

@Xuanwo
Copy link
Author

Xuanwo commented Oct 12, 2024

I can however produce a similar error if I build with cargo build --features net so we should fix that.

Are you building with some specific features enabled? And if so, which ones?

Hi, thank you for the quick response. We don't use domain directly; it's a deep dependency used by others. I'm currently unsure about which features have been enabled.

@sjoerdsimons
Copy link

Fwiw i'm hitting the same issues using features = ["serde", "tsig", "resolv", "tokio"], i've not pinned down what triggers it exactly though

@ximon18
Copy link
Member

ximon18 commented Oct 12, 2024

Fwiw i'm hitting the same issues using features = ["serde", "tsig", "resolv", "tokio"], i've not pinned down what triggers it exactly though

That might be caused by tsig as we touched that in the unstable feature work we have been doing recently.

Testing all, or at least more, feature combinations is a bit problematic due to the time it to takes (though maybe a GitHub Actions workflow matrix could be used to do it in parallel) but maybe we should do it at least as a pre-release check.

@ximon18
Copy link
Member

ximon18 commented Oct 12, 2024

The fix-compile-with-feature-net branch works with features net and also with serde,resolv,tsig,tokio for me. If you are able to test that please let us know if it fixes it for you.

@sjoerdsimons
Copy link

CI ran through successfully: sjoerdsimons/ddns-letsencrypt-tool@f5e0cd2 so looks all good :)

@ximon18
Copy link
Member

ximon18 commented Oct 12, 2024

@Xuanwo - We'll make a 0.10.3 release as soon as reviews and a bit more feature gate compilation testing are done.

@Xuanwo
Copy link
Author

Xuanwo commented Oct 12, 2024

@Xuanwo - We'll make a 0.10.3 release as soon as reviews and a bit more feature gate compilation testing are done.

Perfect. Thanks a lot for your quick response!

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 a pull request may close this issue.

3 participants