Repository navigation
Releases
AutoIncrement Release
Lots of bugfixes still, but the major thing in this release is the -IncrementVersionNumber on Compress-Module
So you can now automatically increment your module version as you're compressing it, and it will even update your download/packageInfo URLs if need be (i.e. if you have the version number in the file name).
4.0.1.6 Bug Fix Release
Fix a few bugs (see commit log) related to the nugetification.
Add support for PSGet's module feed (but disdain to allow plain .psm1 modules yet)
Kicking The OneGet
This release finally finishes the switch to .nuspec and atom xml for packageInfo, including full nuget search, etc.
4.0.1.4 Bug Fix Release
- Fixes a bug when installing modules from GitHub zips
- Improves Set-ModuleInfo with -Confirm and -Force
- Causes Set-ModuleInfo to create manifests with "ModuleToProcess" instead of the breaking "RootModule"
NuGet Compatible Packages
With this release I finally gave up and implemented compatibility with nuget, even down to caving (against my better judgement) and using .nupkg files. I'm still extending it with the PackageInfoUri and DownloadUri so that I can have a system that is free of a central repository -- and Nuget repository support is not done yet.
As always, to install, if you have the "webclient" service (Microsoft's webDAV client) running, just execute:
\\PoshCode.org\DavWWWRoot\Modules\Install.ps1And if not (you'll get a command not found error above) download and execute the signed Install.ps1 file:
(New-Object System.Net.WebClient).DownloadFile("http://poshcode.org/i","$pwd\poshcode-install.ps1"); .\poshcode-install; rm .\poshcode-install.ps14.0.1 Beta - Core Beta Complete
This is the first version with a workaround for a PS3 bug in Import-LocalizedData so that PowerShell 3 can correctly parse dependencies!
It's also the first version with basic file-name guessing from the RESULTS so that tiny url's can work.
These core commands now work with PS2, PS3, and PS4:
# installs WASP + dependencies, recursively
# This command should first install PoshCode (if missing)
# Then it would install WASP, then it's dependency Reflection, and finally Autoload
\\PoshCode.org\Modules\Install http://j.mp/WASP1
Install-Module WASP # installs WASP + dependencies
Update-Module -ListAvailable
Find-Module -Name Reflection | Install-Module # Installs Reflection + dependencies (Autoload)Beta Release
Initial beta release.
Working copies of Find-Module, Install-Module, Update-Module and Compress-Module
v4.0.0.2-alpha
First Alpha Release
This is the first version containing the all-new Install-Module and Compress-Module functions.
It's starting at version 4.x because versions 1-3.x of the PoshCode module were previously released with just the "InvokeWeb" and "Script" parts of this module.
This release is alpha quality, and requires you to manually create a package.psd1 file for your existing modules before you can compress them into packages.
Please help test it:
# Install just the PoshCode module
# NOTE: you may need to open the \\PoshCode.org\Modules WebDAV share in Explorer
# to get past Window's slow WebDAV performance before you can execute the install script:
\\PoshCode.org\Modules\Install
# If you're on PS3 or higher, you could delete the module after that...
# and try reinstalling it this way:
Invoke-WebRequest http://PoshCode.org/Modules/Install.ps1 -OutFile Install-PoshCode.ps1
.\Install-PoshCode
Remove-Item .\Install-PoshCode.ps1
# Verify that it installed properly
Get-Module PoshCode -List | Tee -Var Module
if($Module[0].Name -ne "PoshCode") { throw "It's not installed at all?" }
# Make sure it has exposed all it's commands:
$Expected = 'Compress-Module','Get-ConfigData','Get-Module', 'Get-ModuleManifest',
'Get-PoshCode','Install-Module','Send-PoshCode','Set-ConfigData','Update-Module'
$CountAll = (Get-Command -Module PoshCode | Select -Expand Name).Count
$CountExpected = (gcm -Module PoshCode | Where {$Expected -contains $_.Name} ).Count
if($CountAll -ne $CountExpected) { throw "Mismatch with expected commands!" }
# (re)install the PoshCode module (if necessary) and the PSaint testing module
\\PoshCode.org\Modules\Install 'http://poshcode.org/Modules/PSAINT.psd1'
# Verify the install of the PSaint module ...
# Try installing a module with dependencies using the Install-Module command
Install-Module 'http://poshcode.org/Modules/Reflection.psd1'
# Try packaging a module (you need to have the module manifest and package.psd1)
# Try the Reflection module for now ...
Compress-Module Reflection
# Now copy "package.psd1" from Reflection to your module, and edit it to make sense ;-)
# I'm working on code to create the package.psd1 interactively
# And I'll also validate it (make sure your version matches, and that the URLs make sense)
# Test it any other way you like!
# Report your version info
$PSVersionTableSide note: the quotes around URLs in the script above aren't required, but GitHub does weird things to the ":" in the url if it's not in quotes, so I just quote them to be unambiguous. ;-)
Thanks for helping.
Please post any problems in the issues
Please do execute that last $PSVersionTable line and or paste some or all of your testing output to gists or jaykul.com and drop me @Jaykul a line on twitter or an email or an IM at HuddledMasses.org so I can know what OS/PowerShell version combos it's been tried on!
Joel "Jaykul" Bennett