Skip to content
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

Failing to download Linux Arm64 chrome inside DevContainer on Mac M1 #522

Open
dwelch2344 opened this issue Jun 27, 2023 · 0 comments
Open

Comments

@dwelch2344
Copy link

We're trying to spin up a dev container to build Angular / a few other projects in a similar fashion across all machines, but running into an issue with webdriver-manager not being able to download Linux appropriately (and thus yarn install fails from a post-install step)

I know there's some outstanding issues (#476 & #510) reference issues on the M1 architecture in the Host OS, but we're seeing the binary not download when running on a Linux Container (which still has arm64 arch).

Some primitive instrumentation (polite description of monkey patching) lead us to the following:

if (this.osarch === 'arm64' && this.ostype === 'Darwin' && item.includes('m1')) {

which looks like it addresses the issue on the M1. Problem is our values for osarch and ostype are arm64 & Linux respectively. Patching in the following works, but not sure if this would be acceptable for all arm64 scenarios.

   if (this.osarch === 'arm64' && this.ostype === 'Linux') {
     itemFound = item;
   }

Can anyone shed some light? Happy to submit a PR / any tests required, if this indeed is a good solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant