-
Notifications
You must be signed in to change notification settings - Fork 654
Fix description of assembly-informational-format #2026
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
Conversation
Thanks for your contributions, @mgnslndh. Would it be possible to add a test for this? |
What kind of test are you looking for? Also, the documentation for assembly-file-versioning-format links to the page listing variables but it seems it is not the same set of variables available when resolving configuration string interpolations (this is why I fixed the documentation in the first place). Maybe we should list the other set of variables on the configuration page? |
@mgnslndh, I was thinking of something like the following, which tests that all existing variables are documented: GitVersion/src/GitVersionCore.Tests/DocumentationTests.cs Lines 50 to 63 in fe17357
|
Nice, did not know you had those kind of tests. I'll take a stab at it. |
There are two tests for documentation and they are correct. What I found was that when resolving the value of a variable in the configuration it had a name that was not the same as explained in the documentation. Variables used by configuration seems to be from SemanticVersionFormatValues.cs but the variables described in documentation are from VersionVariables.cs. The former is used to feed values into the latter. It is only the Not sure how to proceed. Should we have a separate documenation page describing which variables can be resolved by configuration settings and make a test that checks that all variables in |
Hm, this is an unfortunate deviation that I think we should resolve. Optimally, Would you be up for submitting a PR tackling this, @mgnslndh? |
The thing is the dependency is the other way around. It looks like So basically the new This PR however, seems like it should be closed. If we rename the variable the documentation would be correct in its current state. Also, just for reference. It seems the property has always been named like this. See 684aa07#diff-2217934fd9282cd4fd7c5ba8e030b81eR111-R114 |
Yes.
That would be great!
Indeed. |
I suppose this can be closed now that #2051 is merged? |
Yes, fine by me! |
The documentation referred to 'InformationalVersion' but using this explicitly in the configuration caused an error:
SemanticVersionFormatValues
has property namedDefaultInformationalVersion
which works fine in the configuration.