-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Get-Version.ps1 doesn't work in 2.2.13 #248
Comments
Thanks for the report. I haven't been testing the .ps1 scripts lately now that we have the |
The .ps1 script returns an object. With |
True. That does make the .ps1 a bit more convenient. However you can use nbgv for that purpose as well: nbgv get-version -f json | ConvertFrom-Json And voila! You have a powershell object again. :) |
Thank you, I didn't know |
The problem is that My version.json file: {
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "3.3.0",
"publicReleaseRefSpec": [
"^refs/heads/master$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true,
"includeCommitId": {
"when": "nonPublicReleaseOnly",
"where": "buildMetadata"
}
},
"setVersionVariables": true
}
} |
That's interesting. the ps1 script and the nbgv tool use exactly the same |
I tried removing the ".0" and get the same result. See the develop branch of https://github.com/heaths/psmsi repo. Happens on an internal repo as well. |
I guess the trailing Anyway, I can repro the .ps1 script failure, and also some inconsistencies in reporting versions by the various build/script/tools. So I'm working on that now. |
@heaths I tried commit a4b68111a on your repo (since your develop branch moved on since your report, evidently) and both nbgv and get-version.ps1 (after #258 and #256) report your version as 3.2.0.37, which given your version.json contains "3.2.0" appears to be the corrrect version.
Why do you say 3.2.37 is the correct value when your version.json calls for "3.2.0" as the first three integers? |
I did change it to "3.2", but, IIRC, may not have committed it, which would be required to make a difference in this case, right? |
Yes, in some cases at least, committing the version.json file is required. |
Get-Version.ps1
fails with:It seems 2.2.13 moved the lib directory (0da2e40), but the script wasn't updated.
The text was updated successfully, but these errors were encountered: