dart-lang / chocolatey-packages Goto Github PK
View Code? Open in Web Editor NEWThis project forked from daftspaniel/chocolatey-packages
Chocolatey packages of the Dart SDK and Dartium
This project forked from daftspaniel/chocolatey-packages
Chocolatey packages of the Dart SDK and Dartium
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
Pub are no longer using the Roaming
directory when handling cache and installation of programs. Instead, it have been using Local
for some time:
dart-lang/pub#2297
dart-lang/pub#3831
The consequence of this is that installing Dart though Chocolatey does set the wrong path right now and users are therefore needed to manually fixing the PATH after installing a program like e.g. webdev
through pub.
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'.
ARM is becoming a thing on Windows, but it doesn't look like our Windows installation instructions support it through their default path.
I believe we are blocked on chocolatey/choco#1803 to fix this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.