chocolatey/boxstarter

Breaking changes from Chocolatey 1.0.0

Closed this issue ยท 6 comments

There are a few references to helper functions which have been removed in Chocolatey 1.0.0 chocolatey/choco#2469.

Do these now need to be removed (and replaced)?

Write-ChocolateySuccess 'MyPackage'

Write-ChocolateyFailure 'MyPackage' $($_.Exception.Message)

Write-ChocolateySuccess '$name'

Write-ChocolateyFailure '$name' `$(`$_.Exception.Message)

pauby commented

For backwards compatibility the Chocolatey Community will be adding those functions into an extension module (likely chocolatey-core.extension) in the short term. Longer term we will need to remove this functions from the Boxstarter code.

Thanks for picking that up @OraDotNetDev

gep13 commented

While updating this, it might be advisable to remove any usage of the now deprecated Chocolatey shims, or example cinst, clist, etc.

While updating this, it might be advisable to remove any usage of the now deprecated Chocolatey shims, or example cinst, clist, etc.

Not very familiar with Boxstarter, but it looks as though it has it's own cup, cinst, choco wrapper functions to override the deprecated Chocolatey shims.

Should calls to these Boxstarter functions now also be removed and replaced with calls to the native choco commands?

Hi @OraDotNetDev - thanks for bringing this up, we'll definitely need to do something about the Write-Chocolatey... functions being deprecated. (I'll take care of it asap, but won't be in the upcoming 'v3' release)

As for cinst / cup / ... there's really nothing to be done there - these shims are monkey patched by the wrapper functions you discovered.

pauby commented

A chocolatey compatibility extension has been created that might help with this.

I'm going to close this issue as it is going to be implicitly fixed with Boxstarter v3 / GH-479