mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 12:44:10 +00:00
* test(mito2): cover regex inverted index pruning Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * build: keep build inputs checkout-relative for cross-worktree cache reuse Two small changes so compilations are byte-identical across worktrees of the same commit and can share a build cache (mbx, sccache): - src/common/version/build.rs: derive the workspace root relative to CARGO_MANIFEST_DIR instead of the CARGO_WORKSPACE_DIR injected by .cargo/config.toml (an absolute path). The env var remains as an explicit override for the submodule case; the [env] injection in .cargo/config.toml is removed so the relative derivation is used by default. - Replace three env!("CARGO_MANIFEST_DIR") uses in test/bench code (servers prom_decode bench + decode test, common-meta test_util) with a runtime std::env::var lookup, so the compiled artifact no longer embeds the checkout path. No behavior change: same files are read, same version info emitted. Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * build: address cross-worktree cache review feedback Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> --------- Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
27 lines
801 B
TOML
27 lines
801 B
TOML
[target.aarch64-unknown-linux-gnu]
|
|
linker = "aarch64-linux-gnu-gcc"
|
|
|
|
[target.riscv64gc-unknown-linux-gnu]
|
|
linker = "riscv64-linux-gnu-gcc"
|
|
|
|
[alias]
|
|
sqlness = "run --bin sqlness-runner --target-dir target/sqlness --"
|
|
|
|
[registry]
|
|
# Requires cargo 1.100+; older cargo ignores this key. Only registry crates
|
|
# carry a publish time, so git dependencies (our GreptimeTeam forks) are exempt.
|
|
global-min-publish-age = "7 days"
|
|
|
|
[unstable.git]
|
|
shallow_index = true
|
|
shallow_deps = true
|
|
[unstable.gitoxide]
|
|
fetch = true
|
|
checkout = true
|
|
list_files = true
|
|
internal_use_git2 = false
|
|
|
|
# Avoid globally injecting a checkout-specific workspace path. The version build script
|
|
# resolves the absolute workspace path from layout at build time; set CARGO_WORKSPACE_DIR
|
|
# explicitly when this repo is built as a submodule.
|