Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require version in tools installed by pip #1242

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make version to VM-Install-with-Pip mandatory
Update tools installed with pip to include the version in the install script, required by VM-Install-with-PIP.
sara-rn committed Jan 22, 2025
commit 7ddd292db34bc2c5d274888bc27a201386946f4b
2 changes: 1 addition & 1 deletion packages/autoit-ripper.vm/autoit-ripper.vm.nuspec
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>autoit-ripper.vm</id>
<version>0.0.0.20240607</version>
<version>1.1.2</version>
<authors>Michał Praszmo</authors>
<description>Extracts compiled AutoIt scripts from PE executables.</description>
<dependencies>
3 changes: 2 additions & 1 deletion packages/autoit-ripper.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -3,5 +3,6 @@ Import-Module vm.common -Force -DisableNameChecking

$toolName = 'autoit-ripper'
$category = 'Packers'
$version = '==1.1.2'

VM-Install-With-Pip -toolName $toolName -category $category
VM-Install-With-Pip -toolName $toolName -category $category -version $version
2 changes: 1 addition & 1 deletion packages/common.vm/common.vm.nuspec
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>common.vm</id>
<version>0.0.0.20250117</version>
<version>0.0.0.20250122</version>
<description>Common libraries for VM-packages</description>
<authors>Mandiant</authors>
</metadata>
4 changes: 2 additions & 2 deletions packages/common.vm/tools/vm.common/vm.common.psm1
Original file line number Diff line number Diff line change
@@ -1771,8 +1771,8 @@ function VM-Install-With-Pip {
[string] $toolName, # Example: magika
[Parameter(Mandatory=$true)]
[string] $category,
[Parameter(Mandatory=$false)]
[string] $version = "", # Version using pip format, example: "==0.5.0"
[Parameter(Mandatory=$true)]
[string] $version, # Version using pip format, example: "==0.5.0"
[Parameter(Mandatory=$false)]
[string] $arguments = "--help"
)
2 changes: 1 addition & 1 deletion packages/ipython.vm/ipython.vm.nuspec
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>ipython.vm</id>
<version>8.27.0.20241001</version>
<version>8.27.0.20250122</version>
<authors>Fernando Perez</authors>
<description>A powerful interactive Python shell</description>
<dependencies>
3 changes: 2 additions & 1 deletion packages/ipython.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -3,5 +3,6 @@ Import-Module vm.common -Force -DisableNameChecking

$toolName = 'ipython'
$category = 'Productivity Tools'
$version = '==8.27.0'

VM-Install-With-Pip -toolName $toolName -category $category -arguments ""
VM-Install-With-Pip -toolName $toolName -category $category -arguments "" -version $version