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

list/search - Listing local packages fails if no sources are enabled #661

Closed
tirolo opened this issue Mar 15, 2016 · 1 comment
Closed

Comments

@tirolo
Copy link
Contributor

tirolo commented Mar 15, 2016

Executing choco list -l should not get the: Unable to search for packages when there are no sources enabled for packages and none were passed as arguments. error message. The command should be able to execute without requiring any source to be active.

Reference: https://gitter.im/chocolatey/choco?at=56e8462c0055f8f35a836de8

@ferventcoder ferventcoder modified the milestones: 0.9.10, 0.9.10.x Mar 16, 2016
@ferventcoder ferventcoder modified the milestones: 0.10.4, 0.10.x Dec 14, 2016
ferventcoder added a commit to ferventcoder/puppet-chocolatey that referenced this issue Dec 14, 2016
Previously, when there were no sources enabled, Puppet would
attempt to loop over a non-existent set of packages pulled back
from listing a set of packages locally. Unfortunately this is due
to an issue in Chocolatey that requires at least one source to be
enabled to produce the local set of installed packages:
chocolatey/choco#661

Instead of allowing Puppet to fail on a nil:NilClass error, provide
a helpful and actionable message instead.
ferventcoder added a commit to ferventcoder/puppet-chocolatey that referenced this issue Dec 14, 2016
Previously, when there were no sources enabled, Puppet would
attempt to loop over a non-existent set of packages pulled back
from listing a set of packages locally. Unfortunately this is due
to an issue in Chocolatey that requires at least one source to be
enabled to produce the local set of installed packages:
chocolatey/choco#661

Instead of allowing Puppet to fail on a nil:NilClass error, provide
a helpful and actionable message instead.
@ferventcoder ferventcoder modified the milestones: 0.10.4, 0.10.5 Feb 27, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.5, 0.10.6, 0.10.7 Mar 30, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.7, 0.10.8 Jun 6, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.9, 0.10.10 Aug 27, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.10, 0.10.12 Mar 27, 2018
@ferventcoder ferventcoder modified the milestones: 0.10.12, 0.10.13 May 3, 2018
@ferventcoder ferventcoder changed the title Listing local packages should not require active sources list/search - Listing local packages fails if no sources are enabled Jan 17, 2019
@ferventcoder ferventcoder self-assigned this Jan 17, 2019
ferventcoder added a commit to ferventcoder/choco that referenced this issue Jan 17, 2019
When no sources are active and someone is searching a local source,
allow that to continue without throwing an error. This will allow the
sources to be configured to the local source a littler further in and
then return results instead of throwing an error.
@ferventcoder ferventcoder modified the milestones: 0.10.13, 0.10.12 Jan 17, 2019
ferventcoder added a commit that referenced this issue Jan 18, 2019
@ferventcoder
Copy link
Member

This has been fixed and will be available in 0.10.12.

ferventcoder added a commit that referenced this issue Jan 18, 2019
* stable:
  (GH-981) Add option to use Get-FileHash for versions v4.x and above
  (GH-661) allow local only without sources
galeksandrp pushed a commit to galeksandrp/choco that referenced this issue Feb 16, 2019
When no sources are active and someone is searching a local source,
allow that to continue without throwing an error. This will allow the
sources to be configured to the local source a littler further in and
then return results instead of throwing an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants