Skip to content

Conversation

@staticfloat
Copy link

Changes

When running on Windows, buildkite can provide backslash-separated paths for the script name, causing the variable substitution here to fail to trim off the basename of the invoked hook file. This changes the hooks to instead use dirname, which on these windows systems works with both forward and backward slash separated names.

Verification

I integrated this change into a buildkite plugin with a test suite that runs on Linux, macOS and Windows, and it worked on all three operating systems.

When running on Windows, buildkite can provide backslash-separated paths
for the script name, causing the variable substitution here to fail to
trim off the basename of the invoked hook file.  This changes the hooks
to instead use `dirname`, which on these windows systems works with both
forward and backward slash separated names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant