Skip to content

[bug] Change in YAML generated from trim_conandata() #20069

Description

@bradenmcd

Describe the bug

We maintain a fork of conan-center-index. Our CI to build packages from this fork includes a hook that calls trim_conandata(). At some point over the past year+, the YAML emitted from trim_conandata() seems to have changed.

We have an activemq-cpp/3.9.5 that was originally uploaded to our Artifactory instance December 10, 2025. Its conandata.yml looks like this:

sources:
  "3.9.5":
    url: "https://github.com/apache/activemq-cpp/archive/refs/tags/activemq-cpp-3.9.5.tar.gz"
    sha256: "3a56b526360155fd920f136b187ffb84942890b9b7e206976c81ef9f2ab2b11b"

A recent build introduced a new rrev due to conandata.yml that looks instead like this:

sources:
  3.9.5:
    sha256: 3a56b526360155fd920f136b187ffb84942890b9b7e206976c81ef9f2ab2b11b
    url: https://github.com/apache/activemq-cpp/archive/refs/tags/activemq-cpp-3.9.5.tar.gz

The newer one is missing quotes and the entries are ordered differently.

The newer one was built with Conan 2.28.0 and the older one would have been built with Conan 2.4.1.

How to reproduce it

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions