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.

[feature] Compose applied configuration in one profile

See original GitHub issue

From this thread: https://github.com/conan-io/tribe/pull/34#discussion_r862742661

The idea is to provide a way to “freeze” the applied profiles (host + build) by combining all the inputs provided, so with just one file you could reproduce a build. Some ideas:

With a different command: conan profile compose --profile:h=foo -s:h arch=x86 -c myconf=1 --profile_out:h=profile_host_windows_x86.txt

Directly with arguments: conan lock create . --profile:h=foo -s:h arch=x86 -c myconf=1 --profile_out:h=profile_host_windows_x86.txt

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ytimenkovcommented, May 4, 2022

Yes, an extra file produced on a side would help with the use-case in the tribe comment.

Having profile_out in same commands as lockfile-out is less typing and maybe somewhat convenient (at least conan create / conan install --build).

But otherwise a separate command is also fine. Then the workflow to create a package on CI would be profile create -> lockfile create -> create, each taking output from the previous “stage”.

0reactions
memshardedcommented, May 9, 2022

It would promote “out of source builds” (e.g. don’t conan install in your source folder, one build / install folder per profile) which is good practice anyways.

Fortunately, with layout() now most builds are automatically “out-of-source” (at least they are moved to a build folder, not polluting the project root).

Good use-case I didn’t think about. I think conaninfo.txt was pretty close to it.

conaninfo.txt will not longer be locally generated in 2.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using profiles with Compose - Docker Documentation
Using profiles with Compose. Profiles allow adjusting the Compose application model for various usages and environments by selectively enabling services.
Read more >
Services with profile in yml, always enable when execute ...
I am having the same issue on MacOS with Docker Desktop 4.7.0 and Docker Compose 2.4.1. When I do docker compose --profile my-profile...
Read more >
Testing your Compose layout - Jetpack - Android Developers
Compose provides a set of testing APIs to find elements, verify their attributes and perform user actions. They also include advanced features such...
Read more >
Compose (UI) beyond the UI (Part II): applying changes
For example, when a configuration change occurs the Activity and Fragment are destroyed and new instances are created, but the ViewModel is ...
Read more >
Compose DSC configurations | Microsoft Learn
Before you can assign a configuration made from composite resources in the Azure portal, you must compose the configuration.
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