Closed christopher-francisco closed 2 years ago
Thanks @chris-fa, I'll take a look.
cc: @mboudreau @bethesque . Did we do something recently with fixing spaces on Windows, and could this have had an impact?
@mefellows Btw, this is not happening on Windows, it's on a Jenkins server running in some linux distro (prolly Centos but I don't have confirmation yet, the owner hasn't replied with that info).
I was also able to reproduce it on my MacOS
I swear we'd fixed all the space issues! They're like whack-a-mole. I'll have a look. I think I'm going to add contraindications for using Pact in the FAQ - 1. you're on windows or 2. your project name has spaces :P
I get further if I replace
echo GEM_HOME="$ROOT/lib/ruby/gems/2.2.0"
echo GEM_PATH="$ROOT/lib/ruby/gems/2.2.0"
with
echo GEM_HOME=$(printf %q "$ROOT/lib/ruby/gems/2.2.0")
echo GEM_PATH=$(printf %q "$ROOT/lib/ruby/gems/2.2.0")
in ruby_environment, but then it errors further down.
Closing as latest version removes Ruby core.
Software versions
macOS 10.13.3
,Centos 7 (probably)
5.9.1
8
Expected behaviour
It shouldn't matter whether the directory name has or hasn't spaces on its name.
Actual behaviour
When creating the mock server, it somehow split the project path where spaces exist:
/var/lib/jenkins/workspace/My Cool App/
, and attempts to runCool
as a command. It then, of course, fails sayingSteps to reproduce
my-cool-app
toMy Cool App
.