When running the plugin on Linux with arm64 architecture, the Linux sauce connect is downloaded for the x86 version instead of the arm64 version. Sauce Connect has download URLs for both, so there should be a way to detect the architecture for Linux and download the correct one.
When looking at lib/sauce-connect-launcher.js, it seems like there is no condition to check for architecture type.
Example error shows as:
Error: spawn Unknown system error -8
at ChildProcess.spawn (node:internal/child_process:413:11)
at spawn (node:child_process:757:9)
at connect (/builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:501:11)
at /builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:606:12
at tryRun (/builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/lib/try_run.js:4:3)
at run (/builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:601:3)
at /builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:630:14
at nextTask (/builds/test/accounts-webapp/automation-test/node_modules/sauce-connect-launcher/node_modules/async/dist/async.js:5327:14)
at next (/builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/node_modules/async/dist/async.js:5334:9)
at /builds/appgroup/test-webapp/automation-test/node_modules/sauce-connect-launcher/node_modules/async/dist/async.js:972:16
When running the plugin on Linux with arm64 architecture, the Linux sauce connect is downloaded for the x86 version instead of the arm64 version. Sauce Connect has download URLs for both, so there should be a way to detect the architecture for Linux and download the correct one.
When looking at lib/sauce-connect-launcher.js, it seems like there is no condition to check for architecture type.
Example error shows as: