You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently support PSDependOptions, which specifies global values that apply to all dependencies (unless overridden in individual dependencies).
It might be helpful to add a third layer between these (overrides global, overridden by individual dependencies) for per-dependencytype defaults
Thought someone had mentioned this in an issue, can't seem to find it.
Haven't thought through syntax yet, just getting the idea out there. Off the top of my head without considering existing design or repurcussions, maybe just add keys under PSDependOptions where the key is the dependency type name?
Yep! Basically... if you have a few different dependency types, and a parameter you want to globally set just for one dependency type, it would be nice to have a middle ground (as is, you can set on each definition or globally - globally will actually work IIRC, just spits out a warning, and if parameters ever share a name with different intent, could be bad).
Similar to your example, PSGalleryNuget has a Source - other dependency types also use Source, with what likely won't be shared across differing dependency types (assuming they aren't nuget based)
So right now, I could set the Source to some nuget URI... but what if I also have a few Package types in there, and also want those to have a re-usable (specific to the Package type) Source?
Plenty of ways to work around it for now, figured at some point it might come in handy though : ) Not on my radar for a while (or until I get bored!)
Activity
michaeltlombardi commentedon Sep 19, 2017
So, would an example of this be for repositories? The default for the
npmtype would be.... npm.... but I could override to my own artifactory?RamblingCookieMonster commentedon Sep 19, 2017
Yep! Basically... if you have a few different dependency types, and a parameter you want to globally set just for one dependency type, it would be nice to have a middle ground (as is, you can set on each definition or globally - globally will actually work IIRC, just spits out a warning, and if parameters ever share a name with different intent, could be bad).
Similar to your example, PSGalleryNuget has a
Source- other dependency types also useSource, with what likely won't be shared across differing dependency types (assuming they aren't nuget based)So right now, I could set the Source to some nuget URI... but what if I also have a few
Packagetypes in there, and also want those to have a re-usable (specific to thePackagetype)Source?Plenty of ways to work around it for now, figured at some point it might come in handy though : ) Not on my radar for a while (or until I get bored!)
michaeltlombardi commentedon Sep 19, 2017
I think dependency type defaults / overrides is a great idea.
github-actions commentedon May 18, 2026
This issue has had no activity for 60 days. It will be closed in 30 days unless there is new activity or a maintainer removes the stale label.
github-actions commentedon Jun 17, 2026
Closing due to inactivity. Please re-open if this is still relevant against the current version.
github-actions commentedon Aug 20, 2026
This issue has had no activity for 60 days. It will be closed in 30 days unless there is new activity or a maintainer removes the stale label.
github-actions commentedon Oct 20, 2026
This issue has had no activity for 60 days. It will be closed in 30 days unless there is new activity or a maintainer removes the stale label.