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

Chocolatey complains about deprecated features #77

Open
urig opened this issue May 24, 2016 · 2 comments
Open

Chocolatey complains about deprecated features #77

urig opened this issue May 24, 2016 · 2 comments

Comments

@urig
Copy link
Contributor

urig commented May 24, 2016

When "Update GitVersion" is checked in the TeamCity build step configuration, I am seeing two warning in the build log that seem to be coming from Chocolatey.

One warning says:

[14:23:19][Step 1/1] DEPRECATION NOTICE - choco update is deprecated and will be removed or
[14:23:19][Step 1/1] replaced in version 1.0.0 with something that performs the functions
[14:23:19][Step 1/1] of updating package indexes. Please use choco upgrade instead.

Another says:

[14:23:42][Step 1/1] WARNING: Write-ChocolateySuccess is deprecated. If you are the maintainer,
[14:23:42][Step 1/1] please remove it from your package file.

I have Chocolatey v0.9.9.12 (currently the latest) installed.

Here are these messages in their context:

[14:23:15][Step 1/1] Checking for updated version of GitVersion
[14:23:19][Step 1/1]
[14:23:19][Step 1/1] DEPRECATION NOTICE - choco update is deprecated and will be removed or
[14:23:19][Step 1/1] replaced in version 1.0.0 with something that performs the functions
[14:23:19][Step 1/1] of updating package indexes. Please use choco upgrade instead.
[14:23:19][Step 1/1] Upgrading the following packages:
[14:23:19][Step 1/1] gitversion.portable
[14:23:19][Step 1/1] By upgrading you accept licenses for the packages.
[14:23:23][Step 1/1] You have GitVersion.Portable v3.4.1 installed. Version 3.5.4 is available based on your source(s).
[14:23:31][Step 1/1]
[14:23:31][Step 1/1] GitVersion.Portable v3.5.4
[14:23:42][Step 1/1] Added C:\ProgramData\chocolatey\bin\gfv.exe shim pointed to '..\lib\gitversion.portable\tools\gitversion.exe'.
[14:23:42][Step 1/1] WARNING: Write-ChocolateySuccess is deprecated. If you are the maintainer,
[14:23:42][Step 1/1] please remove it from your package file.
[14:23:44][Step 1/1] ShimGen has successfully created a shim for GitVersion.exe
[14:23:44][Step 1/1] The upgrade of gitversion.portable was successful.
[14:23:44][Step 1/1]
[14:23:44][Step 1/1] Chocolatey upgraded 1/1 package(s). 0 package(s) failed.
[14:23:44][Step 1/1] See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

@urig
Copy link
Contributor Author

urig commented May 24, 2016

On second thought the second warning message is likely coming from the GitVersion Chocolatey package itself. Is this correct?

@gep13
Copy link
Contributor

gep13 commented May 25, 2016

@urig this is likely coming from here:

https://github.com/JetBrains/meta-runner-power-pack/blob/master/gitversion/MR_GitVersion3.xml#L159

The choco update command has been replaced by the choco upgrade command.

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

No branches or pull requests

2 participants