-
Notifications
You must be signed in to change notification settings - Fork 240
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
refactor: reference version file instead of fvmrc #671
Conversation
@mrgnhnt96 is attempting to deploy a commit to the FlutterTools Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@mrgnhnt96 It seems you are on 🔥! Removing the versioning won't be possible, as this is a critical piece that people depend on and indicates the code's version. However, I do agree with the use case. What do you think of the idea of doing a Thanks for the PRs! |
Do they still need to depend on it if Perhaps we approach this differently:
Then its an optional entry and wouldn't break peoples current workflow.
This could work, but I don't think that |
We could have another convention like .fvmrc_local. There are a lot of use cases currently dependent on fvmrc, including integration with third-party services. Flutter version is the reason .fvmrc exists, as it becomes the source of truth. If the Flutter version is unnecessary, isn't it better to add .fvmrc to gitignore? I might be missing something here. Because there are files that will change if a dev changes the sdk like the pubspeck.lock might change for example. So the case is no 100% clear |
After thinking about this some more, I think that my approach to this might have been wrong. Ima close this PR for now, if in the future, I find a better argument that supports this use case, then I'll re-open it! Thanks for the quick responses here! |
When working in teams, it is ideal to define the flutter versions that we are currently using and commit them to version control. But the working local version should not be checked into version control.
The problem
Updating the
.fvmrc
file with the current working local version of flutter causes the file to contain modifications and could potentially be committed and pushed.The Solution
Instead of modifying the
.fvmrc
file, we could have a separate file, which is not version controlled, that contains the current working version.There is already a file that exists within the project,
.fvm/version
, that could be used for this functionality.Changes
This PR introduces the change to remove the
flutter
/flutterSdkVersion
fromconfig_model.dart
effectively removing it from the.fvmrc
and.fvm/fvm_config.json
files.By removing
flutterSdkVersion
from the.fvmrc
file, the version will be retrieved from.fvm/version
instead.