I'm trying to install my PowerShell module via scoop but I can't get it to work properly.
https://github.com/krokofant/lovely-powershell
This is the config and the psmodule name matches with the module name.
{
"version": "1.0",
"url": "https://github.com/krokofant/lovely-powershell/archive/master.zip",
"psmodule": {
"name": "LovelyPowershell"
}
}
When installed it is extracted into directory scoop/modules which is in the PowerShell module path.
This is the file tree:
└───LovelyPowershell
│ install.json
│ manifest.json
│
└───lovely-powershell-master
.gitignore
Installer.bat
Installer.ps1
lovely-powershell.json
LovelyPowershell.psd1
LovelyPowershell.psm1
README.md
Now, I'm not able to import the the module (Import-Module "LovelyPowershell") but if I rename the lovely-powershell-master folder to the version 1.0 then the module is able to load.
I've tried to make the foldername be 1.0 via "extract_dir": "1.0" but the installer doesnt like that att all:
Installing 'lovely-powershell' (1.0) [64bit]
Loading master.zip from cache
WARN Warning: No hash in manifest. SHA256 for 'master.zip' is:
1e90a2d1e1ded901a10605395c2fd2554911463554f28564a554ced81228b9f4
Extracting master.zip ... DEBUG
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Monday, November 5, 2018 20:43:52
Source : C:\Users\***\scoop\apps\lovely-powershell\1.0\_tmp\1.0\
Dest : C:\Users\***\scoop\apps\lovely-powershell\1.0\
Files : *.*
Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE /R:1000000 /W:30
------------------------------------------------------------------------------
2018/11/05 20:43:52 ERROR 2 (0x00000002) Accessing Source Directory C:\Users\***\scoop\apps\lovely-powershell\1.0\_tmp\1.0\
The system cannot find the file specified.
ERROR Could not find '1.0'! (error 16)
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/lukesampson/scoop/issues/new?title=lovely-powershell%401.0%3a+extract_dir+error
True
Solved it by specifying the extract_dir as lovely-powershell-master.
Most helpful comment
Solved it by specifying the extract_dir as
lovely-powershell-master.