-
Notifications
You must be signed in to change notification settings - Fork 68
[hooks_runner] Remove package_graph.json
fallback
#2266
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
Conversation
7393159
to
cce9322
Compare
cce9322
to
f14d30d
Compare
PR HealthAPI leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
|
@mosuem The breaking change check seems to fail on a dev path dependency.
|
That's WAI - published packages should not have path dependencies. If needed, use dependency overrides. |
Dev dependencies can be path dependencies, right? |
I think a user should be able to download a package and run |
I don't believe this is true. If you "download" a package via git, you'll have all the other packages. If you "download" a package with |
For example the API breakage check failing in this PR ;) Where we want to check if the current API is breaking compared to the old API. For this, we need to download the latest version of a package from pub, and compare it to the version in this PR. But if the one on pub is incomplete, this doesn't work anymore. I could imagine other scenarios where people use pub.dev to download older versions. I think a package should be self-contained that way. Hosting on GitHub is an implementation detail, which I think we should not rely on. |
Hm, I think instead you need a I really don't want to publish |
Hmm, I think if you publish a package, you should publish all it's dependencies. You can make them unlisted on pub if you want to. Or make them a git dependency or such - just don't hide it. @jonasfj any thoughts? |
Well, that would break your package when when published and used in another package! We should actually add this as a health check: |
That is indeed breaking, but should be covered by the |
Both Dart and Flutter using this are on a version of pub that emits the
package_graph.json
.