-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Mirror the dash-analytics package so it can be added to DEPS #51425
Comments
@whesse, please reassign if needed. |
[Edit: This is not actually difficult, I just was uncertain if there were many packages in the new repo that would also get added.] |
Thank you for the cc @bwilkerson... let me know if there is anything I can do to help |
Note that the generate_package_config.dart script will add all packages in the tools repo to the SDK's .dart_tool/package_config.json file, once it is added to DEPS. Right now, there is only the single package dash_analytics in the repo, so that is what we want. |
I have added a mirror of dart-lang/tools to the dart GoB host, and it can now be added to DEPS. I am not clear on how this new package fits within the restrictions outlined in our sdk DEPS policy - the "raising-the-quality-of-dart-packages" document, which is linked to from our instructions about setting up a mirror. Should it be added to the package owners tracking sheet (internal) as a non-published package? Semantically, it seems to be the same as a package added to the sdk repo in the pkg/ directory. Is it maintained in a separate repo so that it can be used by the Flutter framework without publishing it? |
Thanks for setting everything up! Yes we have decided to create this separate repo so that we can use the analytics package within any Flutter and Dart related tooling. If we decide to publish it will likely be unlisted. @devoncarew anything else I'm missing? |
@eliasyishak If there's nothing else that needs to be done first (and I don't think there is), do you want to update the DEPS file to pull in the analytics package, or would you like me to do so? |
It can work best if the DEPS file starts pulling it in, and then that change to DEPS rolls to flutter engine DEPS, before adding actual dependencies to the package in the SDK build. That way, the tip-of-tree builders already have the new package rolled in to them before it is needed. |
Good to know, thanks! Sounds like we definitely want the CL to only add the package to the DEPS file, which was what I was trying to suggest anyway. We could then start working on a CL to use the package as long as we hold off landing the latter CL until after the roll into the flutter engine DEPS. |
@bwilkerson do you mind adding it to the DEPS and tagging me in the PR? I'm not sure how to update that file would like to learn how to do so. I couldn't find anything in the Wiki on updating that file at first glance EDIT: Ah found the documentation within the DEPS file itself |
I have uploaded a CL (https://dart-review.googlesource.com/c/sdk/+/283920), but it doesn't currently work because @whesse Should it exist, or do we just need to wait a bit? |
Your repository is named |
@whesse - good question; adding a dep for this package is expected, so I think this falls within our policy. Agree that dep'ing it in first, and letting that work through the downstream systems like the engine, before adding code references to the package makes sense. |
That helps, but I still can't get it to download it to the right place. It appears to be assuming that if it's in the I'm obviously missing something and should let someone more familiar with the DEPS file pull this in. |
No worries; @bwilkerson and @whesse - I sent you this for review: https://dart-review.git.corp.google.com/c/sdk/+/283921. |
Bug: #51425 Change-Id: Ief12c163b19b6a36121b6863b7c35ba06bc0aff3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/283921 Commit-Queue: Devon Carew <devoncarew@google.com> Reviewed-by: William Hesse <whesse@google.com>
The analyzer team will be using the https://github.com/dart-lang/tools/tree/main/pkgs/dash_analytics package to wire up analytics for the server.
This has to be mirrored on Gerrit so before we can add it to the DEPS file.
The text was updated successfully, but these errors were encountered: