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

#49: Instead of 'latest' show the actual version being installed #55

Merged
merged 2 commits into from
Jun 21, 2019

Conversation

Badgerati
Copy link
Owner

Resolves #49

@Badgerati Badgerati added this to the v1.4.0 milestone Jun 19, 2019
@Badgerati Badgerati self-assigned this Jun 19, 2019
@jayvdb
Copy link
Contributor

jayvdb commented Jun 20, 2019

diff is too noisy - I cant see what is changing.

Maybe do an entire codebase reformat commit first? Invoke-DbatoolsFormatter with dataplat/dbatools#5790 makes it quite easy to do.

# if the version is latest, attempt to get the real current version
if (Test-VersionPassedIsLatest -Version $Version) {
$Version = Get-ChocolateyLatestVersion -Package $Package -Source $Source
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is the main change; to detect if the version is using "latest", and get the current version from chocolatey

@Badgerati
Copy link
Owner Author

I'll raise a separate issue about styling and syntax later; just to get it out of the way.

The main change is the above commit comment, as well as the Get-ChocolateyLatestVersion function just above those lines.

@Badgerati Badgerati merged commit 997ca35 into develop Jun 21, 2019
@Badgerati Badgerati deleted the Issue-49 branch June 21, 2019 16:01
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.

Show version installed instead of "latest"
2 participants