build: support build without git (#3309)

* build: support build without git

Signed-off-by: tison <wander4096@gmail.com>

* chore

Signed-off-by: tison <wander4096@gmail.com>

* address comment

Signed-off-by: tison <wander4096@gmail.com>

* fix syntax

Signed-off-by: tison <wander4096@gmail.com>

---------

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison
2024-02-18 18:30:01 +08:00
committed by GitHub
parent b889d57b32
commit 4e04a4e48f
35 changed files with 154 additions and 116 deletions

View File

@@ -13,14 +13,14 @@ testing = []
[dependencies]
aide = { version = "0.9", features = ["axum"] }
api.workspace = true
arrow.workspace = true
arrow-flight.workspace = true
arrow-ipc.workspace = true
arrow-schema.workspace = true
arrow.workspace = true
async-trait = "0.1"
auth.workspace = true
axum-macros = "0.3.8"
axum.workspace = true
axum-macros = "0.3.8"
base64.workspace = true
bytes.workspace = true
catalog.workspace = true
@@ -28,8 +28,8 @@ chrono.workspace = true
common-base.workspace = true
common-catalog.workspace = true
common-error.workspace = true
common-grpc-expr.workspace = true
common-grpc.workspace = true
common-grpc-expr.workspace = true
common-macro.workspace = true
common-mem-prof = { workspace = true, optional = true }
common-meta.workspace = true
@@ -38,9 +38,9 @@ common-recordbatch.workspace = true
common-runtime.workspace = true
common-telemetry.workspace = true
common-time.workspace = true
datafusion.workspace = true
datafusion-common.workspace = true
datafusion-expr.workspace = true
datafusion.workspace = true
datatypes.workspace = true
derive_builder.workspace = true
digest = "0.10"
@@ -91,11 +91,11 @@ snap = "1"
sql.workspace = true
strum.workspace = true
table.workspace = true
tokio.workspace = true
tokio-rustls = "0.25"
tokio-stream = { workspace = true, features = ["net"] }
tokio.workspace = true
tonic-reflection = "0.10"
tonic.workspace = true
tonic-reflection = "0.10"
tower = { version = "0.4", features = ["full"] }
tower-http = { version = "0.3", features = ["full"] }
urlencoding = "2.1"
@@ -123,4 +123,4 @@ tokio-postgres-rustls = "0.11"
tokio-test = "0.4"
[build-dependencies]
build-data = "0.1.4"
common-version.workspace = true

View File

@@ -13,11 +13,7 @@
// limitations under the License.
fn main() {
build_data::set_RUSTC_VERSION();
build_data::set_GIT_BRANCH();
build_data::set_GIT_COMMIT();
build_data::set_SOURCE_TIMESTAMP();
common_version::setup_build_info();
#[cfg(feature = "dashboard")]
fetch_dashboard_assets();
}