aboutsummaryrefslogtreecommitdiff
path: root/.copr/prepare.sh
diff options
context:
space:
mode:
authorNeville Cain <neville.cain@qonto.eu>2019-12-29 21:04:56 +0100
committerNeville Cain <neville.cain@qonto.eu>2020-01-04 23:54:57 +0100
commit16b793a45aca4cee998ff65f37bebadcf51c7618 (patch)
tree54109b9ce3b236e56449e8e28586dcdb1346796e /.copr/prepare.sh
parent9e03aa14b63f9351926071ba0a8b7064154cb0fe (diff)
downloadpodman-16b793a45aca4cee998ff65f37bebadcf51c7618.tar.gz
podman-16b793a45aca4cee998ff65f37bebadcf51c7618.tar.bz2
podman-16b793a45aca4cee998ff65f37bebadcf51c7618.zip
Generate binaries only if they are changes in src code.
Changes I am making: 1. The target `.gopathok` was listed in `.PHONY` which looks wrong as it regenerates `.gopathok` every time we re-run it, which was a part of the issue. I removed it to avoid that. If `.gopathok` is present', makefile should not need to rerun it. 2. Ensure the binaries are created only if they don't exist by adding `bin/podman` and `bin/podman-remote`. 3. Add a `SOURCES = $(shell find . -name "*.go")` and put it as a dependency of the podman binaries target. It allows us to re-generate the binaries only when there is a change in the source files. The downside is it increases the running time of the command that generates them (20 seconds on my virtual machine running Centos 7). If this is a problem, we could introduce a hidden file that would list all the files to track, that would need to be updated only when a dev is introducing new files. 4. Fixed the make package-install as it does not work with yum. I updated the build_rpm.sh to ensure it works on centos 7 and centos 8 with no pre-required installation. Closes #4367 Signed-off-by: Neville Cain <neville.cain@qonto.eu>
Diffstat (limited to '.copr/prepare.sh')
-rw-r--r--.copr/prepare.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.copr/prepare.sh b/.copr/prepare.sh
index d5a9a7f85..7c8cb4c8f 100644
--- a/.copr/prepare.sh
+++ b/.copr/prepare.sh
@@ -34,6 +34,6 @@ if [ ! -d conmon ]; then
git clone -n --quiet https://github.com/containers/conmon
fi
pushd conmon
-git checkout --detach 6f3572558b97bc60dd8f8c7f0807748e6ce2c440
+git checkout --detach d532caebc788fafdd2a305b68cd1983b4039bea4
git archive --prefix "conmon/" --format "tar.gz" HEAD -o "../build/conmon.tar.gz"
popd