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

Minor changes to print revision differences when building shims #4871

Merged
merged 1 commit into from
Mar 7, 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
8 changes: 7 additions & 1 deletion dist/scripts/check-shims-revisions.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,6 +37,12 @@ function check-shims-revisions() {
if [ -n "$pre_revision" ] && [[ "$curr_revision" != "$pre_revision" ]] ; then
echo >&2 "Check Failed: git revisions between shims are not equal"
echo >&2 "Please check the revisions of each shim to see which one is inconsistent. Note, if building with Databricks those jars are built separately."

echo >&2 "-------------"
echo >&2 "Version file ${pre_shim_version_path}, revision is ${pre_revision}"
echo >&2 "Version file ${shim_version_path}, revision is ${curr_revision}"
echo >&2 "------------"

exit 1
fi
pre_revision="${curr_revision}"
Expand Down