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

Failed to install latest version(1.1.0) on Flutter 3.27.1 #44

Open
kyle-seongwoo-jun opened this issue Jan 5, 2025 · 1 comment
Open

Comments

@kyle-seongwoo-jun
Copy link

$ flutter --version
Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 17025dd882 (3 weeks ago) • 2024-12-17 03:23:09 +0900
Engine • revision cb4b5fff73
Tools • Dart 3.6.0 • DevTools 2.40.2

$ dart pub global activate snapp_cli 1.1.0
Package snapp_cli is currently active at version 0.4.5.
Note: http is pinned to version 1.2.2 by flutter_tools from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because every version of snapp_cli depends on flutter_tools from sdk which depends on http 1.2.2, every version of
  snapp_cli requires http 1.2.2.
So, because pub global activate depends on snapp_cli 1.1.0 which depends on http ^0.13.6, version solving failed.

it fails to install latest version, so it installs old version.

$ dart pub global activate snapp_cli
Package snapp_cli is currently active at version 0.4.5.
Downloading packages... . (1.1s)
The package snapp_cli is already activated at newest available version.
To recompile executables, first run `dart pub global deactivate snapp_cli`.
Installed executable snapp_cli.
Activated snapp_cli 0.4.5.
@payam-zahedi
Copy link
Member

@kyle-seongwoo-jun

Looks like there’s a dependency versioning conflict, and we might be running into some breaking changes with the current Flutter version.

I’ll take a closer look and try to resolve it as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants