pact-foundation / pact-standalone-npm

Pact Standalone wrapper for NPM projects
2 stars 1 forks source link

Issue with win32 pact-mock-service.bat #1

Closed Pingudiem closed 1 year ago

Pingudiem commented 6 years ago

Theres seems to be an issue with the mentioned .bat.

I tried using pact-mock for pact testing in angular 5 (ts 2.6.2).

Starting the mock-service does not work for me, and i guess a corrupted path could be the issue.

Within the .bat you state

:: Run the actual app using the bundled Ruby interpreter, with Bundler activated. @"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib\ "%ROOT_PATH%

but the lib\app\lib folder does not exist. Is this intended?

trherefore this call : platforms\win32\bin\pact-mock-service.bat service --cors 'true' --port '1244' --consumer 'ui' --provider 'userservice' --pact_dir

does not work and the mock-service is not started.

As I am pretty new to Angular 5 and know almost nothing about ruby I am very sorry if the problem exists in my chair, but I can not seem to wrap my head around my issue and this seems to cause it.

Thank you!

mefellows commented 6 years ago

Thanks @Pingudiem, would you be interested in submitted a PR to resolve this? Most of us Pact devs operate on Mac/Linux, so it's hard to get a good, productive environment for fixing Windows issues.

mboudreau commented 6 years ago

Wouldn't the appveyor test fail then if it didn't work?

On Thu, Jan 25, 2018 at 9:38 AM Matt Fellows notifications@github.com wrote:

Thanks @Pingudiem https://github.com/pingudiem, would you be interested in submitted a PR to resolve this? Most of us Pact devs operate on Mac/Linux, so it's hard to get a good, productive environment for fixing Windows issues.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pact-foundation/pact-standalone-npm/issues/1#issuecomment-360298155, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjA5CJn9W2X5Dtl-5QY22N4OZDM5_YEks5tN7D-gaJpZM4Rrhdy .

mefellows commented 6 years ago

Presumably. Are you referring to the pact-node appveyor tests, btw?

mboudreau commented 6 years ago

yarp

On Thu, Jan 25, 2018 at 10:10 AM Matt Fellows notifications@github.com wrote:

Presumably. Are you referring to the pact-node appveyor tests, btw?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/pact-foundation/pact-standalone-npm/issues/1#issuecomment-360305692, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjA5EUpy20_U2DS06na6Ep-nxUWcIU6ks5tN7hzgaJpZM4Rrhdy .

bethesque commented 6 years ago

The mock service bat has a (passing) windows test here: https://ci.appveyor.com/project/MichelBoudreau/pact-ruby-standalone-windows-test/build/1.0.85#L61

Pingudiem commented 6 years ago

Hey everyone thanks for the help.

How can I start the pact-node-test? I can not seem to find it in my node module under pact-node/test.

@mefellows I am not sure if a PR would be helpful but I can try.

My scenario is: I have an data service and have written a pact for it. Now after i run install (clean, cache cleaned and verified) I run test and the following log is my result:

