-
Notifications
You must be signed in to change notification settings - Fork 234
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
Verification borks on Linux when source directory contains a space #135
Comments
@gruntster Would you mind raising this issue on https://github.com/pact-foundation/pact-ruby-standalone and sending a PR to that project? |
@gruntster I can see why you've done |
@bethesque The patch encloses the include directory, There's probably a more elegant solution. I'm not that au fait with the codebase but the changes were enough to temporarily get me over the line. |
Apart from the Is there a reason why your path must have a space, or are you just safety proofing the code as a public service ;) ? |
Ah, I see. Looks like the issue has been known for almost three years: phusion/traveling-ruby#38 The issue occurs on our build server when it generates a path with spaces. I can implement a hack to each of our repos to workaround the problem. I was hoping a universal fix would be possible. |
Yeah, there's not been much movement on the project for some time. I doubt it will be fixed. Is there any way to restrict the characters in the path generation code instead? |
Unfortunately not. We can hardcode paths in each of our CD pipelines but that hinders their portability. It's probably cleaner for us to build custom Linux NuGet packages or revert back to a custom .NET Core build of PactNet v1. I can provide a PR for building patched Linux NuGet packages so others can benefit? |
It would be the same hack/patch, whether it's the NuGet package or the Travelling Ruby one. If we were going to do it anywhere, it would belong here, and would need to be done for all the executables (there are other scripts in the pact-provider-verifier family). I feel a bit better about it given that the solution was suggested by the Travelling Ruby maintainer. Raise an issue in the standalone repo and I'll have a look at hacking the changes in at build time. |
Closed due to age. |
Pact verification borks on Linux when the source directory contains a space; Windows works fine.
I'm using the following patch to workaround the issue:
The text was updated successfully, but these errors were encountered: