-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
kapacitor: fix build of embedded libflux
dependency with current rust
#270233
Conversation
The embedded `libflux` dependency of `kapacitor` fails to build with more current rust tooling due to an unneeded `.clone()` call that is promoted into an error message by a strict linting build config. This introduces a patch that removes the offending method call. The issue is already resolved upstream, but even the current `kapacitor` version still depends on this specific version of `libflux` [1], and the respective git commit contains a lot of other (automated) changes [2], so cherry-picking the patch via a GitHub URL seems even more brittle. [1]: https://github.com/influxdata/kapacitor/blob/v1.7.1/go.mod#L26 [2]: influxdata/flux@e7f7023#diff-96572e971d9e19b54290a434debbf7db054b21c9ce19035159542756ffb8ab87
I hope this is an adequate measure to get rid of the build error. If you know of a better fix (or way to include the patch), please let me know :) |
This PR looks great, superb job with the explanatory comments! #ZurichZHF :) I also tested it on Darwin, where it failed with
But I was able to fix it by adding a
There's other packages also doing the same to get around such test failures, see NixOS/nix#1646 for more info (Unfortunately it seems completely undocumented) I hope you don't mind me pushing the commit here directly! |
@ofborg build kapacitor |
Git push to origin failed for release-23.11 with exitcode 1 |
Successfully created backport PR for |
The embedded
libflux
dependency ofkapacitor
fails to build with more current rust tooling due to an unneeded.clone()
call that is promoted into an error message by a strict linting build config.This introduces a patch that removes the offending method call. The issue is already resolved upstream, but even the current
kapacitor
version still depends on this specific version oflibflux
1, and the respective git commit contains a lot of other (automated) changes 2, so cherry-picking the patch via a GitHub URL seems even more brittle.Description of changes
Adds a patch that removes the offending
.clone()
call.Failing hydra build: https://hydra.nixos.org/build/241395053#tabs-summary
Hydra log: https://hydra.nixos.org/build/241395053/nixlog/3
Relevant log excerpt:
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)