Skip to content

Commit

Permalink
Merge pull request chocolatey#2638 from AdmiringWorm/2634-update-depr…
Browse files Browse the repository at this point in the history
…ecation-notice-for-push-command-to-mention-that-the-default-source-will-be-removed-in-v2.0.0

(chocolatey#2634) Update push command default source deprecation
  • Loading branch information
gep13 authored Mar 9, 2022
2 parents ab0b945 + b89b9bd commit d31826d
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 d31826d

Please sign in to comment.