Skip to content

Self-references in generated .packages files point to the pubcache. #1294

Closed
@pq

Description

@pq

Self-references are not properly encoded. They point to the pubcache rather than the local source.

For example, given a package foo, the .packages reference will look something like this:

foo:file:///Users/somebody/.pub-cache/hosted/pub.dartlang.org/foo-0.0.1/lib/

whereas it should look more like:

foo:file:///Users/somebody/src/dart/pkg/foo/lib/

(Note that pub symlinks do this special-casing. Which is to say we just need to get the .packages file URIs to agree with pub's symlink prior art.)

In the current state URI resolution for self-references in analyzer all fail.

Metadata

Metadata

Assignees

Labels

type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions