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
Support for package resolving from different origins #4118
Comments
The package identity seen from the point of dart is only the package name. The question is I guess when a package A depends on another hosted package B, should B by default be from We have previously discussed allowing "mirroring urls" (such that fetching packages from hostA instead of hostB. Another solution would be to have a way of saying "from the same host"...
We have |
In e.g. Maven-land, it doesn't matter at all, from which repository an artifact is downloaded from, as long as the coordinates (GAV, groupId, artifactId, version) match. But still, you can run into a similar problem -- if a A discussion about this topic is here. The problems pointed out about a single So to sum up, IMHO it would be desirable to
such that package compatibility does not depend on the repository hostname anymore.
|
Related to: #2226 |
Related to #2993 |
I would like to be able to allow getting the same package from different origins. But the "hosted" URL of a package dependency appears to be part of the "package identity". Here it is explained that this is not supported atm:
IMHO it would be desirable to separate origin from identity. Imagine publishing packages with interdependencies for two years to your private registry, and then, for some reason, the host name/domain name changes. All these packages would become unusable, AFAIU. Or if you want to make them available to a customer -- you currently cannot provide the same packages through a different host.
As a package consumer, I would like to specify, or at least be able to override, where dependencies are fetched from.
FWIW, this is also how some other dependency managers work, e.g. maven, ivy, gradle, etc.
The text was updated successfully, but these errors were encountered: