Skip to content

Instantly share code, notes, and snippets.

View adam-singer's full-sized avatar
👾

Adam Singer adam-singer

👾
View GitHub Profile
Compiling nativelink-util v0.2.0 (/Users/adam/workspace/nativelink-2/nativelink-util)
error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return types
--> nativelink-util/src/digest_hasher.rs:131:10
|
131 | ) -> impl Future<Output = Result<(DigestInfo, fs::ResumeableFileSlot<'static>), Error>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return types
01:20:26 adam@Adams-MBP reclient ±|main|→ bazel-bin/cmd/rewrapper/rewrapper_/rewrapper --help
Usage of bazel-bin/cmd/rewrapper/rewrapper_/rewrapper:
-action_log string
If set, write a reproxy log entry for this remote action to the named file.
-alsologtostderr
log to standard error as well as files
-canonicalize_working_dir
Replaces local working directory with a canonical value when running on RE server. The feature makes actions working-dir agnostic and enables to cache them across various same depth (e.g. out/default and out/rbe-build) local working directories (default: false)
-cfg string
Optional configuration file containing command-line argument settings
ubuntu@ip-172-31-6-179:~/chromium/src$ buildtools/reclient/rewrapper --help
Usage of buildtools/reclient/rewrapper:
-action_log string
If set, write a reproxy log entry for this remote action to the named file.
-alsologtostderr
log to standard error as well as files
-canonicalize_working_dir
Replaces local working directory with a canonical value when running on RE server. The feature makes actions working-dir agnostic and enables to cache them across various same depth (e.g. out/default and out/rbe-build) local working directories (default: false)
-cfg string
Optional configuration file containing command-line argument settings
diff --git a/deployment-examples/docker-compose-reclient/docker-compose.yml b/deployment-examples/docker-compose-reclient/docker-compose.yml
index 06cbd63..542b23d 100644
--- a/deployment-examples/docker-compose-reclient/docker-compose.yml
+++ b/deployment-examples/docker-compose-reclient/docker-compose.yml
@@ -28,6 +28,7 @@ services:
target: /root
environment:
RUST_LOG: ${RUST_LOG:-warn}
+ RUST_LOG: info,h2=off,tower=off,hyper=off
ports: [ "50051:50051/tcp" ]
error[E0379]: functions in traits cannot be declared const
--> nativelink-util/src/health_utils.rs:115:5
|
115 | const fn struct_name(&self) -> &'static str {
| ^^^^^ functions in traits cannot be const
Compiling nativelink-util v0.2.0 (/Users/adam/workspace/nativelink-2/nativelink-util)
error[E0277]: the size for values of type `Self` cannot be known at compilation time
--> nativelink-util/src/health_utils.rs:122:30
|
122 | HealthStatus::new_ok(self, "ok".into())
| ^^^^ doesn't have a size known at compile-time
|
= note: required for the cast from `&Self` to `&dyn HealthStatusIndicator`
error[E0277]: the size for values of type `Self` cannot be known at compilation time
error[E0782]: trait objects must include the `dyn` keyword
--> nativelink-util/src/health_utils.rs:64:31
|
64 | pub fn new_ok(component: &HealthStatusIndicator, message: Cow<'static, str>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^
|
help: add `dyn` keyword before this trait
|
64 | pub fn new_ok(component: &dyn HealthStatusIndicator, message: Cow<'static, str>) -> Self {
| +++
Compiling nativelink-util v0.2.0 (/Users/adam/workspace/nativelink-2/nativelink-util)
error[E0277]: the size for values of type `Self` cannot be known at compilation time
--> nativelink-util/src/health_utils.rs:122:30
|
122 | HealthStatus::new_ok(self, "ok".into())
| -------------------- ^^^^ doesn't have a size known at compile-time
| |
| required by a bound introduced by this call
|
note: required by a bound in `HealthStatus::new_ok`
rm -rf /tmp/nativelink/ && RUST_LOG=INFO cargo run --bin nativelink -- nativelink-config/examples/basic_cas.json
{
"commandArgs": ["external/local_config_cc/cc_wrapper.sh", "-U_FORTIFY_SOURCE", "-fstack-protector", "-Wall", "-Wthread-safety", "-Wself-assign", "-Wunused-but-set-parameter", "-Wno-free-nonheap-object", "-fcolor-diagnostics", "-fno-omit-frame-pointer", "-std\u003dc++0x", "-MD", "-MF", "bazel-out/darwin_arm64-fastbuild/bin/src/mongo/db/commands/_objs/fsync_locked_with_debug/fsync_locked.pic.d", "-frandom-seed\u003dbazel-out/darwin_arm64-fastbuild/bin/src/mongo/db/commands/_objs/fsync_locked_with_debug/fsync_locked.pic.o", "-fPIC", "-DMONGO_CONFIG_DEBUG_BUILD", "-DBAZEL_CURRENT_REPOSITORY\u003d\"\"", "-iquote", ".", "-iquote", "bazel-out/darwin_arm64-fastbuild/bin", "-Isrc", "-include", "mongo/platform/basic.h", "-no-canonical-prefixes", "-Wno-builtin-macro-redefined", "-D__DATE__\u003d\"redacted\"", "-D__TIMESTAMP__\u003d\"redacted\"", "-D__TIME__\u003d\"redacted\"", "-c", "src/mongo/db/commands/fsync_locked.cpp", "-o", "bazel-out/darwin_arm64-fastbuild/bin/src/mongo/db/commands/_objs/fsync_locked_with_deb