question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Recent conan release breaks gsl-lite package from conan-center

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Ubuntu 18.04 (WSL1 on Windows 10 1809)
  • Compiler+version: gcc 8
  • Conan version: 1.34.0
  • Python version: 3.6.9

Steps to reproduce (Include if Applicable)

In an empty folder, create a conanfile.txt with the following

[requires]
gsl-lite/0.34.0

Then run conan install. This works fine on Conan 1.30.2. On Conan 1.34.0 it fails with:

ERROR: .../.conan/data/gsl-lite/0.34.0/_/_/export/conanfile.py: Recipe 'description' must be a string.

Sure enough, the description in the package is a tuple of strings:

    description = ("A single-file header-only version of ISO C++ ",
                   "Guideline Support Library (GSL) for C++98, C++11 and later")

This seems to be due to this PR: https://github.com/conan-io/conan/pull/8143

The restriction seems well justified, but this breaks packages on conan-center, which I depend on and have been using for a long time. Is there a way to either except tuple-of-string descriptions, or roll back the change until the packages on conan-center have a chance to update?

I also filed an issue with Conan Center to work around the issue on their end: https://github.com/conan-io/conan-center-index/issues/4726

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Feb 28, 2021

Hi @parkertomatoes

I have just tried and it is working now, the recipe description is a string now:

 description = "A single-file header-only version of ISO C++ " \
                  "Guideline Support Library (GSL) for C++98, C++11 and later"

are you sure you have updated to last changes from ConanCenter?

Btw, this doesn’t seem a bug in Conan, see (https://github.com/conan-io/conan/pull/8143#issuecomment-787524810), but basically, the description field is a string, as documented in https://docs.conan.io/en/latest/reference/conanfile/attributes.html#description. Any other type is a recipe bug, and can raise or produce any undefined behavior.

0reactions
uilianriescommented, Mar 4, 2021

@memsharded I can confirm, it’s a cache/outdated package problem, not a Conan bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[package] <gsl-lite>/<0.37.0>: pkg-config generator ... - GitHub
The description in the gsl-lite recipe is a tuple which seems to break the pkg-config generator when it attempts to parse it.
Read more >
gsl-lite C/C++ Package - JFrog ConanCenter - Conan.io
A single-file header-only version of ISO C++ Guideline Support Library (GSL) for C++98\, C++11 and later. GSL. MIT. License. 0.40.0. Version. 29,336.
Read more >
Why is conan broken so often on my system? - Reddit
Yeah, Conan seems to break every few months, and then it's time to update its package, read some new obscure error messages, then...
Read more >
Untitled
Bug net terraria ios, Welttour 2 kapitel 4 test, Przypisy w pracy dyplomowej ustawy, Cara format galaxy tab 3, Arthur and george tv,...
Read more >
wiki-pages-nodenames.txt
... Advanced Chemistry Abdication Awk AgoraNomic Anglican Communion Arne Kaijser Archipelago Ann Arbor Arthur Conan Doyle Author Andrey Markov Anders Jonas ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found