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

Skip adding default remotes if CONAN_NO_DEFAULT_REMOTES is set to True/1 #15674

Closed
wants to merge 1 commit into from

Conversation

DailyMats
Copy link

Changelog: Feature
Docs: conan-io/docs#3583

If you mostly use Conan to build locally, using conanfiles you're handling (and exporting) yourself, and don't necessary set up a remote, there is no point in adding conancenter as a remote, and having Conan querying it for those.

@CLAassistant
Copy link

CLAassistant commented Feb 14, 2024

CLA assistant check
All committers have signed the CLA.

@memsharded
Copy link
Member

Thanks for your contribution @DailyMats

However, I am afraid that this kind of usage of env-vars to configure Conan behavior is no longer used in Conan 2.0.

There are already some different mechanisms to avoid using the conan default defined remote:

  • You can easily remove it with conan remote remove "*", or disable it with conan remote disable "*"
  • The recommended way to manage remotes and other configuration items is via conan config install, that can use an emptied remotes.json file to clear remotes (and define your own ones if desired)
  • Commands can use the --no-remotes argument to disable remotes

@memsharded
Copy link
Member

I am closing this as not planned, for the reasons above.
Thanks very much for your contribution anyway!

@memsharded memsharded closed this Mar 17, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants