Change:
Steps to reproduce the behavior: There appears to be a cache miss, because starts to be compiled, but it fails. Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
the maintainers to tag would be for v2 and and for v1 (all share the same build failure). v2 will be addressed via
Apologies. Thank you.

Discussion:
{ lib, buildGoModule, fetchFromGitHub, stdenv, pkg-config, rustPlatform, libiconv, fetchpatch, nixosTests }: let <del> libflux_version = "0.188.0"; </del> <ins> libflux_version = "0.194.5"; </ins> <del> # This is copied from influxdb2 with flux version matching the needed by thi </del> <ins> # This is copied from influxdb2 with the required flux version </ins> flux = rustPlatform.buildRustPackage rec { pname = "libflux"; version = "v${libflux_version}";

owner = "influxdata"; repo = "flux"; rev = "v${libflux_version}"; <del> hash = "sha256-4Z6Vfdyh0zimQlE47plSIjTWBYiju0Qu09M+MgMQOL4="; </del> <ins> hash = "sha256-XHT/+JMu5q1cPjZT2x/OKEPgxFJcnjrQKqn8w9/Mb3s="; </ins> }; patches = [ <del> # https://github.com/influxdata/flux/pull/5440 # fix compile error with Rust 1.72.0 </del> <ins> # Fix build on Rust 1.78 (included after v0.195.0) </ins> (fetchpatch { <del> url = "https://github.com/influxdata/flux/commit/8d1d6c8b485eb7e15b6a5f57762d1f766b17defd.patch"; </del> <ins> name = "fix-build-on-rust-1.78.patch"; url = "https://github.com/influxdata/flux/commit/68c831c40b396f0274f6a9f97d77707c39970b02.patch"; </ins> stripLen = 2; extraPrefix = ""; <del> hash = "sha256-BDBmGKsC2RWMyObDm7dPwFq/3cVIdBKF8ZVaCL+uftw="; includes = [ "flux/src/lib.rs" ]; </del> <ins> excludes = [ ]; hash = "sha256-6LOTgbOCfETNTmshyXgtDZf9y4t/2iqRuVPkz9dYPHc="; </ins> }) <ins> ../influxdb2/fix-unsigned-char.patch </ins> ]; sourceRoot = "${src.name}/libflux"; <del> cargoHash = "sha256-925U9weBOvMuyApsTOjtQxik3nqT2UpK+DPM64opc7c="; </del> <ins> cargoHash = "sha256-O+t4f4P5291BuyARH6Xf3LejMFEQEBv+qKtyjHRhclA="; </ins> nativeBuildInputs = [ rustPlatform.bindgenHook ]; buildInputs = lib.optional stdenv.isDarwin libiconv; pkgcfg = ''

in buildGoModule rec { pname = "influxdb"; <del> version = "1.10.5"; </del> <ins> version = "1.10.7"; </ins> src = fetchFromGitHub { owner = "influxdata"; repo = pname; rev = "v${version}"; <del> hash = "sha256-FvKGNqy27q6/X2DI/joJXfGVrax6hQcNcx5nJDeSLm0="; </del> <ins> hash = "sha256-Aibu3yG/D1501Hr2F2qsGvjig14tbEAI+MBfqbxlpg8="; </ins> }; <del> vendorHash = "sha256-1jeZBVmNOxF5NPlTKg+YRw6VqIIZDcT3snnoMLX3y4g="; </del> <ins> vendorHash = "sha256-AA6uj7PgXjC+IK2ZSwRnYpHS4MFScOROO1BpP+s33IU="; </ins> nativeBuildInputs = [ pkg-config ];

}: let <del> version = "2.7.1"; ui_version = "OSS-v${version}"; libflux_version = "0.193.0"; </del> <ins> version = "2.7.6"; ui_version = "OSS-v2.7.1"; libflux_version = "0.194.5"; </ins> src = fetchFromGitHub { owner = "influxdata"; repo = "influxdb"; rev = "v${version}"; <del> hash = "sha256-JWu4V2k8ItbzBa421EtzgMVlDznoDdGjIhfDSaZ0j6c="; </del> <ins> hash = "sha256-0gqFUIV0ETdVuVmC+SwoKsO6OkoT/s+qKO1f8fkaZj4="; </ins> }; ui = fetchurl {

owner = "influxdata"; repo = "flux"; rev = "v${libflux_version}"; <del> hash = "sha256-gx6vnGOFu35wasLl7X/73eDsE0/50cAzjmBjZ+H2Ne4="; </del> <ins> hash = "sha256-XHT/+JMu5q1cPjZT2x/OKEPgxFJcnjrQKqn8w9/Mb3s="; </ins> }; patches = [ <del> # Fix build with recent rust versions </del> <ins> # Fix build on Rust 1.78 (included after v0.195.0) </ins> (fetchpatch { <del> url = "https://github.com/influxdata/flux/commit/6dc8054cfeec4b65b5c7ae786d633240868b8589.patch"; </del> <ins> name = "fix-build-on-rust-1.78.patch"; url = "https://github.com/influxdata/flux/commit/68c831c40b396f0274f6a9f97d77707c39970b02.patch"; </ins> stripLen = 2; extraPrefix = ""; <del> excludes = [ "rust-toolchain.toml" ]; hash = "sha256-w3z+Z26Xhy9TNICyNhc8XiWNSpdLA23ADI4K/AOMYhg="; </del> <ins> excludes = [ ]; hash = "sha256-6LOTgbOCfETNTmshyXgtDZf9y4t/2iqRuVPkz9dYPHc="; </ins> }) <del> ./no-deny-warnings.patch </del> <ins> ./fix-unsigned-char.patch </ins> ]; sourceRoot = "${src.name}/libflux"; <del> cargoSha256 = "sha256-MoI5nxLGA/3pduZ+vgmSG3lm3Nx58SP+6WXQl2pX9Lc="; </del> <ins> cargoHash = "sha256-O+t4f4P5291BuyARH6Xf3LejMFEQEBv+qKtyjHRhclA="; </ins> nativeBuildInputs = [ rustPlatform.bindgenHook ]; buildInputs = lib.optional stdenv.isDarwin libiconv; pkgcfg = ''

nativeBuildInputs = [ go-bindata pkg-config perl ]; <del> vendorHash = "sha256-5b1WRq3JndkOkKBhMzGZnSyBDY5Lk0UGe/WGHQJp0CQ="; </del> <ins> vendorHash = "sha256-3Vf8BCrOwliXrH+gmZ4RJ1YBEbqL0Szx2prW3ie9CNg="; </ins> subPackages = [ "cmd/influxd" "cmd/telemetryd" ]; PKG_CONFIG_PATH = "${flux}/pkgconfig";

<ins> diff --git a/flux/src/cffi.rs b/flux/src/cffi.rs index ba18e3d5..0c1badf8 100644 --- a/flux/src/cffi.rs +++ b/flux/src/cffi.rs @@ -1149,7 +1149,7 @@ from(bucket: v.bucket) fn parse_with_invalid_utf8() { let cfname = CString::new("foo.flux").unwrap(); let cfname_ptr: *const c_char = cfname.as_ptr(); -        let v: Vec<c_char> = vec![-61, 0]; +        let v: Vec<c_char> = vec![-61i8 as c_char, 0]; let csrc: *const c_char = &v[0]; // Safety: both pointers are valid let pkg = unsafe { flux_parse(cfname_ptr, csrc) }; </ins>

<del> diff --git a/flux/src/lib.rs b/flux/src/lib.rs index 3fdf4071..a4c02277 100644 --- a/flux/src/lib.rs +++ b/flux/src/lib.rs @@ -1,5 +1,3 @@ -#![cfg_attr(feature = "strict", deny(warnings, missing_docs))] - //! This module provides the public facing API for Flux's Go runtime, including formatting, //! parsing, and standard library analysis. use std::sync::Arc; </del>