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

Declaring dependency on packages from alternate sources #879

Open
jberezanski opened this issue Jul 27, 2016 · 14 comments
Open

Declaring dependency on packages from alternate sources #879

jberezanski opened this issue Jul 27, 2016 · 14 comments

Comments

@jberezanski
Copy link

I'd like to be able to specify in the nuspec a dependency on a package from one of the alternate sources, in particular WindowsFeatures or WebPI.

For example:

<dependency id="IIS-WebServer" source="WindowsFeatures" />
<dependency id="WDeploy36" source="WebPI" />
@ferventcoder
Copy link
Member

I'm surprised there isn't already an issue created for this?

@jberezanski
Copy link
Author

I did not find anything, not even in the old chocolatey repo.

@ferventcoder
Copy link
Member

This is one of those things where almost all of NuGet packaging will need to be integrated into Chocolatey's codebase. Since the concept of alternate sources is foreign to NuGet.Core at this time, I'm pushing this out to 1.x or 2.x

@ferventcoder
Copy link
Member

There has been a lot of discussion on this, that's why it is surprising.

@dragon788
Copy link
Contributor

This could be sweet. Current workaround is probably using a Boxstarter script or custom ps1 to do all the choco calls, but native would be awesome especially for installing VisualStudio and various Vsix plugins.

@ferventcoder
Copy link
Member

VSIX and VisualStudio is already supported as packages.

@jberezanski
Copy link
Author

If it were implemented, I would probably craft a new "Windows Update" source, which could eliminate the burden of creating KB packages.

@dragon788
Copy link
Contributor

dragon788 commented Dec 2, 2016 via email

geraldcombs added a commit to geraldcombs/asciidoctorj that referenced this issue Aug 14, 2019
Chocolatey offers a variety of JREs and JDKs but doesn't support alternate
dependencies[1]. Remove the jre8 dependency for now.

[1] chocolatey/choco#879
@jarl-haggerty
Copy link

Any update on this? I was trying to create a dependency on NetFx3 in windowsfeatures.

@ferventcoder
Copy link
Member

@jarl-haggerty not yet - this requires more invasive changes to the nuspec format. It has a milestone attached to it, and as you might see that is 2.x. We are still in the works for 1.x

@ferventcoder
Copy link
Member

You can simply create a package for now for netfx3. Also keep in mind to do what you would like, we would need to take into consideration that we'd need os grouped dependencies as the feature names can change in different OS versions (from Windows Features / DISM).

@lukasz-mitka
Copy link

As a user I find it ridiculous I have to go over Description to confirm the package doesn't have some non-automatic dependencies and then install them manually.
I understand there's a workaround but it creates unnecessary work and packages.

@gep13
Copy link
Member

gep13 commented Jan 31, 2022

@lukasz-mitka just to make sure that we are talking about the same thing here... can you provide an example of a package where this is currently the case?

Thanks

@lukasz-mitka
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants