Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Discontinue/deprecate/archive this package #30

Closed
8 tasks done
kevmoo opened this issue Feb 10, 2020 · 25 comments
Closed
8 tasks done

Discontinue/deprecate/archive this package #30

kevmoo opened this issue Feb 10, 2020 · 25 comments

Comments

@kevmoo
Copy link
Contributor

kevmoo commented Feb 10, 2020

Functionality the Dart team cares about seems to have been rolled into https://pub.dev/packages/package_config

14 packages used by Dart team: some published, some internal, etc
17 total users on pub: https://pub.dev/packages?q=dependency%3Apackage_resolver

CC @jakemac53 @lrhn

@jakemac53
Copy link
Contributor

jakemac53 commented Feb 10, 2020

Nothing scary looking internally - almost all third_party deps (same ones as are on pub already)

@lrhn
Copy link
Contributor

lrhn commented Feb 11, 2020

Be aware that the currently published version of package_config is not the one to use. We have modified the API since then, so the version to actually use will probably be 3.0.0. (Unless we need to change more things).

The current version is at the tip of the master branch (dart-lang/package_config@96ea916) and is numbered 3.0.0-dev. It has not been published yet (because publishing 2.0.0 was a mistake, so let's not do that again immediately).

@jakemac53
Copy link
Contributor

Oh ok, can we also look at dart-lang/package_config#59 for 3.x @lrhn .

Fixing that also requires breaking changes.

@lrhn
Copy link
Contributor

lrhn commented Feb 18, 2020

@jakemac53 Already fixed. The version currently used by the SDK has a package_config_types.dart library which does not depend on dart:io. The package_config.dart library exports that and the dart:io dependent load/save functions.

@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 3, 2020

So the only Dart code using this is the pub client – and only a dev dependency

Grepping the SDK source

.dart_tool/package_config.json:481:      "name": "package_resolver",
.dart_tool/package_config.json:482:      "rootUri": "../third_party/pkg_tested/package_resolver",
.packages:77:package_resolver:third_party/pkg_tested/package_resolver/lib
DEPS:116:  "package_resolver_tag": "1.0.10",
DEPS:344:  Var("dart_root") + "/third_party/pkg_tested/package_resolver":
DEPS:345:      Var("dart_git") + "package_resolver.git"
DEPS:346:      + "@" + Var("package_resolver_tag"),
pkg/front_end/lib/src/fasta/source/source_library_builder.dart:479:    'package_resolver',
pkg/frontend_server/lib/frontend_server.dart:28:import 'package:package_resolver/package_resolver.dart';
pkg/frontend_server/lib/src/javascript_bundle.dart:13:import 'package:package_resolver/package_resolver.dart';
pkg/frontend_server/pubspec.yaml:16:  package_resolver: ^1.0.0
pkg/frontend_server/test/src/javascript_bundle_test.dart:13:import 'package:package_resolver/package_resolver.dart';
pkg/test_runner/lib/src/testing_servers.dart:9:import 'package:package_resolver/package_resolver.dart';
pkg/test_runner/pubspec.yaml:14:  package_resolver:
pkg/test_runner/pubspec.yaml:15:    path: ../../third_party/pkg_tested/package_resolver
runtime/observatory/.packages:24:package_resolver:../../third_party/pkg_tested/package_resolver/lib
tools/patches/flutter-engine/0299903f3e78ab6eb1d7d5ed1a70a039b3646913.patch:10:   'dart_package_resolver_tag': '1.0.10',
tools/patches/flutter-engine/6e2b3f0326bc15ad938319cbbb151f183d064609.patch:11:   'dart_package_resolver_tag': '1.0.10',

@jakemac53
Copy link
Contributor

https://dart-review.googlesource.com/c/sdk/+/138322 for the frontend_server portion

@jakemac53
Copy link
Contributor

jakemac53 commented Mar 4, 2020

Looks like the test_runner still supports a packageRoot argument - trying to see if it is actually in use though.

Trying out removing support here https://dart-review.googlesource.com/c/sdk/+/138324

dart-bot pushed a commit to dart-lang/sdk that referenced this issue Mar 4, 2020
We want to deprecate package_resolver and it isn't migrating to the latest package_config format.

Bug: dart-archive/package_resolver#30
Change-Id: I657ff16dfbf9fa75493d0975b5efcc7f4162431c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138322
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
dart-bot pushed a commit to dart-lang/sdk that referenced this issue Mar 4, 2020
…_config from package_resolver

Not sure what might be relying on this - going to check what the bots think about it :D

Bug: dart-archive/package_resolver#30
Change-Id: I283d60d749a3db8a4e02dfdb1889ce56c8630620
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138324
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 4, 2020

Awesome work, @jakemac53

.dart_tool/package_config.json:481:      "name": "package_resolver",
.dart_tool/package_config.json:482:      "rootUri": "../third_party/pkg_tested/package_resolver",
.packages:77:package_resolver:third_party/pkg_tested/package_resolver/lib
DEPS:116:  "package_resolver_tag": "1.0.10",
DEPS:344:  Var("dart_root") + "/third_party/pkg_tested/package_resolver":
DEPS:345:      Var("dart_git") + "package_resolver.git"
DEPS:346:      + "@" + Var("package_resolver_tag"),
pkg/front_end/lib/src/fasta/source/source_library_builder.dart:481:    'package_resolver',
runtime/observatory/.packages:24:package_resolver:../../third_party/pkg_tested/package_resolver/lib

Just need to clean up observatory deps and we can remove it entirely from the SDK?

@jakemac53
Copy link
Contributor

Yep I was just starting to look at that

@jakemac53
Copy link
Contributor

@kevmoo do you know about the fasta optOutPackages list that shows up there? can I safely remove it from that?

@jakemac53
Copy link
Contributor

jakemac53 commented Mar 4, 2020

https://dart-review.googlesource.com/c/sdk/+/138385 I went ahead and removed it from that list for now Abandoned as there are still third_party deps which vscode doesn't show for some reason when i search.

@jakemac53
Copy link
Contributor

jakemac53 commented Mar 4, 2020

Looks like we are blocked on pub and dart_style removing their deps on this package, and then rolling in some new versions of a bunch of other deps:

  • source_map_stack_trace
  • test
  • test_core
  • shelf_packages_handler

@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 4, 2020

Thanks for tracking this, @jakemac53 !

dart-bot pushed a commit to dart-lang/sdk that referenced this issue Mar 4, 2020
Bug: dart-archive/package_resolver#30
Change-Id: I42c10dabfb14f082b2facc492dd90c1ecdd1901a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138386
Auto-Submit: Jake Macdonald <jakemac@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
@jakemac53
Copy link
Contributor

@kevmoo have you already filed any issues for pub/dart_style that you can link here or do we need to create those?

@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 4, 2020 via email

@jakemac53
Copy link
Contributor

dart_style was a red herring just a transitive dep that shows up in the pubsepc.lock file

So it is really just pub.

dart-bot pushed a commit to dart-lang/sdk that referenced this issue Mar 4, 2020
…atest

Bug: dart-archive/package_resolver#30
Change-Id: I4722630ec1e9e5cab3e6bda38b71e2f22ea9e203
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138400
Commit-Queue: Jake Macdonald <jakemac@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
@jakemac53
Copy link
Contributor

@kevmoo build/webdev are now migrated off completely

dart-bot pushed a commit to dart-lang/sdk that referenced this issue Mar 26, 2020
Related to dart-archive/package_resolver#30

Change-Id: Ia97424c4a4d8e6721272e65e1ccd1c40fbcdd3c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141200
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 26, 2020

pkg:reflectable is the last hold-out google/reflectable.dart#205

@mit-mit – do we want to move this to dart-archive org? It has the potential to break folks trying to build old SDKS.

I guess once 2.8 ships, it's less of an issue.

@mit-mit
Copy link

mit-mit commented Mar 27, 2020

@mit-mit – do we want to move this to dart-archive org? It has the potential to break folks trying to build old SDKS.

Sorry, how does moving the repo, and marking the package as deprecated on pub.dev, break anyone?

@eernstg
Copy link

eernstg commented Mar 27, 2020

Reflectable has been updated such that there is no dependency on package_resolver. However, pub publish currently crashes (cf. dart-lang/pub#2410), so it cannot be published immediately.

@eernstg
Copy link

eernstg commented Mar 27, 2020

Reflectable 2.2.4 is has now been published.

@jakemac53
Copy link
Contributor

Sorry, how does moving the repo, and marking the package as deprecated on pub.dev, break anyone?

I think because old checkouts of the SDK still have a dependency on it, so gclient sync would probably fail? I am actually not sure though because it pulls from our mirror of the repo not the actual github repo, and I don't have any idea how long that would stay up after this repo is moved.

@mit-mit
Copy link

mit-mit commented Mar 27, 2020

It's my understanding that github does redirects, e.g. https://github.com/dart-lang/rpc/ redirects to https://github.com/dart-archive/rpc, so that should work?

@jakemac53
Copy link
Contributor

It's my understanding that github does redirects, e.g. https://github.com/dart-lang/rpc/ redirects to https://github.com/dart-archive/rpc, so that should work?

We don't pull from github though, I don't know how our mirrors work or if they will be impacted. cc @sortie I think would know better

@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 27, 2020

this is all about the internal clone for the SDK

I guess we can do the archive dance and see if anything breaks. Will do it now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants