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

Unable to upgrade from Bun v1.1.42 to v1.1.43 on Windows 11 #16284

Closed
abdelfattahradwan opened this issue Jan 9, 2025 · 5 comments
Closed

Unable to upgrade from Bun v1.1.42 to v1.1.43 on Windows 11 #16284

abdelfattahradwan opened this issue Jan 9, 2025 · 5 comments
Labels
bug Something isn't working windows An issue that is known to occur on Windows

Comments

@abdelfattahradwan
Copy link

What version of Bun is running?

1.1.42+50eec0025

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

  • Open a new administrator PowerShell instance.
  • Run bun upgrade

What is the expected behavior?

Bun should successfully upgrade from v1.1.42 to v1.1.43

What do you see instead?

The binary downloads successfully, but the rest of the operation fails with the following error:

New-Object : Exception calling ".ctor" with "3" argument(s): "Operation did not complete successfully because the file
contains a virus or potentially unwanted software.
"
At C:\program files\windowsapps\microsoft.powershell_7.4.6.0_x64__8wekyb3d8bbwe\Modules\Microsoft.PowerShell.Archive\Microsoft.
PowerShell.Archive.psm1:946 char:30
+ ... ileStream = New-Object -TypeName System.IO.FileStream -ArgumentList $ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

error: Failed to verify Bun (code: FileNotFound))

Additional information

No response

@abdelfattahradwan abdelfattahradwan added bug Something isn't working needs triage labels Jan 9, 2025
@RiskyMH RiskyMH added windows An issue that is known to occur on Windows and removed needs triage labels Jan 9, 2025
@jonaspm
Copy link

jonaspm commented Jan 9, 2025

same here.

@damieng
Copy link

damieng commented Jan 9, 2025

Also same problem. Virus Total is reporting that Microsoft has flagged the download with Trojan:Script/Wacatac.B!ml

https://www.virustotal.com/gui/file/0af5374d1aa76e88722c2c66f72fa018b786766304c8cafec09774296d5ca80e

Locally being flagged:

Image

@basst85
Copy link

basst85 commented Jan 9, 2025

Yeah, i get the same MS Defender warning when installing on Windows 11

@Jarred-Sumner
Copy link
Collaborator

Sounds like we need to start codesigning the Windows executable

@abdelfattahradwan
Copy link
Author

I tried upgrading again today, and things are working OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

6 participants