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

Add section about CONAN_NO_DEFAULT_REMOTES #3583

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions reference/env_vars.rst
Expand Up @@ -314,6 +314,13 @@ This variable, however, is useful for shared CI servers where the stored value c
assign a random generated string to this value for each of the builds and configure your server to expire
tokens, this will make the value stored in the database harder to crack.

CONAN_NO_DEFAULT_REMOTES
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am afraid this is very legacy, this is not part anymore of Conan 1.X, are you sure you are in latest Conan 1.62 version?

Copy link
Author

@DailyMats DailyMats Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the adding of a default remote? It's still happening with 1.62, yes. For example with conan export:

$ conan --version
Conan version 1.62.0
$ rm ~/.conan/remotes.json
$ conan export conanfiles/re2-conanfile.py
WARN: Remotes registry file missing, creating default one in /Users/xxx/.conan/remotes.json
ERROR: conanfile didn't specify name

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see there is an associated PR. Let's follow the conversation in the PR

------------------------

**Defaulted to**: ``False``/``0``

Set it to ``True``/``1`` to not generate a ``<userhome>/.conan/remotes.json`` with a default remote
defined inside when that file doesn't exist.

.. _env_vars_conan_make_program:

Expand Down