Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcing dictionary order #134

Merged
merged 1 commit into from
Nov 30, 2022
Merged
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
6 changes: 3 additions & 3 deletions ansible/rebuild_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fi

pushd "$PACKAGES_DIR"
# Update module digest so that pr.groovy can ensure it is run after each module change
cat $(find openshift/ -name '*.py' | sort) | md5sum > $DIR/rebuild_module.digest
ENCODED_TGZ=$(tar c --owner=0 --numeric-owner --group=0 --mtime='UTC 2019-01-01' $(find openshift/ -name '*.py' | sort) | gzip -c -n | base64 --wrap=0)
cat $(find openshift/ -name '*.py' | sort -d) | md5sum > $DIR/rebuild_module.digest
ENCODED_TGZ=$(tar c --owner=0 --numeric-owner --group=0 --mtime='UTC 2019-01-01' $(find openshift/ -name '*.py' | sort -d) | gzip -c -n | base64 --wrap=0)
popd

echo "#!/usr/bin/env python" > $OUTPUT_FILE
Expand All @@ -45,4 +45,4 @@ done < "$TEMPLATE_FILE"
if [[ "$replaced" != "1" ]]; then
echo "Unable to find replacement pattern in template"
exit 1
fi
fi