10% building modules 1/1 modules 0 active[2018-01-25T07:56:42.443Z] INFO: pact-node@6.5.0/27360 on PD: Creating Pact Server with options: cors = true, port = 1244, consumer = ui, provider = userservice, dir = c:\Users\diem\Downloads\code-examples-master\code-examples-master\pact\pact-angular\pacts, spec = 2, ssl = false, host = localhost, pactFileWriteMode = overwrite [2018-01-25T07:56:42.447Z] DEBUG: pact-node@6.5.0/27360 on PD: Starting pact binary with 'cmd.exe,[object Object],{"cwd":"c:\\Users\\diem\\Downloads\\code-examples-master\\code-examples-master\\pact\\pact-angular\\node_modules\\@pact-foundation\\pact-standalone","detached":false,"env":{"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\diem\\AppData\\Roaming","CLI_ROOT":"c:\\Users\\diem\\Downloads\\code-examples-master\\code-examples-master\\pact\\pact-angular\\node_modules\\@angular\\cli","COMMONPROGRAMFILES":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","COMPUTERNAME":"PD","COMSPEC":"C:\\WINDOWS\\system32\\cmd.exe","EXEPATH":"C:\\Program Files (x86)\\Git\\bin","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","HOME":"C:\\Users\\diem","HOMEDRIVE":"O:","HOMEPATH":"\\","HOMESHARE":"\\\\nkk-alf01\\home\\diem","INIT_CWD":"c:\\Users\\diem\\Downloads\\code-examples-master\\code-examples-master\\pact\\pact-angular","LANG":"en_US.UTF-8","LOCALAPPDATA":"C:\\Users\\diem\\AppData\\Local","LOGLEVEL":"DEBUG","LOGONSERVER":"\\\\NKK-ADS01","MSYSTEM":"MINGW32","NODE":"C:\\Program Files\\nodejs\\node.exe","npm_config_access":"","npm_config_allow_same_version":"","npm_config_also":"","npm_config_always_auth":"","npm_config_argv":"{\"remain\":[],\"cooked\":[\"test\"],\"original\":[\"test\"]}","npm_config_auth_type":"legacy","npm_config_bin_links":"true","npm_config_browser":"","npm_config_ca":"","npm_config_cache":"C:\\Users\\diem\\AppData\\Roaming\\npm-cache","npm_config_cache_lock_retries":"10","npm_config_cache_lock_stale":"60000","npm_config_cache_lock_wait":"10000","npm_config_cache_max":"Infinity","npm_config_cache_min":"10","npm_config_cafile":"","npm_config_cert":"","npm_config_cidr":"","npm_config_color":"true","npm_config_commit_hooks":"true","npm_config_depth":"Infinity","npm_config_description":"true","npm_config_dev":"","npm_config_dry_run":"","npm_config_editor":"notepad.exe","npm_config_engine_strict":"","npm_config_fetch_retries":"2","npm_config_fetch_retry_factor":"10","npm_config_fetch_retry_maxtimeout":"60000","npm_config_fetch_retry_mintimeout":"10000","npm_config_force":"","npm_config_git":"git","npm_config_git_tag_version":"true","npm_config_global":"","npm_config_globalconfig":"C:\\Users\\diem\\AppData\\Roaming\\npm\\etc\\npmrc","npm_config_globalignorefile":"C:\\Users\\diem\\AppData\\Roaming\\npm\\etc\\npmignore","npm_config_global_style":"","npm_config_group":"","npm_config_ham_it_up":"","npm_config_heading":"npm","npm_config_https_proxy":"","npm_config_http_proxy":"http://nkk-proxy:3128","npm_config_if_present":"","npm_config_ignore_prepublish":"","npm_config_ignore_scripts":"","npm_config_init_author_email":"","npm_config_init_author_name":"","npm_config_init_author_url":"","npm_config_init_license":"ISC","npm_config_init_module":"C:\\Users\\diem\\.npm-init.js","npm_config_init_version":"1.0.0","npm_config_json":"","npm_config_key":"","npm_config_legacy_bundling":"","npm_config_link":"","npm_config_local_address":"","npm_config_loglevel":"notice","npm_config_logs_max":"10","npm_config_long":"","npm_config_maxsockets":"50","npm_config_message":"%s","npm_config_metrics_registry":"http://registry.npmjs.org/","npm_config_node_gyp":"C:\\Users\\diem\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js","npm_config_node_options":"","npm_config_node_version":"8.9.1","npm_config_offline":"","npm_config_onload_script":"","npm_config_only":"","npm_config_optional":"true","npm_config_otp":"","npm_config_package_lock":"true","npm_config_package_lock_only":"","npm_config_parseable":"","npm_config_prefer_offline":"","npm_config_prefer_online":"","npm_config_prefix":"C:\\Users\\diem\\AppData\\Roaming\\npm","npm_config_production":"","npm_config_progress":"true","npm_config_prox":"http://nkk-proxy:3128","npm_config_proxy":"http://nkk-proxy:3128/","npm_config_read_only":"","npm_config_rebuild_bundle":"true","npm_config_registry":"http://registry.npmjs.org/","npm_config_rollback":"true","npm_config_save":"true","npm_config_save_bundle":"","npm_config_save_dev":"","npm_config_save_exact":"","npm_config_save_optional":"","npm_config_save_prefix":"^","npm_config_save_prod":"","npm_config_scope":"","npm_config_scripts_prepend_node_path":"warn-only","npm_config_script_shell":"","npm_config_searchexclude":"","npm_config_searchlimit":"20","npm_config_searchopts":"","npm_config_searchstaleness":"900","npm_config_send_metrics":"","npm_config_shell":"C:\\WINDOWS\\system32\\cmd.exe","npm_config_shrinkwrap":"true","npm_config_sign_git_tag":"","npm_config_sso_poll_frequency":"500","npm_config_sso_type":"oauth","npm_config_strict_ssl":"true","npm_config_tag":"latest","npm_config_tag_version_prefix":"v","npm_config_timing":"","npm_config_tmp":"C:\\Users\\diem\\AppData\\Local\\Temp","npm_config_umask":"0000","npm_config_unicode":"","npm_config_unsafe_perm":"true","npm_config_usage":"","npm_config_user":"","npm_config_userconfig":"C:\\Users\\diem\\.npmrc","npm_config_user_agent":"npm/5.6.0 node/v8.9.1 win32 x64","npm_config_version":"","npm_config_versions":"","npm_config_viewer":"browser","npm_execpath":"C:\\Users\\diem\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js","npm_lifecycle_event":"test","npm_lifecycle_script":"cross-env LOGLEVEL=DEBUG ng test","npm_node_execpath":"C:\\Program Files\\nodejs\\node.exe","npm_package_dependencies_core_js":"^2.4.1","npm_package_dependencies_rxjs":"^5.4.2","npm_package_dependencies_zone_js":"^0.8.14","npm_package_dependencies__angular_animations":"^4.2.4","npm_package_dependencies__angular_common":"^4.2.4","npm_package_dependencies__angular_compiler":"^4.2.4","npm_package_dependencies__angular_core":"^4.2.4","npm_package_dependencies__angular_devkit_schematics":"0.0.34","npm_package_dependencies__angular_forms":"^4.2.4","npm_package_dependencies__angular_http":"^4.2.4","npm_package_dependencies__angular_platform_browser":"^4.2.4","npm_package_dependencies__angular_platform_browser_dynamic":"^4.2.4","npm_package_dependencies__angular_router":"^4.2.4","npm_package_dependencies__pact_foundation_pact_standalone":"^3.4.0","npm_package_description":"This example project shows how to setup an Angular application to use [Pact](http://pact.io) in order to create Pact files from a consumer test and validate the a consumer against the Pact.","npm_package_devDependencies_codelyzer":"~3.2.0","npm_package_devDependencies_cross_env":"^5.0.5","npm_package_devDependencies_jasmine_core":"~2.6.2","npm_package_devDependencies_jasmine_spec_reporter":"~4.1.0","npm_package_devDependencies_karma":"~1.7.0","npm_package_devDependencies_karma_chrome_launcher":"~2.1.1","npm_package_devDependencies_karma_cli":"~1.0.1","npm_package_devDependencies_karma_coverage_istanbul_reporter":"^1.2.1","npm_package_devDependencies_karma_jasmine":"~1.1.0","npm_package_devDependencies_karma_jasmine_html_reporter":"^0.2.2","npm_package_devDependencies_protractor":"~5.1.2","npm_package_devDependencies_tslint":"~5.7.0","npm_package_devDependencies_ts_node":"~3.2.0","npm_package_devDependencies_typescript":"~2.3.3","npm_package_devDependencies__angular_cli":"1.4.4","npm_package_devDependencies__angular_compiler_cli":"^4.2.4","npm_package_devDependencies__angular_language_service":"^4.2.4","npm_package_devDependencies__pact_foundation_karma_pact":"2.1.3","npm_package_devDependencies__pact_foundation_pact_node":"6.5.0","npm_package_devDependencies__pact_foundation_pact_web":"5.3.0","npm_package_devDependencies__types_jasmine":"~2.5.53","npm_package_devDependencies__types_jasminewd2":"~2.0.2","npm_package_devDependencies__types_node":"~6.0.60","npm_package_license":"MIT","npm_package_name":"angular-pact","npm_package_private":"true","npm_package_readmeFilename":"README.md","npm_package_scripts_build":"ng build","npm_package_scripts_e2e":"ng e2e","npm_package_scripts_lint":"ng lint","npm_package_scripts_ng":"ng","npm_package_scripts_publish_pacts":"node publish-pacts.js","npm_package_scripts_start":"ng serve","npm_package_scripts_test":"cross-env LOGLEVEL=DEBUG ng test","npm_package_version":"0.0.0","NUMBER_OF_PROCESSORS":"8","OneDrive":"C:\\Users\\diem\\OneDrive","OnlineServices":"Online Services","OS":"Windows_NT","PATH":"C:\\Users\\diem\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;c:\\Users\\diem\\Downloads\\code-examples-master\\code-examples-master\\pact\\pact-angular\\node_modules\\.bin;C:\\Program Files (x86)\\Git\\mingw32\\bin;C:\\Program Files (x86)\\Git\\usr\\bin;C:\\Users\\diem\\bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Program Files\\Java\\jdk1.8.0_144\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Oracle\\product\\12.1.0\\client_1\\bin;C:\\Program Files (x86)\\IBM\\RationalSDLC\\common;C:\\Program Files (x86)\\Intel\\iCLS Client;C:\\Program Files\\Intel\\iCLS Client;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\IBM\\RationalSDLC\\ClearCase\\bin;C:\\Program Files (x86)\\IBM\\gsk8\\lib;C:\\Program Files (x86)\\IBM\\gsk8\\bin;C:\\Program Files (x86)\\gs\\gs9.04\\bin;C:\\Program Files (x86)\\Git\\cmd;C:\\Program Files (x86)\\GitExtensions;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\apache-maven-3.5.2-bin\\apache-maven-3.5.2\\bin;C:\\Users\\diem\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\diem\\AppData\\Roaming\\npm","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC","platformcode":"7F","PLINK_PROTOCOL":"ssh","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 94 Stepping 3, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"5e03","ProgramData":"C:\\ProgramData","PROGRAMFILES":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","PROMPT":"$P$G","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","PWD":"C:\\Users\\diem\\Downloads\\code-examples-master\\code-examples-master\\pact\\pact-angular","RATIONAL_ICU4J_DIR":"C:\\Program Files (x86)\\IBM\\RationalSDLC\\common\\java\\icu","RATIONAL_ICU4J_VERSION":"3_8_1","RegionCode":"EMEA","SHLVL":"2","SYSTEMDRIVE":"C:","SYSTEMROOT":"C:\\WINDOWS","TEMP":"C:\\Users\\diem\\AppData\\Local\\Temp","TERM":"cygwin","TERM_PROGRAM":"vscode","TERM_PROGRAM_VERSION":"1.19.2","TMP":"C:\\Users\\diem\\AppData\\Local\\Temp","USERDNSDOMAIN":"NKKPSAG.LOCAL","USERDOMAIN":"NKKPSAG","USERDOMAIN_ROAMINGPROFILE":"NKKPSAG","USERNAME":"diem","USERPROFILE":"C:\\Users\\diem","VSCODE_CWD":"C:\\Program Files\\Microsoft VS Code","VSCODE_IPC_HOOK":"\\\\.\\pipe\\e69022f182f5b72544ffb77dd6a98597-1.19.2-main-sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_NODE_CACHED_DATA_DIR_15324":"C:\\Users\\diem\\AppData\\Roaming\\Code\\CachedData\\490ef761b76b3f3b3832eff7a588aac891e5fe80","VSCODE_PID":"15324","WINDIR":"C:\\WINDOWS","_":"C:/Program Files/nodejs/node.exe","__COMPAT_LAYER":"RunAsAdmin Installer"},"windowsVerbatimArguments":true}' [2018-01-25T07:56:42.456Z] INFO: pact-node@6.5.0/27360 on PD: Created 'platforms\win32\bin\pact-mock-service.bat service --cors 'true' --port '1244' --consumer 'ui' --provider 'userservice' --pact_dir 'c:\Users\diem\Downloads\code-examples-master\code-examples-master\pact\pact-angular\pacts' --pact_specification_version '2' --host 'localhost' --pact-file-write-mode 'overwrite'' process with PID: 27392 [2018-01-25T07:56:44.122Z] DEBUG: pact-node@6.5.0/27360 on PD: Ignoring json-2.1.0 because its extensions are not built. Try: gem pristine json --version 2.1.0 c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire': cannot load such file -- bundler/vendor/molinillo/lib/molinillo/modules/specification_provider (LoadError) from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb:115:in' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb:4:in <class:Resolver>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb:2:in' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb:1:in <top (required)>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb:10:in' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb:9:in <module:Molinillo>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb:3:in<top (required)>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendor/molinillo/lib/molinillo.rb:3:in <top (required)>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/vendored_molinillo.rb:2:in<top (required)>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/resolver.rb:12:in <class:Resolver>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/resolver.rb:10:in' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/resolver.rb:9:in <top (required)>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:192:inresolve' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:132:in specs' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:177:inspecs_for' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:166:in requested_specs' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/environment.rb:18:inrequested_specs' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:13:in setup' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler.rb:122:insetup' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/setup.rb:18:in <top (required)>' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:inrequire' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in rescue in require' from c:/Users/diem/Downloads/code-examples-master/code-examples-master/pact/pact-angular/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:inrequire'

