Skip to content

IPM Update Resource Conflict #1128

@isc-jlechtne

Description

@isc-jlechtne

Describe the bug

This is similar in concept to the issue #1119 except with resources instead of dependency versions. This comes up in a case where a resource is moved from one module to another.

ERROR! Resource 'MyClass.CLS' is explicitly part of module 'module-b', and cannot also be in module 'module-c'

To Reproduce

Using the same module setup as in #1119, but adding a resource MyClass.CLS to the scenario:

  1. Have modules A, B, & C. Module A depends on B which in turn depends on C
  2. Pre update setup:
  • Module A (2.0.0)
  • Module B, has resource MyClass.CLS
  • Module C
  1. Post update versions
  • Module A (2.1.0+snapshot)
  • Module B
  • Module C, has resource MyClass.CLS
  1. Run zpm "install <Module A> 2.0.0"
  2. Run zpm "update <Module A> 2.1.0+snapshot" (this should error)

Expected behavior

Expected behavior is for Module A and all of its dependencies to successfully update as MyClass.CLS is only a part of module-c in the post-update environment (no longer with module-b).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions