-
Couldn't load subscription status.
- Fork 931
Open
Labels
Description
(To vote for this issue, please add a 👍 emoji to the issue description)
Checklist
- I confirm there are no unresolved issues reported on the Chocolatey Status page.
- 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
Installed Packages
chocolatey 2.4.2Output Log
https://gist.github.com/pauby/6cef12ef8affd470e570541d71c951f7Additional Context
No response