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

[BUG] Tauri: NPM package without name and version cannot be updated (operator '@' cannot be used) #2162

Open
4 tasks done
redactedscribe opened this issue Apr 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working ready-to-go
Milestone

Comments

@redactedscribe
Copy link

redactedscribe commented Apr 23, 2024

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions
  • This issue is about a bug (if it is not, please use the correct template)

Describe your issue

It appears that a Tauri NPM package cannot be updated. I believe this is because its package ID contains the @ symbol: @tauri-apps/api.

Starting package update operation for package id=with Manager name=Npm
Given installation options are <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Process Executable     : C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
Process Call Arguments :  -NoProfile -ExecutionPolicy Bypass -Command npm install @1.5.4
Working Directory      : C:\Users\m
Process Start Time     : 23/04/2024 12:31:03
ERR | At line:1 char:13
ERR | + npm install @1.5.4
ERR | +             ~~
ERR | The splatting operator '@' cannot be used to reference variables in an expression. '@1' can be used only as an 
ERR | argument to a command. To reference variables in an expression use '$1'.
ERR |     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
ERR |     + FullyQualifiedErrorId : SplattingNotPermitted
Process Exit Code      : 1
Process End Time       : 23/04/2024 12:31:03

Steps to reproduce the issue

I downloaded and installed NPM package with ID @tauri-apps/api (and /cli) some weeks ago. Now there is an available update for /api to version 1.5.4 but WingetUI errors on the @.

WingetUI Log

\-

Package Managers Logs

\-

Relevant information

When searching tauri in the Discover Packages tab, the packages I installed do not display a checkmark next to them, hinting that WingetUI doesn't consider these packages to be installed, again likely related to the @ symbol.

Screenshots and videos

Updates:

WingetUI_2024-04-23_12-38-34

Discover Packages tab:

WingetUI_2024-04-23_12-41-34

Installed Packages tab (not sure why it shows ID /api twice, and not both /api and /cli, also, they wrongly appear in the Version column instead of Package ID):

WingetUI_2024-04-23_12-43-22

@redactedscribe redactedscribe added the bug Something isn't working label Apr 23, 2024
@marticliment marticliment added this to the Bugs milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants