Skip to content

pub outdated fails when overridden package has no hosted version #3502

@FaFre

Description

@FaFre

I encounter the problem with pub 2.17.6 that pubspec_overrides.yaml is not taken into account for local (non-published) packages.

pubspec.yaml:

dependencies:
  local_package: any

pubspec_overrides.yaml:

dependency_overrides:
  local_package:
    path: ../../utils/local_package

Output of dart pub outdated:
Package not available (could not find package local_package at https://pub.dartlang.org).

On the other hand dart pub upgrade is working as expected and upgrades other dependencies accordingly. It also prints the warning that overrides are used:
Warning: pubspec.yaml has overrides from pubspec_overrides.yaml

Metadata

Metadata

Assignees

No one assigned

    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