[2018-01-25T07:56:44.128Z] WARN: pact-node@6.5.0/27360 on PD: Pact exited with code 1. [2018-01-25T07:56:44.128Z] INFO: pact-node@6.5.0/27360 on PD: Removing Pact with PID: 27392 FEHLER: Der Prozess "27392" wurde nicht gefunden. (Error: Process "27392" not found)

Here I stopped my testrun as the following tests would search for existing pacts and they can not be done.

Thank you in advance `

Pingudiem commented 6 years ago

It seems that I can start the pact-mockup-service.bat from my cmd.

That is my call and it works like a charm.

pact-mock-service.bat service --cors 'true' --port '8080' --consumer 'ui' --provider 'userservice' --pact_dir 'c:\Users\diem\Downloads\code-examples-master\code-examples-master\pact\pact-angular\pacts' --pact_specification_version '2' --host 'localhost' --pact-file-write-mode 'overwrite'

This points to my earlier statement, that my issue comes from the script from node-modules

sor-developer commented 6 years ago

I was having the same issue. I think it has to do with the 260 max path issue on windows. Moving my project to the root directory fixed it. This is an issue with npm really but it would still be nice if the nested dependencies weren't so deep I guess

bethesque commented 6 years ago

@mefellows any ideas on how to fix this? Can someone provide us with a failing build on appveyor?

sor-developer commented 6 years ago

Well I'm not sure how you could fix this except for flattening pact-standalone a bit. I was specifically getting an issue with the following path which is over 260 characters C:\Users\sor-developer\IdeaProjects\example-project\node_modules\example-dependency\node_modules\@pact-foundation\pact-standalone\platforms\win32\lib\ruby\lib\ruby\gems\2.2.0\gems\bundler-1.9.9\lib\bundler\vendor\molinillo\lib\molinillo\modules\specification_provider.rb

And I was getting this error when I tried to start a mock server C:/Users/sor-developer/IdeaProjects/example-project/node_modules/example-dependency/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- bundler/vendor/molinillo/lib/molinillo/modules/specification_provider (LoadError)

When I moved my project to root then it worked as expected.

mboudreau commented 6 years ago

That's good to know. I can investigate this further and see if a fix is possible or a workaround.

On Fri., 16 Feb. 2018, 10:05 pm sor-developer, notifications@github.com wrote:

Well I'm not sure how you could fix this except for flattening pact-standalone a bit. I was specifically getting an issue with the following path which is over 260 characters

C:\Users\sor-developer\IdeaProjects\example-project\node_modules\example-dependency\node_modules\@pact-foundation\pact-standalone\platforms\win32\lib\ruby\lib\ruby\gems\2.2.0\gems\bundler-1.9.9\lib\bundler\vendor\molinillo\lib\molinillo\modules\specification_provider.rb

And I was getting this error when I tried to start a mock server C:/Users/sor-developer/IdeaProjects/example-project/node_modules/example-dependency/node_modules/@pact-foundation/pact-standalone/platforms/win32/lib/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- bundler/vendor/molinillo/lib/molinillo/modules/specification_provider (LoadError)

When I moved my project to root then it worked as expected.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/pact-foundation/pact-standalone-npm/issues/1#issuecomment-366206709, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjA5G4rnHje1EuH_w2e8ETfn8_qGozlks5tVWD6gaJpZM4Rrhdy .

mefellows commented 6 years ago

@mboudreau as per my previous suggestion, one thing we could look to remove is the @pact-foundation/pact-standalone by merging the standalone project into the pact-node project.

It would make updates for us much less painful, as currently it looks something like this:

upstream pact dependency > ruby standalone > npm standalone > pact-node > pact. All sequential builds, obviously

mboudreau commented 6 years ago

Yeah, I'll look into getting this done.

On Mon, Feb 19, 2018 at 8:28 AM Matt Fellows notifications@github.com wrote:

@mboudreau https://github.com/mboudreau as per my previous suggestion, one thing we could look to remove is the @pact-foundation/pact-standalone by merging the standalone project into the pact-node project.

It would make updates for us much less painful, as currently it looks something like this:

upstream pact dependency > ruby standalone > npm standalone > pact-node > pact. All sequential builds, obviously

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/pact-foundation/pact-standalone-npm/issues/1#issuecomment-366549292, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjA5KIp8DCEBdTa8TM5jYxHVsNWSMFBks5tWJX2gaJpZM4Rrhdy .

mefellows commented 6 years ago

That'd be ace. I think that's about the best we can do for now, unless we also merged pact and pact-node (which aside from perhaps making it a monorepo, I'm not sure is ideal).

mboudreau commented 6 years ago

@mefellows so, I'm thinking, if we're going to do this, might as well just do a postinstall script that only downloads the OS appropriate version, reducing the overall side of the downloadable...

mefellows commented 6 years ago

Absolutely!

bethesque commented 6 years ago

Would you download the standalone directly, or download a JS wrapped version? If you downloaded the standalone directly, we could use semantic versioning to allow upgrades to the standalone without having to go through a JS release each time (eg. allow patch upgrades for bug fixes)

mboudreau commented 6 years ago

Standalone directly. I'd rather use specific version since this will get installed on postinstall and we can't year that if it updates constantly.

On Thu., 22 Feb. 2018, 8:36 pm Beth Skurrie, notifications@github.com wrote:

Would you download the standalone directly, or download a JS wrapped version? If you downloaded the standalone directly, we could use semantic versioning to allow upgrades to the standalone without having to go through a JS release each time (eg. allow patch upgrades for bug fixes)

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/pact-foundation/pact-standalone-npm/issues/1#issuecomment-367621827, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjA5AshU0jrxNDOYjEpyoolgQEW6qQOks5tXTUcgaJpZM4Rrhdy .

mefellows commented 6 years ago

Yeah I think standalone is best. We'll probably match our versions to the standalone anyway, which will just mean people will need to update the micro version in their packages. Easy peasy.