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.

C2A: Conan deprecates CONAN_USERNAME and CONAN_CHANNEL

See original GitHub issue

Description of Problem, Request, or Question

After deprecating environament variables CONAN_USERNAME and CONAN_CHANNEL, I think that we should get rid of them in this repo too, it shouldn’t be a reliable way to feed user/channel to packages built with cpt.

Link to deprecation notice in the docs: https://docs.conan.io/en/latest/reference/env_vars.html#conan-username-conan-channel

If we agree to remove these variables here, it would be nice to remove them from the conan new --ci-* generated files too.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
uilianriescommented, Oct 17, 2019

I’m not sure. I see many users running CPT on their companies, which doesn’t reflect what we are doing on Conan Center Index. Probably we will break many users/companies dropping it. I vote for supporting both cases on CPT.

2reactions
jgsogocommented, Feb 4, 2020

conan-package-tools can still get those variables from the environment and pass them to Conan, that won’t make a difference, and we will check that everything keeps working the same. For Conan 2.0 we will thing about removing other environment variables too (https://github.com/conan-io/conan/issues/5270).

Probably this all is a result of my poor explanation when I opened this issue: Conan is deprecating those variables, so conan-package-tools should read the environment and pass them explicitly to conan create or to the conan_api (I don’t know the internals of this repo).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attributes — conan 1.50.2 documentation
Environment variables CONAN_USERNAME and CONAN_CHANNEL that were used to assign a value to these fields are now deprecated and will be removed in...
Read more >
Building with Conan — OpenPASS Documentation - Eclipse
Conan is an open source, decentralized and multi-platform package manager to ... The optional user and channel flags can be used to export...
Read more >
Build and run an executable locally with Conan - Stack Overflow
1 Answer 1 · Place your package in the conan cache. $ conan create . · Consume it using VirtualRunEnv. $ conan install...
Read more >
Conan packages in the Package Registry - GitLab Docs
The standard Conan recipe convention is package_name/version@user/channel , but if you're using an instance remote, the recipe user must be the plus sign ......
Read more >
Untitled
... Scoliose idiopathique adulte, 7500miles, Conan episode 657, Relegation zur 3 ... Forwarding email in exchange 2010, Panasonic 65 tv, Filippo bertonelli, ...
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