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

choco list / search / info - fails when local directory source #1325

Closed
ferventcoder opened this issue Jun 6, 2017 · 0 comments
Closed

choco list / search / info - fails when local directory source #1325

ferventcoder opened this issue Jun 6, 2017 · 0 comments
Assignees
Milestone

Comments

@ferventcoder
Copy link
Member

This would fail with the following error: System.UriFormatException: Invalid URI: The format of the URI could not be determined..

@ferventcoder ferventcoder added this to the 0.10.6.2 milestone Jun 6, 2017
@ferventcoder ferventcoder self-assigned this Jun 6, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.6.2, 0.10.7 Jun 6, 2017
ferventcoder added a commit that referenced this issue Jun 8, 2017
When looking at listing verbose information as you see with `choco
info`, if the directory was a local file directory, the command would
fail with the following error:
`System.UriFormatException: Invalid URI: The format of the URI could not
be determined.`

This is due to the way that choco loads up package results, attempting
to convert sources to Uris. Local file and relative directories don't
adjust to a URI very well and cause the above error. When that happens,
simply use the source as it is already set.
ferventcoder added a commit that referenced this issue Jun 8, 2017
* stable:
  (version) 0.10.7
  (doc) update CHANGELOG/nuspec
  (GH-1328) Serialize/deserialize package files warnings
  (maint) clean up install/uninstall template
  (GH-1330) Use $packageArgs in default uninstall script
  (GH-1323) File/File64 as params not aliases
  (GH-1324) requestedExecutionLevel = asInvoker
  (GH-1327) AutoUninstaller - split multiple file paths
  (maint) add parameter props to UseOriginalLocation
  (maint) formatting
  (GH-1323) rename file to downloadFilePath
  (GH-1325) List/Search - no fail on local directory
  (docs) add to PowerShell CONTRIBUTING
  (GH-1326) Always show heading
  (GH-976) Use Write-FunctionCallLogMessage
  (maint) formatting
  (GH-1322) Fix: search - exact ignores page/page-size
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

2 participants