-
Notifications
You must be signed in to change notification settings - Fork 145
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
feat: specify flutter version in shorebird.yaml #2018
Comments
Certainly fair. Another alternative would be for us to teach #1972 might be another approach to avoid needing to specify? But I agree, it would be nice to specify the flutter version in source control somehow, and we should just respect whatever way already exists to do that in the flutter community (e.g. fvm?). |
I obviously can't speak for everyone and perhaps my experience is not the standard, but in our case, I'd say explicitly specifying in a single file would actually be the optimal solution, so that we get predictable results regardless of who on the team builds the release/patch, and it's easy to maintain that way too. But yeah maybe I am missing a much better workflow with fvm or similar. btw I would be happy to have a go at adding this myself, just having a look through the |
If there is not a way to currently specify flutter version in source, that does seem reasonable that |
Its is meant to be used mainly on published packages as state in this comment, and it doesn't force you to pin a version, it allows a range, which I am not sure if can bring some confusion. Either way, I feel it would bring even more confusion if we added yet another version field to So I would suggest that instead of adding a new field to shorebird's config file, we could read the one on pubspec, respect the range (so if the field says |
See also shorebirdtech/install#33 |
I think we will solve this another way. Either by reading from .fvm or another environment file. |
Description
Currently it is only possible to specify a specific flutter version by passing an argument when calling the Shorebird CLI. This works fine, but for big projects, it would be cleaner if we could specify a version in
shorebird.yaml
, consistent with how we specify dart/flutter verisons inpubspec.yaml
etc.Requirements
shorebird.yaml
that allows specifying a flutter version--flutter-version
, I think?The text was updated successfully, but these errors were encountered: