Skip to content

Commit

Permalink
(chocolatey#2634) Update push command default source deprecation
Browse files Browse the repository at this point in the history
This commit updates the note about using a default source
being deprecated and removed in v1 to instead be removed
in v2.0.0.

Additionally, its own section called `DEPRECATION NOTICE`
was added to make it more visible that the functionality
will be going away.
  • Loading branch information
AdmiringWorm authored and gep13 committed Mar 9, 2022
1 parent ab0b945 commit b89b9bd
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2017 - 2021 Chocolatey Software, Inc
// Copyright © 2017 - 2021 Chocolatey Software, Inc
// Copyright © 2011 - 2017 RealDimensions Software, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -151,8 +151,7 @@ Chocolatey will attempt to push a compiled nupkg to a package feed.
Some may prefer to use `cpush` as a shortcut for `choco push`.
NOTE: 100% compatible with older chocolatey client (0.9.8.32 and below)
with options and switches. Default push location is deprecated and
will be removed by v1. In most cases you can still pass options and
with options and switches. In most cases you can still pass options and
switches with one dash (`-`). For more details, see
the command reference (`choco -?`).
Expand All @@ -162,6 +161,13 @@ the command reference (`choco -?`).
endpoints required for NuGet packages.
".format_with(ApplicationParameters.ChocolateyCommunityFeedPushSource));

"chocolatey".Log().Warn(ChocolateyLoggers.Important, "DEPRECATION NOTICE");
"chocolatey".Log().Warn(@"
Default push location is deprecated and will be removed by v2.0.0.
It is recommended to always specify the source you want to push to
using the `--source` argument.
");

"chocolatey".Log().Info(ChocolateyLoggers.Important, "Usage");
"chocolatey".Log().Info(@"
choco push [<path to nupkg>] [<options/switches>]
Expand Down

0 comments on commit b89b9bd

Please sign in to comment.