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

GH787: Enhance NuGet dependency handling. #1848

Merged
merged 1 commit into from Sep 30, 2017

Conversation

bjorkstromm
Copy link
Member

@bjorkstromm
Copy link
Member Author

@Redth are you also interested in reviewing? This addresses the shared _installedPackages which you mentioned in here #1839 (comment)

Copy link
Member

@patriksvensson patriksvensson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor suggestion, but nothing that would make me request changes. 👍

{
if (type == PackageType.Addin)
{
return package.ShouldLoadDependencies(_config) ?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could change this to

if(package.ShouldLoadDependencies(_config))
{
    return DependencyBehavior.Lowest;
}

since the default behavior is to ignore dependencies by exiting the scope. Just a personal preference of course. Do as you wish 😄

@Redth
Copy link
Contributor

Redth commented Sep 29, 2017

LGTM!

- Fixes cake-build#787
- Don't share project. Only share Gather Cache.
- Use DependencyBehavior.Ignore by default. Only set Lowest if load dependencies is set. This way we wont install unneccessary packages and cache gathering is faster.
Copy link
Member

@devlead devlead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 I've rebased and will merge as soon as CI finishes.

@devlead devlead merged commit c6cfe2f into cake-build:develop Sep 30, 2017
@devlead
Copy link
Member

devlead commented Sep 30, 2017

@mholo65 your changes have been merged, thanks for your contribution 👍

@bjorkstromm bjorkstromm deleted the feature/GH-787 branch September 30, 2017 19:50
@LaoR-UA
Copy link

LaoR-UA commented Oct 12, 2017

And how to use that feature? I still have ICSharpCode.SharpZipLib, Version=0.86.0.518 not resolved.

@patriksvensson
Copy link
Member

@LaoR-UA I belive you can read about how to use dependency loading here. Documentation hasn't been updated yet afaik.

@devlead
Copy link
Member

devlead commented Oct 12, 2017

The nuget optin configuration is documented here:
https://cakebuild.net/docs/fundamentals/default-configuration-values

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

Successfully merging this pull request may close these issues.

None yet

6 participants