Skip to content
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

Write .dart_tool/pub/workspace_ref.json #4240

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Apr 25, 2024

This file can be used for the fast path of ensureUpToDate to find the root pubspec.yaml without parsing the intermediate pubspec.yaml files.

Part of #4239
Related to dart-lang/sdk#55548

@kevmoo
Copy link
Member

kevmoo commented Apr 25, 2024

is pub a reserved package name? In general, .dart_tool/XYZ/ XYZ should be namespaced by a package name to minimize change of collisions

@sigurdm
Copy link
Contributor Author

sigurdm commented Apr 26, 2024

Yes it is reserved: https://github.com/dart-lang/pub-dev/blob/720c134eab618ed62f7a09bfe8eef1577d6a1a16/app/lib/package/overrides.dart#L29

@sigurdm
Copy link
Contributor Author

sigurdm commented Apr 26, 2024

Also pub already writes to this folder (snapshots for dart run).

@sigurdm sigurdm merged commit 0e7446a into dart-lang:master Apr 26, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants