chocolatey / chocolatey/choco

Source Priority Seems to be ignored when dependencies are present

Open
#1,190 4 comments 0 reactions 1 assignee Claimed by @ferventcoder View on GitHub
0 - Backlog Blocked - External Bug
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?
I have a "meta" package (myvm-development) that includes several other packages as dependencies. When I install this package https://gist.github.com/dcjulian29/a3ac471e51d1fa425dea3c2b62b0cb00, the executor package from the chocolatey source is installed. When I install it explicitly https://gist.github.com/dcjulian29/093d69c2ce3ef05df8afa02b8af336dc, it uses my source. My source has a priority of 1, and the chocolatey source has a priority of 2.

### What is Expected?
Given that my source has a lower priority, installing packages that exist on both sources should be installed from my source in both scenario.

### How Did You Get This To Happen? (Steps to Reproduce)
choco install myvm-development -y -dv
choco install executor -y -dv

### Output Log
With Dependencies:
https://gist.github.com/dcjulian29/a3ac471e51d1fa425dea3c2b62b0cb00

Without Dependencies:
https://gist.github.com/dcjulian29/093d69c2ce3ef05df8afa02b8af336dc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.