ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.22k stars 1.41k forks source link

Scoop fails to get app versions if $SCOOP is set to a OneDrive or Google Drive folder #3112

Open umm7yass opened 5 years ago

umm7yass commented 5 years ago

Steps to Reproduce: Set $SCOOP to a folder in OneDrive (in my case it's "$env:USERPROFILE\OneDrive - My Work Corporation\Tools\Scoop")

I can install apps perfectly fine, and they even show up fine when listed:

~ $  scoop list
Installed apps:

  7zip 18.06
  qpdf 8.4.0
  vlc 3.0.6 [extras]

However once OneDrive has finished syncing listed items lose their version number and they are now in a state of either "app manifests have been removed" or "apps failed to install" according to 'scoop status':

~ $  scoop list
Installed apps:

  7zip
  qpdf
  vlc

~ $  scoop status
Scoop is up to date.
These app manifests have been removed:
    vlc
These apps failed to install:
    7zip
    qpdf
    vlc
~ $

I suspect it may be some sort of issue with OneDrive and junctions, as the "current" folder isn't listed on any of the above apps in the OneDrive sharepoint folder. Ex: under Tools\Scoop\apps\7zip\ there is only the 18.06 folder and not the "current" directory junction. Although the current folder still shows up on the desktop, albeit with the syncing symbol.

rashil2000 commented 1 year ago

From @ndeeH in #5453:

I wanted to put all my scoop stuff in my Google Drive (streamed). Seems that all things fail due virtual file system (links)?

Current Behavior

Every installs fails. New-Item: G:\Meine Ablage\Tools\scoop\apps\scoop\current\lib\install.ps1:1239 Line | 1239 | New-Item -Path $source -ItemType Junction -Value $target | ~~~~~~~~~~~~ Invalid function.