-
Notifications
You must be signed in to change notification settings - Fork 29.7k
reimplement Cache.engineRevision using engine-dart-sdk.stamp #158081
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
Closed
andrewkolos
wants to merge
8
commits into
flutter:master
from
andrewkolos:experiment-with-using-engine-stamp-instead-of-engine-version
Closed
reimplement Cache.engineRevision using engine-dart-sdk.stamp #158081
andrewkolos
wants to merge
8
commits into
flutter:master
from
andrewkolos:experiment-with-using-engine-stamp-instead-of-engine-version
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9876e08 to
1184ccd
Compare
9 tasks
auto-submit bot
pushed a commit
that referenced
this pull request
Nov 5, 2024
…tructor (#158201) While doing some hacking on `Cache` in #158081, I noticed that [`Cache.test`](https://github.com/flutter/flutter/blob/de9318275391a6d2f10ae33c576f4113b25fd156/packages/flutter_tools/lib/src/cache.dart#L139) allows the caller to tell Cache to use some given directory as the flutter root (instead of depending on the static global [`Cache.flutterRoot`](https://github.com/flutter/flutter/blob/4f3976a4f2b722d26c3353158dcd26590859dde0/packages/flutter_tools/lib/src/cache.dart#L206)). This has a default value, `/cache`. However, `/cache` is an unintuitive name for the root directory of a Flutter installation. This led to confusion when updating some tests. I wanted to create `/bin/cache/engine-dart-sdk.stamp` for tests, but in reality I needed to create `/cache/bin/cache/engine-dart-sdk.stamp`. This PR changes this default to the current directory of the file system (which I'm guessing is `/` for all intents and purposes). <details> <summary> Pre-launch checklist </summary> </details>
b469fca to
71db5d4
Compare
067e754 to
6f739e4
Compare
23756a1 to
a84be69
Compare
…-of-engine-version
…-of-engine-version
andrewkolos
commented
Dec 18, 2024
| expect(visitor.containsNewDepfile, false); | ||
| })); | ||
|
|
||
| test('Non-local engine builds use the engine.version file as an Artifact dependency', () => testbed.run(() { |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a testing a caching optimization for builds. This can be restored later.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Experiment towards reducing dependence on internal/engine.version
Pre-launch checklist
///).