Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Fix metadata (fix root test) #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andreas-hilti
Copy link
Contributor

Fix the metadata component by fixing the test for the root component.

Closes: #101

This is only an issue when used for conanfile.py (rather than conanfile.txt).

Signed-off-by: andreas hilti <[email protected]>
@andreas-hilti
Copy link
Contributor Author

For the conanfile.py from #101, it produces the following SBOM:

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.3",
  "serialNumber": "urn:uuid:92a2a7ad-2470-4d04-9e3c-def967bfc4e3",
  "version": 1,
  "metadata": {
    "component": {
      "bom-ref": "[email protected]",
      "type": "application",
      "name": "conan-test",
      "version": "1.0.0"
    }
  },
  "components": [
    {
      "bom-ref": "pkg:conan/[email protected]?repository_url=https://center.conan.io",
      "type": "library",
      "name": "fmt",
      "version": "8.0.0",
      "purl": "pkg:conan/[email protected]?repository_url=https://center.conan.io"
    }
  ],
  "dependencies": [
    {
      "ref": "pkg:conan/[email protected]?repository_url=https://center.conan.io",
      "dependsOn": []
    },
    {
      "ref": "[email protected]",
      "dependsOn": [
        "pkg:conan/[email protected]?repository_url=https://center.conan.io"
      ]
    }
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metadata not correct if used with conanfile.py
1 participant