Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions ci/hermetic/update_rpms_lockfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash
set -euo pipefail

SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
REPO_ROOT="$(realpath "${SCRIPT_DIR}/../..")"

# We update the 'packages' list in the rpms.in.yaml based on the content
# of the *deps*.txt file located in src/.
dep_files=$(find ../../src/ -name "*deps*.txt" | tr '\n' ' ')
dep_files=$(find "${REPO_ROOT}/src/" -name "*deps*.txt" | tr '\n' ' ')
# shellcheck disable=SC2086
./update_package_list --package_file $dep_files --yaml_file rpms.in.yaml
${SCRIPT_DIR}/update_package_list --package_file $dep_files --yaml_file ${REPO_ROOT}/rpms.in.yaml

# Then we update the rpms.lock.yaml file based on rpms.in.yaml with
# rpm-lockfile-prototype.
Expand Down Expand Up @@ -45,7 +48,7 @@ else
exit 1
fi

rpm-lockfile-prototype rpms.in.yaml --outfile rpms.lock.yaml
rpm-lockfile-prototype ${REPO_ROOT}/rpms.in.yaml --outfile ${REPO_ROOT}/rpms.lock.yaml

echo "Deactivating virtual environment..."
deactivate
Expand Down
2 changes: 1 addition & 1 deletion ci/hermetic/rpms.in.yaml → rpms.in.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contentOrigin:
varsFromContainerfile: "Dockerfile"

context:
bare: false
containerfile: ./Dockerfile

# TODO: for now we only enable x86_64 to speed up development and we'll add the remaining arches once the
# whole pipeline (i.e build, testing and release) ready.
Expand Down
File renamed without changes.
Loading