1dustindavis / gorilla

Munki-like Application Management for Windows
Apache License 2.0
186 stars 21 forks source link

nuget packages run choco list and could have issues with similar version/named packages #97

Open erikng opened 4 years ago

erikng commented 4 years ago

I have two packages located in

pkgs\adoptopenjdk\jre\8\

One called AdoptOpenJDK_8_JRE_32.8.242.08.nupkg and one called AdoptOpenJDK_8_JRE_64.8.242.08.nupkg

when running gorilla this is what happens, with only the 32-bit manifest scoped to a machine (previously had 64-bit downloaded so it's in the cache)

command: C:\ProgramData\chocolatey\bin\choco.exe [list --version=8.242.08 --id-only -r -s C:\ProgramData\gorilla\cache\pkgs\adoptopenjdk\jre\8]
Command Output:
--------------------
AdoptOpenJDK_8_JRE_32
AdoptOpenJDK_8_JRE_64
--------------------
Installing nupkg for Adopt Open JDK 8 (JRE) 32-Bit
command: C:\ProgramData\chocolatey\bin\choco.exe [install AdoptOpenJDK_8_JRE_64 -s C:\ProgramData\gorilla\cache\pkgs\adoptopenjdk\jre\8 --version=8.242.08 -f -y -r]

so it thinks it's installing 32-bit, but it looks like maybe it's returning the last input from choco list.

As a workaround, I've now made

pkgs\adoptopenjdk\jre\8\32
pkgs\adoptopenjdk\jre\8\64

and now I can have multiple apps working correctly.