Skip to content

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

@erikng

Description

@erikng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions