Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Conan License detection issue

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 8 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      it_9582
      last edited by

      Hi there,

      after evaluating a Conan Feed in ProGet it saw a confusing thing in the detection.
      First of all I configured the License Check in System as follows:

      • General -> Undetectable rule: Warn
      • Compliant -> "Empty"

      I created a really simple Conan Recipe which only defines some basic parameters (no files added):

      class BasicConanfile(ConanFile):
          name = "test"
          version = "1.0"
          description = "A test recipe"
          license = "Apache-2.0"
      

      After creating this and upload it to the Conan-Feed, I get the following correct information from Proget (Package Overview):

      ⛔ Package is Noncompliant
      This package analysis resulted in a Noncompliant result because of an Unacceptable License (Apache-2.0).
      

      Now I added Apache-2.0 to the Compliant Licenses and get the following information from Proget (Package Overview):

      ⚠ Warning: Use with Caution
      No license detected
      

      The Metadata for this Package shows me the following

      License: 	None, Known type (Apache-2.0)
      

      so I added the Apache-2.0 License-File to my sources of the Conan-Recipe and reuploaded it but the message from Proget is the same:
      (Package Overview):

      ⚠ Warning: Use with Caution
      No license detected
      

      But the Metadata for this Package now shows me the following

      License: 	SPDX Expression (Apache-2.0), Known type (Apache-2.0)
      

      Could you check this?

      Best regards
      Florian

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @it_9582
        last edited by

        Hi @it_9582 ,

        This is a known issue / UI quirk with Conan packages, and hopefully should only impact that one page in the UI.

        To be honest I don't quite get the issue, but it has something to do with the fact that a Conan package is actually "set of packages that share a name and version". Each package in the set can define its own license file.

        The particular page was never really designed for "package sets" so the display is a little weird. It's a nontrivial effort to fix and would obviously impact all other package types, so it's not a priority at the moment.

        We would love to redo the UI at some point, s I think it'd mkae sense to do then.

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation