Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Inconsistent output of conan create lock #16255

Open
rconde01 opened this issue May 14, 2024 · 1 comment
Open

[bug] Inconsistent output of conan create lock #16255

rconde01 opened this issue May 14, 2024 · 1 comment

Comments

@rconde01
Copy link

Describe the bug

conan_override_null.zip
In creating a lockfile with from a recipe with an override, I'm seeing sometimes the output is:

    "overrides": {
        "sqlite3/3.44.2": [
            "sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6"
        ],
        "sqlite3/3.45.0": [
            "sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6",
            null
        ]
    },

and sometimes the output is:

    "overrides": {
        "sqlite3/3.44.2": [
            "sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6"
        ],
        "sqlite3/3.45.0": [
            null,
            "sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6"
        ]
    },

I've also seen where it gets to:

        "sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6": [
            null,
            "sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6"
        ]

but i didn't see that in this reproduction.

How to reproduce it

  1. Extra the zip
  2. Run test.py (it will automatically create a virtual environment and install conan)
  3. Look at the output test_deps.lock
  4. It will randomly switch between the 2 configurations
@rconde01
Copy link
Author

BTW I'm considering post processing the file for consistency - but i'm not sure if these configurations have a certain semantic difference - I didn't find any documentation on the lock file itself.

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

No branches or pull requests

1 participant