Skip to content

Editing a dependency's targets: in apm.yml does not update the lockfile target_subset #4066

Closed as not planned

Description

After changing a dependency's targets: in apm.yml (for example [claude] -> [claude, copilot]), apm install keeps the lockfile's target_subset at [claude], even with --refresh. Reproduced on main for a plain local package and for a native plugin. The likely owner is lock row reuse for unchanged dependencies. This blocks the remedy that #4010's warning points to. Found by the #4010 re-verify.

Activity

  1. added
    bug
    on Nov 20, 2026
  2. danielmeppiel commented on Nov 20, 2026

    @danielmeppiel
    CollaboratorAuthor

    Not reproducible: the original observation ran both installs in one process, so a per-process apm.yml cache served the old manifest. In separate CLI runs, the lockfile target_subset and the deployed files follow targets: edits, with or without --refresh (verified on main 67936cd, the #3290 head and the #4010 head).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions