File tree 3 files changed +19
-5
lines changed
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ package: build/package.BUILT
254
254
255
255
build/package.BUILT : build strip
256
256
mkdir -p dist
257
+ ./docker_ensure_git_access.sh
257
258
./deb_from_installation.sh $(shell pwd) /dist " $( VERSION) " " $( BUILD_PREFIX) "
258
259
./tar_from_installation.sh " $( shell pwd) /dist" " $( VERSION) " " $( BUILD_PREFIX) "
259
260
touch build/package.BUILT
Original file line number Diff line number Diff line change 4
4
echo " Building the docker image"
5
5
docker build -t wasi-sdk-builder:latest .
6
6
7
- if ! git config safe.directory | grep --quiet /workspace; then
8
- echo " Setting up Git safe directory"
9
- git config --global --add safe.directory /workspace
10
- fi
11
-
12
7
echo " Building the package in docker image"
13
8
mkdir -p ~ /.ccache
14
9
docker run --rm -v " $PWD " :/workspace -v ~ /.ccache:/root/.ccache -e NINJA_FLAGS=-v --workdir /workspace --tmpfs /tmp:exec wasi-sdk-builder:latest make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # When running any git command inside a Docker container the user is different
4
+ # than usual so Git thinks something fishy is going on. Git will print something
5
+ # like:
6
+ #
7
+ # > fatal: detected dubious ownership in repository at '/workspace'
8
+ # > To add an exception for this directory, call:
9
+ # >
10
+ # > git config --global --add safe.directory /workspace
11
+ #
12
+ # This script runs that command to avoid this error.
13
+
14
+ set -ex
15
+ if ! git config safe.directory | grep --quiet /workspace; then
16
+ echo " Setting up Git safe directory"
17
+ git config --global --add safe.directory /workspace
18
+ fi
You can’t perform that action at this time.
0 commit comments