Skip to content

Commit pubspec.lock for mcp_server_dart #74

@jeanlucthumm

Description

@jeanlucthumm

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.

Metadata

Metadata

Assignees

Labels

testingSomething to test

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions