-
Notifications
You must be signed in to change notification settings - Fork 32
Commit pubspec.lock for mcp_server_dart #74
Description
The mcp_server_dart/pubspec.lock is currently gitignored, but for an application (as opposed to a library), Dart best practice is to commit the lock file.
From the Dart docs:
If your package is an application, check your lock file into source control. That way, everyone working on your application uses the exact same versions of all of its dependencies.
Without a committed lock file, builds aren't reproducible - different users running dart pub get at different times may get different dependency versions, leading to subtle bugs or inconsistencies.
As a side note: I'm packaging the MCP server for Nix and the tooling requires a lock file to pin dependencies. Currently I have to generate and maintain my own copy, which will drift from upstream over time.