-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Base.GIT_VERSION_INFO
: record the Buildkite commit that was used to build Julia
#43073
Conversation
Bump @staticfloat |
5d1c1eb
to
cf0b519
Compare
Bump @staticfloat |
…i.e. remove the `:?` suffix)
ad2cbd1
to
9212bcf
Compare
@@ -82,6 +84,16 @@ if [ -z "$fork_master_timestamp" ]; then | |||
fork_master_timestamp="0" | |||
fi | |||
|
|||
build_system_directory="../.buildkite" | |||
if [[ -d "${build_system_directory}/.git" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a /bin/sh
script so this errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which part errors? I just ran the following locally inside /bin/sh
, and it seemed to work fine for me.
build_system_directory="../.buildkite"
if [[ -d "${build_system_directory}/.git" ]]; then
echo "foo"
else
echo "bar"
fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably /bin/sh
is bash
for you then. On Ubuntu, at least, /bin/sh
is dash
by default, and there you get
.../version_git.sh: 88: [[: not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[[
is a bashism
build_system_commit=$(git -C "${build_system_directory}" rev-parse HEAD) | ||
build_system_commit_short=$(git -C "${build_system_directory}" rev-parse --short HEAD) | ||
else | ||
echo "Warning: The build system directory does not exist or is not a Git repo: ${build_system_directory}" >&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this?
No description provided.