You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this is the correct repository for opening this issue.
I have verified no other issues exist related to my problem.
I have verified this is not an issue for a specific package.
I have verified this issue is not security related.
I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
When trying to install a package that exists in the root of a drive (local or a remote share, mounted as a drive) with the -s . command line option, when the shell is in that directory, you get the error:
Source '.' is unable to be parsed
For example:
PS Y:\> ls
Directory: Y:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---s- 08/01/2025 04:10 @Recycle
d----- 13/01/2023 20:35 chocolatey
-a---- 08/05/2019 22:01 307843 zoomit.4.50.0.20160210.nupkg
PS Y:\> choco install zoomit -s .
Chocolatey v2.4.2
Installing the following packages:
zoomit
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Source '.' is unable to be parsed
This also happens with the local C: drive:
PS C:\> l
Directory: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 01/04/2024 08:26 PerfLogs
d-r--- 08/02/2025 22:07 Program Files
d-r--- 08/02/2025 17:21 Program Files (x86)
d-r--- 27/02/2025 12:01 Users
d----- 08/02/2025 22:05 Windows
-a---- 08/05/2019 22:01 307843 zoomit.4.50.0.20160210.nupkg
PS C:\> choco install zoomit -s .
Chocolatey v2.4.2
Installing the following packages:
zoomit
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Source '.' is unable to be parsed
If you specify the drive specifically, it works:
PS Y:\> ls
Directory: Y:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---s- 08/01/2025 04:10 @Recycle
d----- 13/01/2023 20:35 chocolatey
-a---- 08/05/2019 22:01 307843 zoomit.4.50.0.20160210.nupkg
PS Y:\> choco install zoomit -s y:\
Chocolatey v2.4.2
Installing the following packages:
zoomit
By installing, you accept licenses for the packages.
Downloading package from source 'y:\'
zoomit v4.50.0.20160210
zoomit package files install completed. Performing other installation steps.
Attempt to use original download file name failed for 'C:\ProgramData\chocolatey\lib\zoomit\tools\files\ZoomIt.zip'.
Copying zoomit
from 'C:\ProgramData\chocolatey\lib\zoomit\tools\files\ZoomIt.zip'
Hashes match.
Extracting C:\Users\Paul\AppData\Local\Temp\chocolatey\zoomit\4.50.0.20160210\zoomitInstall.zip to C:\ProgramData\chocolatey\lib\zoomit\tools...
C:\ProgramData\chocolatey\lib\zoomit\tools
HKEY_CURRENT_USER\Software\Sysinternals
HKEY_CURRENT_USER\Software\Sysinternals\ZoomIt
ShimGen has successfully created a shim for ZoomIt.exe
The install of zoomit was successful.
Deployed to 'C:\ProgramData\chocolatey\lib\zoomit\tools'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Or if the package exists in a folder, it works:
PS C:\temp> ls
Directory: C:\temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 08/05/2019 22:01 307843 zoomit.4.50.0.20160210.nupkg
PS C:\temp> choco install zoomit -s .
Chocolatey v2.4.2
Installing the following packages:
zoomit
By installing, you accept licenses for the packages.
Downloading package from source 'C:\temp'
zoomit v4.50.0.20160210
zoomit package files install completed. Performing other installation steps.
Attempt to use original download file name failed for 'C:\ProgramData\chocolatey\lib\zoomit\tools\files\ZoomIt.zip'.
Copying zoomit
from 'C:\ProgramData\chocolatey\lib\zoomit\tools\files\ZoomIt.zip'
Hashes match.
Extracting C:\Users\Paul\AppData\Local\Temp\chocolatey\zoomit\4.50.0.20160210\zoomitInstall.zip to C:\ProgramData\chocolatey\lib\zoomit\tools...
C:\ProgramData\chocolatey\lib\zoomit\tools
ShimGen has successfully created a shim for ZoomIt.exe
The install of zoomit was successful.
Deployed to 'C:\ProgramData\chocolatey\lib\zoomit\tools'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Note that I originally got this with the unzip package and then used zoomit as a second test.
What is Expected?
The command line option -s . work when the Chocolatey CLI command is run from the root of a drive.
How Did You Get This To Happen?
Downloaded the Zoomit package, version 4.50.0.20160210 from Chocolatey Community Repository to the root of C:\ (note I had this package version here, so I used that, which is why it is not the latest).
Opened a PowerShell Administrator session from the Windows 11 included Windows Terminal.
Ran cd c:\
Ran choco install zoomit -s .
Saw the error message Source '.' is unable to be parsed.
System Details
Operating System: Windows 11 10.0.26100.0
Windows PowerShell version: 5.1.26100.2161
Chocolatey CLI Version: 2.4.2
Chocolatey Licensed Extension version: None
Chocolatey License type: None
Terminal/Emulator: Windows Terminal that is bundled with Windows 11
pauby
changed the title
Cannot use the source . when running from the root of an SMB mounted drive
Cannot use the source . when running from the root of a drive
Feb 28, 2025
(To vote for this issue, please add a 👍 emoji to the issue description)
Checklist
What You Are Seeing?
When trying to install a package that exists in the root of a drive (local or a remote share, mounted as a drive) with the
-s .
command line option, when the shell is in that directory, you get the error:For example:
This also happens with the local C: drive:
If you specify the drive specifically, it works:
Or if the package exists in a folder, it works:
Note that I originally got this with the
unzip
package and then usedzoomit
as a second test.What is Expected?
The command line option
-s .
work when the Chocolatey CLI command is run from the root of a drive.How Did You Get This To Happen?
cd c:\
choco install zoomit -s .
Source '.' is unable to be parsed
.System Details
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: