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

Migrating from UtilPack to NuGetUtils, take two #1677

Merged
merged 11 commits into from
May 20, 2019

Conversation

stazz
Copy link
Contributor

@stazz stazz commented May 12, 2019

This is re-implementation of #1634 (which later was processed as #1645 ), since that got a bit too convoluted with respect of other changes done to GitVersion repository while the pull request was in development and under review.

Resolves #1634 and #1645.

@stazz stazz mentioned this pull request May 12, 2019
Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

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

This was much easier to review now, thank you so much for redoing it all. I have a few mostly syntactic requests, otherwise this looks good. 😃 👍

src/GitVersionTask/GitVersionTaskBase.cs Outdated Show resolved Hide resolved
src/GitVersionTask/GenerateGitVersionInformation.cs Outdated Show resolved Hide resolved
src/GitVersionTask/GenerateGitVersionInformation.cs Outdated Show resolved Hide resolved
src/GitVersionTask/GenerateGitVersionInformation.cs Outdated Show resolved Hide resolved
src/GitVersionTask/GitVersionTaskBase.cs Outdated Show resolved Hide resolved
src/GitVersionTask/UpdateAssemblyInfo.cs Outdated Show resolved Hide resolved
src/GitVersionTask/UpdateAssemblyInfo.cs Outdated Show resolved Hide resolved
src/GitVersionTask/WriteVersionInfoToBuildLog.cs Outdated Show resolved Hide resolved
src/GitVersionTask/WriteVersionInfoToBuildLog.cs Outdated Show resolved Hide resolved
src/GitVersionTask/WriteVersionInfoToBuildLog.cs Outdated Show resolved Hide resolved
@stazz
Copy link
Contributor Author

stazz commented May 13, 2019

It seems we have a bit different coding styles! :) I love having each method parameter on its own line. In any case, I'll get on these as soon as I get time. These don't seem like a complex work, just a bit tedious.

The only thing I might be semi-disagreeing with is changing Boolean ValidateInput into void Validate() which throws, but that is a deeper philosophical discussion. And since this is your repository after all, let's go with the void Validate(). 👍

@stazz
Copy link
Contributor Author

stazz commented May 15, 2019

I've pushed commits which adher to the review discussion. I think the only non-clear things left are:

  • Is it ok to have Input-classes (InputBase, InputWithCommonAdditionalProperties, and InputValidationException) in the same file with GitVersionTaskCommonFunctionality (ex GitVersionTaskBase)?
  • I've just changed the name of GetWorkingDirectoryAndFileNameAndExtension to GetFileWriteInfo, I hope that's OK (didn't create any additional classes for this).

Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

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

I think this looks good now. Can you please have a look as well, @dazinator and @arturcic

Is it ok to have Input-classes (InputBase, InputWithCommonAdditionalProperties, and InputValidationException) in the same file with GitVersionTaskCommonFunctionality (ex GitVersionTaskBase)?

I prefer one class per file, but it's not a deal-breaker.

I've just changed the name of GetWorkingDirectoryAndFileNameAndExtension to GetFileWriteInfo, I hope that's OK (didn't create any additional classes for this).

Fine by me.

Copy link
Member

@arturcic arturcic left a comment

Choose a reason for hiding this comment

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

In the Infrastructure.props file please rename the properties that start with UtilPack with NuGetUtils to be consistent with the package name change

src/GitVersionTask/NugetAssets/build/Infrastructure.props Outdated Show resolved Hide resolved
@asbjornu asbjornu merged commit 4ae945a into GitTools:master May 20, 2019
@asbjornu
Copy link
Member

Thanks for your contributions and patiance, @stazz! 🙏

@stazz
Copy link
Contributor Author

stazz commented May 20, 2019

You're most welcome! Since dynamic assembly loading is extremely fragile business, let me know asap if you notice something funky going on. I did my best to do tests on this, but they were all manual, as I am not quite sure how to approach writing integration-level tests (which go on invoking dotnet build or dotnet msbuild on some project, etc) for this, so there might be still something I've missed. :)

@asbjornu
Copy link
Member

@arturcic, now that you've started drafting release 5.0.0, would you like to postpone this to 5.0.1?

@arturcic
Copy link
Member

Actually that was a test only, I'll remove the draft version, was checking the release notes generation and it seems it now works. I'll discard

@arturcic
Copy link
Member

There are a couple of issues I want to address before the 5.0.0 version, and I think this PR should be included in 5.0.0

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.

3 participants