-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails: error executing 'git rev-parse --abbrev-ref=loose HEAD': No such file or directory (os error 2) #3308
Comments
It seems that you download the GreptimeDB sources directly instead of clone via Git? Perhaps we should find a fallback when the sources are built without Git info, or we throw a meaningful error message. |
Package builders don't use git clones because sources need to be fingerprinted for build reproducibility and security. |
Good point. I'm preparing a patch to fix this. Thanks for your report! |
But without these build data the produced artifacts may not show version properly. Said 0.7.0 greptimedb-bin may produce "unknown" with |
I am trying to create the FreeBSD port for greptimedb. --version should be handled in some other way. |
Cool. Please let me know when it is published and I can create a shout-out for you.
Yeah. I'm proposing a metafile generation solution in #3309, or fallback to envvar so that you can configure in the package script (I'm unfamiliar with FreeBSD but AUR works in this way). |
I've added the FreeBSD port: https://cgit.freebsd.org/ports/tree/databases/greptimedb Maybe you can add it to the list of systems where GreptimeDB is available? The command to install it is: |
Tweet is sent at - https://twitter.com/Greptime/status/1759594238399173066
It's filed as GreptimeTeam/docs#809. We should find a way to add such information. If you know how other projects display this info, welcome to share links there. |
What type of bug is this?
Other
What subsystems are affected?
Other
Minimal reproduce step
command:
cd /usr/ports/databases/greptimedb/work/greptimedb-0.6.0; /usr/bin/env CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE=1 /usr/bin/env XDG_DATA_HOME=/usr/ports/databases/greptimedb/work XDG_CONFIG_HOME=/usr/ports/databases/greptimedb/work XDG_CACHE_HOME=/usr/ports/databases/greptimedb/work/.cache HOME=/usr/ports/databases/greptimedb/work TMPDIR="/usr/ports/databases/greptimedb/work" PATH=/usr/local/libexec/ccache:/usr/ports/databases/greptimedb/work/.bin:/home/yuri/.cargo/bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/databases/greptimedb/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" CARGO_HOME=/usr/ports/databases/greptimedb/work/cargo-home CARGO_BUILD_JOBS=7 CARGO_BUILD_TARGET=x86_64-unknown-freebsd CARGO_TARGET_DIR=/usr/ports/databases/greptimedb/work/target CARGO_TARGET_X86_64_UNKNOWN_FREEBSD_LINKER="cc" RUSTC=/usr/local/bin/rustc RUSTDOC=/usr/local/bin/rustdoc RUSTFLAGS=" -C link-arg=-fstack-protector-strong" RUST_BACKTRACE=1 LIBGIT2_SYS_USE_PKG_CONFIG=1 ZSTD_SYS_USE_PKG_CONFIG=1 CARGO_PROFILE_RELEASE_LTO="true" CARGO_PROFILE_RELEASE_PANIC="abort" CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 /usr/local/bin/cargo build --manifest-path /usr/ports/databases/greptimedb/work/greptimedb-0.6.0/Cargo.toml --verbose --verbose --release
What did you expect to see?
n/a
What did you see instead?
What operating system did you use?
FreeBSD 14.0
What version of GreptimeDB did you use?
rev. b889d57
Relevant log output and stack trace
No response
The text was updated successfully, but these errors were encountered: