-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove .packages
from the Dart SDK repo
#48275
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
Comments
Towards #48275 Change-Id: Ie4fe50d0d5afb04d4d3e7dde55c441e952218cc4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/231184 Auto-Submit: Nate Bosch <[email protected]> Reviewed-by: Nicholas Shahan <[email protected]> Commit-Queue: Nicholas Shahan <[email protected]>
Towards #48275 Change-Id: Idfe1de48b7f292b6c89e5b904f74c37232380c6b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/231065 Auto-Submit: Nate Bosch <[email protected]> Reviewed-by: Kevin Moore <[email protected]> Commit-Queue: Kevin Moore <[email protected]>
.packages
from this repo.packages
from the Dart SDK repo
@natebosch any chance we could assign this issue to you to get the rest removed the SDK repo? |
Sure, I am planning to keep pushing on this as I have time. |
I just grepped through this repo for "dotPackages", and found references in:
|
Yeah there are still a bunch. Any help cleaning up whatever you find is great.
|
There are a few shared tests that use
|
@sigmundch there are a bunch of search hits on |
@johnniwinther there are a bunch of search hits on |
@sortie I see a bunch of search hits on |
I think we should be able to get rid of the web uses of |
Embed in the modules.yaml any extra paths needed for package dependencies instead. This is one step to help towards #48275 Change-Id: I22ef02b2b2327a0c798f2fea73d59c758a8bb0bb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240651 Reviewed-by: Joshua Litt <[email protected]> Commit-Queue: Sigmund Cherem <[email protected]>
@mit-mit OK, handled tools/bots in: https://dart-review.googlesource.com/c/sdk/+/240842 |
@mit-mit Have we deprecated the feature yet? I'd like to keep testing of the feature as long as we support it. |
Bug: #48275 Change-Id: Ief3ff323726bdbb1870e989deb5372d88c3f4f3a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240843 Auto-Submit: Jonas Termansen <[email protected]> Reviewed-by: Alexander Thomas <[email protected]> Commit-Queue: Alexander Thomas <[email protected]>
@johnniwinther sorry missed your question. Yes, the |
I'm making some progress in https://dart-review.googlesource.com/c/sdk/+/243625 on removing the generation of the @athomas @sigmundch does this somehow ring a bell to you? |
@mit-mit Probably something related to the path mangling around https://github.com/dart-lang/sdk/blob/main/pkg/test_runner/lib/src/test_suite.dart#L928 |
@mit-mit Funny you ask today, just yesterday I came across the same error. FYI @sortie also has a step to remove the use of .packages on the bots (see https://dart-review.googlesource.com/c/sdk/+/240842). That prompted me to make a similar change to yours to unblock him (https://dart-review.googlesource.com/c/sdk/+/243643), but also came across the errors on the DDC bots. I haven't yet investigated, but it's possible that the errors are not DDC specific, but more of an infra issue with the test runner or the http server it uses to launch browser tests. I'll try to check later today if I get a chance, but otherwise I'll look tomorrow. |
Turns out the DDC bot failures were due to an issue in the test runner. The test runner was generating an invalid html to bootstraps the ddc code after the change because it used the path of the package configuration file in its logic. I'm attempting a new run with a fix in https://dart-review.googlesource.com/c/sdk/+/243643 |
(and forgot to say, this turned out to be exactly what @athomas suggested initially. At first I didn't put together how that logic connected with DDC, but I landed in that same place after looking at the generated JavaScript) |
.dart_tool/package_config.json is already present in each fileset. Bug: #48275 Change-Id: Ib75fd91060f0b9eaeb1446cf65cb8678b2ddc63c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240842 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Jonas Termansen <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
.packages has now been removed from the bots, thanks everyone for helping that along :) |
https://dart-review.googlesource.com/c/sdk/+/243625 has been created to stop generating the |
@natebosch are you aware of any other work for the present issue after /243625 lands? |
If /243625 doesn't cause any issues I think that covers the vast majority, though there may be a bit more cleanup to do. I found a few references - https://dart-review.googlesource.com/c/sdk/+/244046 I'm a little surprised that these references don't cause any issues when you stop creating the |
Contributes to #48275 Change-Id: I3acb90b91b9b206b69ca0ae311aa43f5954c29a6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243625 Reviewed-by: Nate Bosch <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]> Commit-Queue: Michael Thomsen <[email protected]>
/243625 and /244046 have both landed 🚀 , so closing this issue |
Towards #48275 [email protected] Change-Id: I38cc986937543c5e4d1f2a2cd4c7804d180a2741 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244304 Commit-Queue: Nate Bosch <[email protected]> Reviewed-by: Michael Thomsen <[email protected]> Commit-Queue: Michael Thomsen <[email protected]> Auto-Submit: Nate Bosch <[email protected]>
I dropped a bunch of places reading this file in https://dart-review.googlesource.com/c/sdk/+/211503, but there are still some places that depend on it.
The text was updated successfully, but these errors were encountered: