You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried building git-cinnabar 0.6.1 using the github tarball from the release.
I see the following failure:
error: failed to run custom build command for `git-cinnabar v0.6.1 (/scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1)`
Caused by:
process didn't exit successfully: `/scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/target/release/build/git-cinnabar-1195f9ca7f690327/build-script-build` (exit status: 101)
--- stdout
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-netbsd")
HOST = Some("x86_64-unknown-netbsd")
cargo:rerun-if-env-changed=CC_x86_64-unknown-netbsd
CC_x86_64-unknown-netbsd = None
cargo:rerun-if-env-changed=CC_x86_64_unknown_netbsd
CC_x86_64_unknown_netbsd = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = Some("gcc")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-netbsd
CFLAGS_x86_64-unknown-netbsd = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_netbsd
CFLAGS_x86_64_unknown_netbsd = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = Some("-O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -I/usr/pkg/include")
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-netbsd
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_netbsd
cargo:rerun-if-env-changed=CFLAGS
cargo:rerun-if-env-changed=TARGET_CFLAGS
cargo:rerun-if-env-changed=DEP_CURL_INCLUDE
cargo:rerun-if-env-changed=DEP_CURL_STATIC
cargo:rerun-if-env-changed=DEP_Z_INCLUDE
cargo:rerun-if-env-changed=CC_x86_64-unknown-netbsd
cargo:rerun-if-env-changed=CC_x86_64_unknown_netbsd
cargo:rerun-if-env-changed=CC
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
gmake[1]: Entering directory '/scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/target/release/build/git-cinnabar-57c10060bfb9abfb/out'
echo "ifndef FAKE_INCLUDE" > config.mak.uname
echo "#!/bin/sh" > detect-compiler
git -C /scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1 submodule sync
echo "include /scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/git-core/config.mak.uname" >> config.mak.uname
echo ". /scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/git-core/detect-compiler" >> detect-compiler
chmod +x detect-compiler
echo "endif" >> config.mak.uname
echo "ifndef FAKE_INCLUDE" > config.mak.dev
echo "include /scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/git-core/config.mak.dev" >> config.mak.dev
echo "endif" >> config.mak.dev
gmake[1]: Leaving directory '/scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/target/release/build/git-cinnabar-57c10060bfb9abfb/out'
--- stderr
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
gmake[1]: *** [/scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/src/build.mk:17: /scratch/wip/git-cinnabar/work/git-cinnabar-0.6.1/git-core/Makefile] Error 128
thread 'main' panicked at 'assertion failed: cmd.env(\"MAKEFLAGS\",\n format!(\"-j {}\",\n env(\"CARGO_MAKEFLAGS\"))).current_dir(&out_dir).st
atus().expect(\"Failed to execute GNU make\").success()', build.rs:229:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
This looks like it wants to extract some information using git from the tarball which fails because it's not a git repository,
but I'm not sure what the proper solution or workaround is.
The text was updated successfully, but these errors were encountered:
This is not a use case that I try to cater for. I wish github allowed to either make the source code archives include submodules or to skip them entirely, but unfortunately, neither option exists.
You can use e.g. cargo-download to get the source from crates.io, or clone the repo.
I've tried building git-cinnabar 0.6.1 using the github tarball from the release.
I see the following failure:
This looks like it wants to extract some information using
git
from the tarball which fails because it's not a git repository,but I'm not sure what the proper solution or workaround is.
The text was updated successfully, but these errors were encountered: