We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0cf9b commit fc54b2fCopy full SHA for fc54b2f
1 file changed
lib/core.ps1
@@ -1,4 +1,15 @@
1
-$scoopdir = $env:SCOOP, "$env:LOCALAPPDATA\scoop" | select -first 1
+# Note: The default directory changed from ~/AppData/Local/scoop to ~/scoop
2
+# on 1 Nov, 2016 to work around long paths used by NodeJS.
3
+# Old installations should continue to work using the old path.
4
+# There is currently no automatic migration path to deal
5
+# with updating old installations to the new path.
6
+$scoopdir = $env:SCOOP, "$env:USERPROFILE\scoop" | select -first 1
7
+
8
+$oldscoopdir = "$env:LOCALAPPDATA\scoop"
9
+if((test-path $oldscoopdir) -and !$env:SCOOP) {
10
+ $scoopdir = $oldscoopdir
11
+}
12
13
$globaldir = $env:SCOOP_GLOBAL, "$($env:programdata.tolower())\scoop" | select -first 1
14
$cachedir = "$scoopdir\cache" # always local
15
0 commit comments