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.

Different generator files when installing exported package vs. calling conan install

See original GitHub issue

I have written an example conanfile, to reproduce this issue:

from conans import ConanFile

class ConanFileInst(ConanFile):
    name = 'test-package'
    version = '1.0.0'
    generators = 'txt'

    def package_info(self):
        self.deps_cpp_info.defines = ['A=B', 'C=D']

Now you run following commands:

conan install

conan export demo/demo
conan install test-package/1.0.0@demo/demo --build

Now we have generated conanbuildinfo.txt files both in current directory and “.conan\data\test-package\1.0.0\demo\demo\build\[hash]”, but they are different. In current directory conanbuildinfo.txt contains [defines] section with “A=B” and “C=D”, but conanbuildinfo.txt from .conan repository have this section empty.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
omicronnscommented, Feb 6, 2017

Hi,

Thank you for your answers. I have no more questions concerning this thread.

Thanks again.

0reactions
memshardedcommented, Feb 6, 2017

Hi @omicronns (Konrad),

Any follow up question to this thread, or something else you want to discuss? Could this issue be closed? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package development flow — conan 1.36.0 documentation
This method outputs the source files into the source-folder. ... Already installed! hello/1.1@user/channel (test package): Generator cmake created ...
Read more >
Building with Conan — OpenPASS Documentation - Eclipse
To be able to work with Conan it´s necessary to add additional packages. ... What it basically does is calling export and install...
Read more >
Using Conan for Qt6 - Qt Wiki
Conan depends on Python installed on your system. ... Qt Conan packages require the settings.yml file to be 1.39 or newer.
Read more >
CONAN CHEAT SHEET - JFrog
Also implicitly does install and export steps. $ conan create ... Copy packaged files out of Conan cache ... Consume packages in build...
Read more >
Conan packages in the Package Registry - GitLab Docs
Conan packages are often installed as dependencies by using the conanfile.txt file ... Or, in the root of your project, create a file...
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