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

Add NBGV_GitEngine=Disabled option #586

Merged
merged 8 commits into from Apr 18, 2023
Merged

Add NBGV_GitEngine=Disabled option #586

merged 8 commits into from Apr 18, 2023

Conversation

m0sa
Copy link
Contributor

@m0sa m0sa commented Apr 12, 2021

This adds Disabled as an option to the NBGV_GitEngine setting, which turns off all git operations, but still emits expected / dummy AssemblyInfo properties.

Closes #568

@rcdailey
Copy link

I can't tell easily from the code, since I'm unfamiliar with the architecture. Will this also address usages of MyAssembly when it is disabled?

Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

This looks good. Not what I think I would have done but I really like where you took it. Let's run with it. I did a couple touch-ups and modified the test file slightly. I think we need to promote more tests to run in the no-git scenario than the two I did so far. Can you find the other tests that would pass or should pass, and add a couple new ones specifically for the no-git scenario?

src/NerdBank.GitVersioning.Tests/BuildIntegrationTests.cs Outdated Show resolved Hide resolved
@AArnott
Copy link
Collaborator

AArnott commented Apr 17, 2023

I've resolved conflicts locally and will push once I validate the result.

@AArnott AArnott marked this pull request as ready for review April 18, 2023 00:32
@AArnott AArnott changed the title NBGV_Disabled WIP Add NBGV_GitEngine=Disabled option Apr 18, 2023
@AArnott AArnott enabled auto-merge April 18, 2023 00:33
@AArnott AArnott added this to the v3.6 milestone Apr 18, 2023
@AArnott AArnott merged commit cdce577 into dotnet:main Apr 18, 2023
14 checks passed
@m0sa m0sa deleted the disabling branch April 18, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an MSBuild property for disabling any NBGV tasks
3 participants