You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document how to use git submodules to pin Flutter dependency #3770
I think this ends up being more than just an sdk fix, since if I have two separate flutter projects, we need a clear story as how I configure Atom differently when working with them, or the flutter command line, etc. Certainly pub support may be part of this, but we also just need a recommended story for Flutter too since so many of our tools are tied into the flutter version.
This is not the same issue. This is the how-do-i-pin-the-version-of-flutter-my-app-depends-on question. :) i.e. so that all of my 10 developers can get the same version of flutter instead of each of them having different flutter sdk versions depending when they last ran flutter upgrade.
Ah, I see. This is basically about giving the flutter tool a way to read your pubspec.yaml and follow the same semantics as we want pub get to use to determine what version of a package to bring in given a particular environment line. Almost the opposite of #3696 in fact.
changed the title [-]What is the best way to depend on a specific version of flutter?[/-][+]Enable applications to specify the Flutter SDK version that they need[/+]on Jan 31, 2017
So instead of flutter doctor, run ./flutterw doctor, and you should have reliable builds, albeit slow in CI environments because flutter will have to redownload Dart et al every time.
changed the title [-]flutter tool should honor git submodule semantics when testing for "The Flutter directory is not a clone of the GitHub project"[/-][+]Document how to use git submodules to pin Flutter dependency[/+]on Jan 19, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
sethladd commentedon Jul 19, 2016
Would dart-lang/pub#1432 be sufficient?
eseidelGoogle commentedon Jul 19, 2016
I think this ends up being more than just an sdk fix, since if I have two separate flutter projects, we need a clear story as how I configure Atom differently when working with them, or the flutter command line, etc. Certainly pub support may be part of this, but we also just need a recommended story for Flutter too since so many of our tools are tied into the flutter version.
sethladd commentedon Jul 19, 2016
Yes, I'd love per-project SDK configurations in Atom. That would help a lot.
Hixie commentedon Jan 28, 2017
This seems to be a dupe of #3696, so I'm closing it as such. Please reopen if I misunderstood.
eseidelGoogle commentedon Jan 31, 2017
This is not the same issue. This is the how-do-i-pin-the-version-of-flutter-my-app-depends-on question. :) i.e. so that all of my 10 developers can get the same version of flutter instead of each of them having different flutter sdk versions depending when they last ran
flutter upgrade.Hixie commentedon Jan 31, 2017
Ah, I see. This is basically about giving the
fluttertool a way to read yourpubspec.yamland follow the same semantics as we wantpub getto use to determine what version of a package to bring in given a particularenvironmentline. Almost the opposite of #3696 in fact.[-]What is the best way to depend on a specific version of flutter?[/-][+]Enable applications to specify the Flutter SDK version that they need[/+]10 remaining items
anaisbetts commentedon Jan 18, 2018
Hey all, with the fix I just PRed, you should be able to now do:
Then check in a wrapper
flutterwfor your vendored Flutter into your project, a-lagradlew:So instead of
flutter doctor, run./flutterw doctor, and you should have reliable builds, albeit slow in CI environments because flutter will have to redownload Dart et al every time.Hixie commentedon Jan 18, 2018
@sethladd could you add something about this to the faq?
sethladd commentedon Jan 18, 2018
https://github.com/flutter/website/blob/master/faq.md will gladly accept PRs :)
In the meantime, we should reopen this or open a new issue for the FAQ entry so it doesn't get lost
[-]flutter tool should honor git submodule semantics when testing for "The Flutter directory is not a clone of the GitHub project"[/-][+]Document how to use git submodules to pin Flutter dependency[/+]zoechi commentedon Dec 3, 2018
Issue moved to flutter/website #1845 via ZenHub
github-actions commentedon Aug 17, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.