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

GH1073: dotnet CLI preview 2 doesn't have the quiet option anymore #1016

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

adamhathcock
Copy link
Contributor

Just noticed this.

@dnfclas
Copy link

dnfclas commented Jun 28, 2016

Hi @adamhathcock, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@adamhathcock
Copy link
Contributor Author

Looks like the builds are failing because your build script on the dotnet cli also uses the Quiet option.

@patriksvensson
Copy link
Member

@adamhathcock Great catching this!

The reason for the builds failing is that the tests for DotNetRestore has not been updated.
I'm not sure if we want to remove the property directly due to backwards compatibility. I think we would want to obsolete it with a warning for now and refer to using the Verbosity parameter and remove it in a couple releases.

@adamhathcock
Copy link
Contributor Author

I'll update

@adamhathcock adamhathcock force-pushed the remove_quiet_restore branch from 8418b20 to 6966152 Compare June 28, 2016 15:46
@adamhathcock
Copy link
Contributor Author

adamhathcock commented Jun 28, 2016

Now it's failing because of Warning As Error. Should I just remove the obsolete attribute?

@patriksvensson
Copy link
Member

@adamhathcock Yes. I think you can remove that attribute for now and just write to the log in the Tool (as a warning) that the flag has been removed from dotnet cli RTM and they should set verbosity instead.

@devlead
Copy link
Member

devlead commented Jun 28, 2016

Isn't this just that the tests should pragma ignore the obsolete attribute?

@patriksvensson
Copy link
Member

@devlead @adamhathcock Yes, that would be preferred.

@@ -38,7 +40,8 @@ public sealed class DotNetCoreRestoreSettings : DotNetCoreSettings

/// <summary>
/// Gets or sets a value indicating whether to display any output.
/// </summary>
/// </summary>
[Obsolete("dotnet cli does not have this option")]
Copy link
Member

Choose a reason for hiding this comment

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

Can we change this to .NET CLI does not support this option anymore. Please use DotNetCoreRestoreSettings.Verbosity instead.

@adamhathcock adamhathcock force-pushed the remove_quiet_restore branch 3 times, most recently from 9a83121 to 32c6e03 Compare June 29, 2016 06:10
@adamhathcock
Copy link
Contributor Author

finally did the pragmas in all the correct places.

{
builder.Append("--quiet");
settings.Verbosity = DotNetCoreRestoreVerbosity.Minimal;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should set this propery automatically. Better to write to the log as a warning giving the same hint as the obsolete message.

@gep13
Copy link
Member

gep13 commented Jul 11, 2016

@adamhathcock are you in a position to update with the comment that was made by @patriksvensson

@adamhathcock
Copy link
Contributor Author

I've been on vacation for the past two weeks. I can fix it on Wednesday

@adamhathcock
Copy link
Contributor Author

Looking at this now: I need a ICakeContext to do a log item but the infrastructure doesn't look well supported to that from a tool.

Making the tool take the context involves changing the tests a lot at least.

@adamhathcock adamhathcock force-pushed the remove_quiet_restore branch from 32c6e03 to 08f44d7 Compare July 14, 2016 08:07
@adamhathcock
Copy link
Contributor Author

Nevermind, I was being dumb. I think I've done everything requested....but now I just noticed I have to update the branch again

@adamhathcock adamhathcock force-pushed the remove_quiet_restore branch from 08f44d7 to 790a0f2 Compare July 14, 2016 08:10
@adamhathcock
Copy link
Contributor Author

@gep13 @patriksvensson finally updated and passed. Needs a small review again

@adamhathcock adamhathcock force-pushed the remove_quiet_restore branch from 790a0f2 to 545ce71 Compare July 18, 2016 12:50
@adamhathcock
Copy link
Contributor Author

@gep13 should I create an issue?

@gep13
Copy link
Member

gep13 commented Jul 18, 2016

@adamhathcock yes, if you could. Ideally, an issue is created, which gives us a place to discuss the problem/feature before any work is undertaken, and then we use the issue title to automatically generate the release notes for each release.

@adamhathcock
Copy link
Contributor Author

I thought it was a simple fix so I didn't...next time I promise I will :)

@gep13
Copy link
Member

gep13 commented Jul 18, 2016

@adamhathcock said...
I thought it was a simple fix so I didn't...next time I promise I will :)

Not a problem at all. For anything that is a documentation change, we typically don't want/need issues created, however, anything that is a code change, we would like to see an issue getting raised/discussed first, just in case something is already being worked on, or not required, etc. The last thing we want is people doing work that isn't required, and then having to close the PR. Obviously, that won't be the case here, but we like to follow the same process, so that there is some consistency, and people know what to expect.

@gep13
Copy link
Member

gep13 commented Jul 18, 2016

Relates to #1073

@gep13
Copy link
Member

gep13 commented Jul 18, 2016

LGTM! Thanks again for the contribution.

@gep13 gep13 merged commit 4901bd2 into cake-build:develop Jul 18, 2016
@gep13 gep13 changed the title dotnet CLI preview 2 doesn't have the quiet option anymore GH1073: dotnet CLI preview 2 doesn't have the quiet option anymore Jul 25, 2016
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.

5 participants