Code Monkey home page Code Monkey logo

chocolatey-packages's Introduction

chocolatey-packages

chocolatey-packages's People

Contributors

athomas avatar daftspaniel avatar dantup avatar julemand101 avatar nfrancois avatar whesse avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chocolatey-packages's Issues

Uninstall fails with: The term 'Get-BinRoot' is not recognized as the name of a cmdlet, function, script file, or operable program.

The dart-sdk/chocolateyUninstall.ps1 script are making use of the Get-BinRoot command from Chocolatey but this command have been marked as deprecated for a long period:
https://docs.chocolatey.org/en-us/community-repository/moderation/package-validator/rules/cpmr0035

With Chocolatey v2.0, the command got finally removed which means when trying to uninstall dart-sdk we gets the following error:

> choco uninstall dart-sdk
Chocolatey v2.1.0
Uninstalling the following packages:
dart-sdk

dart-sdk v3.0.6
The package dart-sdk wants to run 'chocolateyUninstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): Y

ERROR: The term 'Get-BinRoot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
dart-sdk uninstall not successful.
Error while running 'C:\ProgramData\chocolatey\lib\dart-sdk\chocolateyUninstall.ps1'.
 See log for details.
 Unsuccessful operation for dart-sdk.
  Rollback to previous version (package files only)?([Y]es/[N]o):

As explained in the note of deprecation, this should be fixed by replacing the usage of Get-BinRoot with Get-ToolsLocation.

For anybody wonder why this issue was not being caught by Chocolatey, it is because with Chocolatey v2.0 they did not do a rerun of their package verification. So that means it is possible to have "broken" packages in their database since they worked before v2.0 got released.

Update 27-07-2023: I can see with recent released Dart versions, it still fails and Chocolatey allows it even when running with version newer than Chocolatey v2.0. Reason being that it is, apparently, allowed to fail the uninstall test step. See the following from the verification of Dart 3.0.7:

Uninstall failed (allowed). Note that the process may have hung, indicating a not completely silent uninstall. This is usually seen when the last entry in the log is calling the uninstall. This can also happen when a window pops up and needs to be closed to continue.

https://gist.github.com/choco-bot/00777625c887451be5fac094df98f2a8

Unable to find a version of 'sass' that is compatible

sass 1.51.0 is currently unsupported, by both dev and live versions.

- dart-sdk (exited 1) - dart-sdk not upgraded. An error occurred during installation:
Updating 'dart-sdk 2.16.2' to 'dart-sdk 2.17.0' failed. Unable to find a version of 'sass' that is compatible with 'dart-sdk 2.17.0'.

dart-sdk not upgraded. An error occurred during installation:
Updating 'dart-sdk 2.16.2' to 'dart-sdk 2.17.0' failed. Unable to find a version of 'sass' that is compatible with 'dart-sdk 2.17.0'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.