Skip to content

Invalid target throws silent error #53

@mattboardman

Description

@mattboardman

Changing a target name but not updating dependencies to use the new name throws a silent error.

Example

// Package A depends on "//packages/FOO"
ts_library(
    ...
    deps = [
        "//packages/FOO" # the full name of this target is //packages/FOO:FOO
    ]
)

// Package FOO
// Change FOO:FOO to FOO:BAR in BUILD file
ts_library(
    name = "BAR" # used to be FOO
    ...
)

In the above example Package A is now depending on an invalid target after updating the name. This currently throws a silent error and the impacted files output will be blank.

Expected behavior is to throw an error so the user can be aware they have made an invalid change to the dependency graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions