summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-02-17 00:11:16 +0700
committerShulhan <ms@kilabit.info>2023-02-17 00:11:54 +0700
commit1198b7531a4dc6ecadc30284744934dfbaa536d1 (patch)
treed236a18a0fadcbc6039fc8e6624eef557a9b7bce /Makefile
parenta82178cdd43d4d98480400abdd57e74fab2795ce (diff)
downloadgoogle-cloud-ops-agent-git-1198b7531a4dc6ecadc30284744934dfbaa536d1.tar.xz
all: fix build failed due to upstream changes
Since PR #1038 merged to master, the build failed due to the $DESTDIR now replaced with "/work" for building with docker. [1] [1] https://github.com/GoogleCloudPlatform/ops-agent/pull/1038#discussion_r1106206200
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 25aa434..13fe8fe 100644
--- a/Makefile
+++ b/Makefile
@@ -16,13 +16,16 @@ chrootpkg:
mkdir -p $$HOME/.gradle
mkdir -p _build
mkarchroot _build/root base-devel systemd || exit 0
- makechrootpkg -d $$HOME/go:/build/go \
+ makechrootpkg \
+ -d /tmp \
+ -d $$HOME/go:/build/go \
-d $$HOME/.cache/go-build:/build/.cache/go-build \
-d $$HOME/.gradle:/build/.gradle \
- -r _build
+ -r _build \
+ -- --nocolor
patch:
- git -C src/google-cloud-ops-agent-git diff > 0001-apps-hostmetrics.patch && \
+ git -C src/google-cloud-ops-agent-git diff > 0001-build-sh.patch && \
makepkg -g
release: