conan: conan install -u not updating indirect aliases

  • Conan Version: 1.7.4

Background:

  • There exists a library libA/1.latest@demo/test which depends on libB/1.latest@demo/test
  • I am building a package which depends on libA
  • The libraries use self.requires("...") for specifying dependency

Scenario:

  • I build my package
  • Now libB and libA both aliases are updated to newer packages
  • I do a conan install .. -u, it fetches new libA, but uses older libB alias

I suppose this is because I do not specify libB directly as dependency.
Am I missing something? Or is this a bug?

To help us debug your issue please explain:

  • I’ve read the CONTRIBUTING guide.
  • I’ve specified the Conan version, operating system version and any tool that can be relevant.
  • I’ve explained the steps to reproduce the error or the motivation/use case of the question/suggestion.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (11 by maintainers)

Commits related to this issue

Most upvoted comments

In the created test, alias is being updated locally (if I’m not wrong).
Whereas in my case, the alias was updated in the server (artifactory) only.
The local cache was pointing to older alias.