Skip to content

Instantly share code, notes, and snippets.

FAILED: bin/http_demo_client
: && /nix/store/9b7zdiwcyx2lzgqsag3dr24sabxxbvcw-clang-wrapper-16.0.6/bin/clang++ -fPIC -fcolor-diagnostics -O3 -DNDEBUG -pie -rdynamic src/v/http/demo/CMakeFiles/http_demo_client.dir/client.cc.o -o bin/http_demo_client lib/libv_v_model.a lib/libv_v_rpc.a lib/libv_v_http.a lib/libv_v_compression.a /nix/store/1ryrrnjsxnj48hic5bk03hgvcp38sbli-zstd-1.5.5/lib/libzstd.so /nix/store/874gxh0sgwkbwb7nfbp72sn7a058b7sa-lz4-1.9.4/lib/liblz4.so /nix/store/n37b3wgcyhnfqsrqkc3cgvjc5wf8lnjr-snappy-1.1.10/lib/libsnappy.so.1.1.10 /nix/store/8xgb8phqmfn9h971q7dg369h647i1aa0-zlib-1.3/lib/libz.so lib/libv_v_net.a lib/libv_v_config.a lib/libv_v_model.a lib/libv_v_security.a lib/libv_v_utils.a lib/libv_v_rphashing.a /nix/store/51g44rrhmkznzdz2zmkppdwmxpp1xwvz-xxHash-0.8.2/lib/libxxhash.so /nix/store/lrz4nmpk7srvipfila429ffv60sqyf11-crc32c-1.1.2/lib/libcrc32c.so.1.1.0 /nix/store/fpnmbfvp90dgr53dmk1syx592cnbjc5v-HdrHistogram_c-0.11.5/lib/libhdr_histogram_static.a /nix/store/nmxv7axnw
diff --git a/tmp2/source/src/v/cloud_storage/remote_segment.cc b/tmp/source/src/v/cloud_storage/remote_segment.cc
index e64d1264180a..194a5264dc09 100644
--- a/tmp2/source/src/v/cloud_storage/remote_segment.cc
+++ b/tmp/source/src/v/cloud_storage/remote_segment.cc
@@ -83,7 +83,7 @@ public:
ss::future<uint64_t>
operator()(uint64_t size, ss::input_stream<char> stream) {
- for (const auto [start, end] : _range) {
+ for (const auto &[start, end] : _range) {
@layus
layus / darwin_no_sleep.patch
Created October 18, 2023 14:57
Bazel / darwin sleep patch
diff --git a/src/main/native/darwin/sleep_prevention_jni.cc b/src/main/native/darwin/sleep_prevention_jni.cc
index 67c35b201e..e50a58320e 100644
--- a/src/main/native/darwin/sleep_prevention_jni.cc
+++ b/src/main/native/darwin/sleep_prevention_jni.cc
@@ -33,31 +33,13 @@ static int g_sleep_state_stack = 0;
static IOPMAssertionID g_sleep_state_assertion = kIOPMNullAssertionID;
int portable_push_disable_sleep() {
- std::lock_guard<std::mutex> lock(g_sleep_state_mutex);
- BAZEL_CHECK_GE(g_sleep_state_stack, 0);
+ bazel --version
+ grep ' 6\.'
bazel 6.1.0- (@non-git)
+ rm -rfI rules_docker
rm: remove 1 argument recursively? rm: remove write-protected regular file 'rules_docker/.git/objects/pack/pack-34e03951efa33983b924464a798f092ea34cf8ee.pack'? rm: remove write-protected regular file 'rules_docker/.git/objects/pack/pack-34e03951efa33983b924464a798f092ea34cf8ee.idx'? + git clone https://github.com/bazelbuild/rules_docker
Cloning into 'rules_docker'...
+ cd rules_docker/testing/examples
+ echo 'build --@io_bazel_rules_docker//transitions:enable=no'
+ bazel info
Starting local Bazel server and connecting to it...
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/ssw8zs4snwhh858p31i83ffdlg6z3zgs-v3.7.3.tar.gz
source root is dafny-3.7.3
setting SOURCE_DATE_EPOCH to timestamp 1658263816 of file dafny-3.7.3/dotnet-tools.json
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
Executing dotnetConfigureHook
{-# language DataKinds #-}
{-# language FlexibleContexts #-}
{-# language GADTs #-}
{-# language LambdaCase #-}
{-# language PolyKinds #-}
{-# language RankNTypes #-}
{-# language ScopedTypeVariables #-}
{-# language TypeApplications #-}
{-# language TypeOperators #-}
{-# language TypeFamilies #-}
warning: Git tree '/home/layus/.config/nixpkgs' is dirty
error: A definition for option `fonts.fonts.[definition 1-entry 39]' is not of type `path'. Definition values:
- In `/nix/store/ydhqybnnbz8y3c26fgyq52ysk3bf5s2y-source/nixos/common/fonts.nix':
{
githubRelease = <derivation /nix/store/w6xih5g3hhc5q6jl7yq58qh50mc6kvha-mplus-outline-fonts-github.drv>;
osdnRelease = <derivation /nix/store/wal2cn7i7kimnknm47hrxn8b4m8fgy67-mplus-outline-fonts-osdn.drv>;
override = <function, args: {fetchFromGitHub, fetchzip, lib}>;
overrideDerivation = <function>;
...
diff --git a/old.txt b/new.txt
index fe5d9e1..31f76a4 100644
--- a/old.txt
+++ b/new.txt
@@ -1,18 +1,24 @@
error: value is a string while a set was expected
- … while evaluating 'func'
+ … In the right operand of the update (//) operator
+ at /home/layus/projects/poetry2nix-error/basic.nix:13:10:
diff --git a/old.txt b/new.txt
index 37a424e..c4c29b5 100644
--- a/old.txt
+++ b/new.txt
@@ -1,24 +1,24 @@
error: infinite recursion encountered
- at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/stdenv/generic/make-derivation.nix:249:7:
-
- 248| depsHostHost = lib.elemAt (lib.elemAt dependencies 1) 0;
diff --git a/old.txt b/new.txt
index 37a424e..c4c29b5 100644
--- a/old.txt
+++ b/new.txt
@@ -1,24 +1,24 @@
error: infinite recursion encountered
- at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/stdenv/generic/make-derivation.nix:249:7:
-
- 248| depsHostHost = lib.elemAt (lib.elemAt dependencies 1) 0;