Skip to content

Commit

Permalink
Fix: warning: failed to get HEAD path (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
markmandel authored Nov 28, 2023
1 parent 2be3696 commit d493191
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ fn git_path(path: &str) -> IoResult<String> {
if !output.status.success() {
return Err(Error::new(
ErrorKind::Other,
format!("`git` failed with status {}", output.status),
format!(
"`git` failed with status {}: {}",
output.status,
std::str::from_utf8(&output.stderr).unwrap_or("no output")
),
));
}

Expand Down
5 changes: 4 additions & 1 deletion build/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \
# Install packages
RUN set -eux && \
apt-get update && \
apt-get install -y lsb-release jq curl wget zip build-essential software-properties-common \
apt-get install -y lsb-release jq curl wget zip git build-essential software-properties-common \
libssl-dev pkg-config python3-pip bash-completion g++-x86-64-linux-gnu g++-mingw-w64-x86-64 && \
pip3 install live-server && \
echo "source /etc/bash_completion" >> /root/.bashrc
Expand All @@ -51,6 +51,9 @@ WORKDIR /tmp
RUN wget --quiet -O htmltest.tar.gz "https://github.com/wjdp/htmltest/releases/download/v0.16.0/htmltest_0.16.0_linux_$(dpkg --print-architecture).tar.gz" && \
tar -xf htmltest.tar.gz && mv ./htmltest /usr/local/bin/ && rm htmltest.tar.gz

# Add /workspace as a git safe directory
RUN git config --global --add safe.directory /workspace

# Install Rust. Inspiration from: https://github.com/rust-lang/docker-rust/blob/master/1.64.0/bullseye/Dockerfile
RUN set -eux; \
dpkgArch="$(dpkg --print-architecture)" && \
Expand Down

0 comments on commit d493191

Please sign in to comment.