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

no more Backend::get_type() #164

Merged
merged 3 commits into from
Jan 19, 2025
Merged

no more Backend::get_type() #164

merged 3 commits into from
Jan 19, 2025

Conversation

gquintard
Copy link
Owner

No description provided.

@gquintard gquintard requested a review from nyurik January 17, 2025 04:15
@gquintard
Copy link
Owner Author

@nyurik, the CI is broken because of Varnish packages not installing, which I'll look at, however, running locally, it looks bindgen is creating code that upsets clippy:

$ just ci-test
rustc --version
rustc 1.83.0 (90b35a623 2024-11-26)
cargo --version
cargo 1.83.0 (5ffbef321 2024-10-29)
cargo fmt --all -- --check
cargo clippy --all-targets --workspace $(/home/guillaume/.cargo/bin/just get-package-exclude-args) -- -D warnings
warning: [email protected]: Generated bindings from Varnish 7.6.1 differ from checked-in bindings.for-docs. Update with   cp /home/guillaume/work/varnish-rs/target/debug/build/varnish-sys-74fd726f6665b6b4/out/bindings.rs varnish-sys/bindings.for-docs
    Checking varnish-sys v0.4.0 (/home/guillaume/work/varnish-rs/varnish-sys)
error: calling `CStr::new` with a byte string literal
   --> /home/guillaume/work/varnish-rs/target/debug/build/varnish-sys-74fd726f6665b6b4/out/bindings.rs:711:14
    |
711 |     unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"Log\0") };
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a `c""` literal: `c"Log"`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
    = note: `-D clippy::manual-c-str-literals` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::manual_c_str_literals)]`

@gquintard gquintard changed the title make type a Backend::new() arg, remove it from Serve no more Backend::get_type() Jan 17, 2025
@nyurik
Copy link
Collaborator

nyurik commented Jan 17, 2025

hm, this is weird - i tried just ci-test with both 1.83 and 1.84 and both worked. I also tried it in a docker container - also no issues. Please do just clean and see if you can reproduce in a docker?

@gquintard
Copy link
Owner Author

uh, nevermind, that worked

varnish-sys/src/vcl/backend.rs Outdated Show resolved Hide resolved
varnish-sys/src/vcl/backend.rs Outdated Show resolved Hide resolved
varnish-sys/src/vcl/backend.rs Outdated Show resolved Hide resolved
`github actions` moved to `ubuntu:noble` and `varnish:7.4` isn't
packaged for it, on top of being EOL
@gquintard
Copy link
Owner Author

all good?

Copy link
Collaborator

@nyurik nyurik left a comment

Choose a reason for hiding this comment

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

perfect, thanks! :)

@gquintard gquintard merged commit 3895d45 into main Jan 19, 2025
5 checks passed
@gquintard gquintard deleted the no_type_only branch January 19, 2025 07:11
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.

2 participants