Closed mrplumber closed 1 week ago
Turns out it works with PowerShell 7.4 Still for compatibility's sake it seems reasonable to change the code as mentioned earlier.
Hit couple of more issues due to current implementation's incompatibility with PowerShell 5.1:
"$env:TEMP\sqlite"
must be explicitly created (after https://github.com/ScoopInstaller/Scoop/blob/716b6db3ae55cd32eeb740243d688110a2728f83/lib/database.ps1#L27)New-Item -Path $sqliteTempPath -ItemType Directory -Force | Out-Null
Get-ChildItem -Path "$sqliteTempPath\build\net45\*" -Recurse -Exclude '*.targets' | Move-Item -Destination $sqlitePath -Force
Scoop is being advertised as compatible with PowerShell 5.1 so these changes seem appropriate to implement.
Bug Report
Current Behavior
When trying to enable new SQLite cache feature with command
scoop config use_sqlite_cache true
got an error:Expected Behavior
Obvious.
Additional context/output
Possible Solution
While debugging tried to manually follow commands in
function Get-SQLite
from lib/database.ps1 and got stuck there: https://github.com/ScoopInstaller/Scoop/blob/716b6db3ae55cd32eeb740243d688110a2728f83/lib/database.ps1#L29Shouldn't this line: https://github.com/ScoopInstaller/Scoop/blob/716b6db3ae55cd32eeb740243d688110a2728f83/lib/database.ps1#L24 be like this:
$sqlitePkgPath = "$env:TEMP\sqlite.zip"
?
System details
Windows version: 10
OS architecture: 64bit
PowerShell version:
Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration