Skip to content

pub get fails to "package doesn't exist" in Windows #2858

Description

@kinex

I have this git reference in my pubspec.yaml:

in_app_purchase:
  git:
    url: https://github.com/kinex/plugins
    ref: 0c9010bbc2a6537dc5089ce65c7c8ac092b62512
    path: packages/in_app_purchase

flutter pub get works without issue in Mac, but in Windows I get this error:

Package doesn't exist (the pubspec for in_app_purchase 0.3.5+1 from git has version 0.3.4+3).
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Package doesn't exist (the pubspec for in_app_purchase 0.3.5+1 from git has version 0.3.4+3).
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
.
.

If I comment out the "ref:" line, pub get works also in Windows. The referenced commit is in a branch (not master).

Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9b2d32b605 (9 days ago) • 2021-01-22 14:36:39 -0800
Engine • revision 2f0af37152
Tools • Dart 2.10.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions