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

A pin is not created for existing installations (prior to new choco) #60

Closed
ferventcoder opened this issue Feb 4, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@ferventcoder
Copy link
Member

This looks due in part to the folder not package information folder not being created.

C:\codelocal\chocolatey2\code_drop\nuget [master +0 ~1 -0]> choco pin add -n ruby -version 1.9.3.54500 -d
Chocolatey v0.9.9.0
Chocolatey is running on Windows v 6.1.7601.65536
Command line: "C:\ProgramData\Chocolatey\choco.exe" pin add -n ruby -version 1.9.3.54500 -d
Received arguments: pin add -n ruby -version 1.9.3.54500 -d
Configuration: CommandName='pin'|ContainsLegacyPackageInstalls='True'|CommandExecutionTimeoutSeconds='2700'|Sources='C:\ProgramData\Chocolatey\lib'|Debug='True'|Verbose='False'|Force='False'|Noop='False'|HelpRequested='False'|RegularOuptut='True'|PromptForConfirmation='False'|AcceptLicense='False'|AllowUnofficialBuild='False'|Input='add'|Version='1.9.3.54500'|AllVersions='True'|SkipPackageInstallProvider='False'|Prerelease='True'|ForceX86='False'|OverrideArguments='False'|NotSilent='False'|IgnoreDependencies='False'|AllowMultipleVersions='False'|ForceDependencies='False'|Information.PlatformType='Windows'|Information.PlatformVersion='6.1.7601.65536'|Information.ChocolateyVersion='0.9.9.0'|Information.ChocolateyProductVersion='0.9.9-27319d4e'|Information.FullName='choco, Version=0.9.9.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|Information.Is64Bit='True'|Information.IsInteractive='True'|Features.AutoUninstaller='False'|Features.CheckSumFiles='True'|ListCommand.LocalOnly='True'|ListCommand.IncludeRegistryPrograms='False'|NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|FeatureCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|PinCommand.Name='ruby'|PinCommand.Command='add'|
_ Chocolatey:ChocolateyPinCommand - Normal Run Mode _
Chocolatey had an error occur:
System.ApplicationException: Unable to find package named 'ruby' (version '1.9.3.54500') to pin. Please check to ensure it is installed.
   at chocolatey.infrastructure.app.commands.ChocolateyPinCommand.set_pin(IPackageManager packageManager, ChocolateyConfiguration config)
   at chocolatey.infrastructure.app.runners.GenericRunner.run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
   at chocolatey.infrastructure.app.runners.ConsoleApplication.run(String[] args, ChocolateyConfiguration config, Container container)
   at chocolatey.console.Program.Main(String[] args)
Exiting with 1
@ferventcoder
Copy link
Member Author

It's not exactly what is happening, some things find the pin just fine.

@ferventcoder ferventcoder modified the milestones: 0.9.9, 0.9.10 Feb 6, 2015
@ferventcoder ferventcoder modified the milestones: 0.9.10, 0.9.10.x May 20, 2015
@ferventcoder ferventcoder modified the milestones: 0.9.9.7, 0.9.10.x Jun 5, 2015
@ferventcoder
Copy link
Member Author

It fails because it doesn't actually find the package itself, so it can't create the package information folder.

ferventcoder added a commit that referenced this issue Jun 5, 2015
If the package folder has a version on it, it is considered a side by
side path, so the package manager may not be able to resolve the path
to the locally installed nupkg. When it isn't found by regular means,
attempt to find it by looking for it in side by side paths. If it is
not found there either, go ahead and error.
ferventcoder added a commit that referenced this issue Jun 5, 2015
* stable:
  (GH-296) Enhance installer template
  (GH-296) Add readme template
  (GH-305) get full path to cache folder
  (posh) add aliases for filetype/url64bit
  (GH-60) Fix: Pin errors on pkg folders w/versions
  (log) add debug logging around list
  (GH-302) Fix: choco pin list fails
  (log) use warn level messages as result summaries
  (log) add debug log search filter for nuget list
  (GH-317) Throw on non-existing features
  (GH-319) always log debug output to log file

Conflicts:
	src/chocolatey/chocolatey.csproj
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