pact-ruby icon indicating copy to clipboard operation
pact-ruby copied to clipboard

Pact No such file or directory publish_dir

Open kheraankit opened this issue 1 year ago • 1 comments

I am getting this error when trying to run provider verification tests. It wants to create a directory under root /publish/ for which it doesn't have permissions. Is there any configuration property that I can use to configure the path, and learn more about what it is trying to do?

Failure/Error: file = File.new("#{@publish_dir}/#{filename}", 'w+')
   
   Errno::ENOENT:
     No such file or directory @ rb_sysopen - /publish/0.2795377757053914
   # /Users/<user>/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/pact-1.64.0/bin/pact:4:in `<top (required)>'
   # /Users/<user>/.rbenv/versions/3.0.5/bin/pact:25:in `load'
   # /Users/<user>/.rbenv/versions/3.0.5/bin/pact:25:in `<top (required)>'


kheraankit avatar Feb 23 '24 06:02 kheraankit

Are you able to provide any more information about your setup? or provide a minimal reproducible example?

YOU54F avatar Aug 15 '24 17:08 YOU54F