{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/3361","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/3361/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3361/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/3361/events","html_url":"https://github.com/conan-io/conan/pull/3361","id":351506197,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MDgwOTEy","number":3361,"title":"Apply general scope options to consumer Conanfile first","user":{"login":"danimtb","id":10808592,"node_id":"MDQ6VXNlcjEwODA4NTky","avatar_url":"https://avatars1.githubusercontent.com/u/10808592?v=4","gravatar_id":"","url":"https://api.github.com/users/danimtb","html_url":"https://github.com/danimtb","followers_url":"https://api.github.com/users/danimtb/followers","following_url":"https://api.github.com/users/danimtb/following{/other_user}","gists_url":"https://api.github.com/users/danimtb/gists{/gist_id}","starred_url":"https://api.github.com/users/danimtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimtb/subscriptions","organizations_url":"https://api.github.com/users/danimtb/orgs","repos_url":"https://api.github.com/users/danimtb/repos","events_url":"https://api.github.com/users/danimtb/events{/privacy}","received_events_url":"https://api.github.com/users/danimtb/received_events","type":"User","site_admin":false},"labels":[{"id":821746717,"node_id":"MDU6TGFiZWw4MjE3NDY3MTc=","url":"https://api.github.com/repos/conan-io/conan/labels/in%20review","name":"in review","color":"0000e6","default":false}],"state":"open","locked":false,"assignee":{"login":"memsharded","id":15367152,"node_id":"MDQ6VXNlcjE1MzY3MTUy","avatar_url":"https://avatars2.githubusercontent.com/u/15367152?v=4","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"assignees":[{"login":"memsharded","id":15367152,"node_id":"MDQ6VXNlcjE1MzY3MTUy","avatar_url":"https://avatars2.githubusercontent.com/u/15367152?v=4","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/61","html_url":"https://github.com/conan-io/conan/milestone/61","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/61/labels","id":3469823,"node_id":"MDk6TWlsZXN0b25lMzQ2OTgyMw==","number":61,"title":"1.7","description":null,"creator":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":28,"state":"open","created_at":"2018-07-03T10:43:21Z","updated_at":"2018-08-17T16:33:46Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-08-17T08:37:42Z","updated_at":"2018-08-20T06:42:00Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/conan-io/conan/pulls/3361","html_url":"https://github.com/conan-io/conan/pull/3361","diff_url":"https://github.com/conan-io/conan/pull/3361.diff","patch_url":"https://github.com/conan-io/conan/pull/3361.patch"},"body":"- [x] Refer to the issue that supports this Pull Request: closes #2538 \r\n- [x] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.\r\n\r\nThe real issue was this line in `configure()`:\r\n```\r\nself.options[\"*\"].shared = self.options.shared\r\n```\r\nAnd user input with something like ``conan install -o *:shared=True``.\r\n\r\nBasically, options with ``*`` operator are reserved for the graph builder to be applied to requirements when graph is complete. The option with ``*`` is not applied initially to the consumer conanfile and when it hits the line above in configure, changes the general scope option to its default value (``shared=False``).\r\n\r\n- [x] I've read the [Contributing guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).\r\n- [x] I've followed the PEP8 style guides for Python code.\r\n- [x] I've opened another PR in the Conan docs repo to the ``develop`` branch, documenting this one. Also adding a description of the changes in the ``changelog.rst`` file. https://github.com/conan-io/docs\r\n"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/414212829","html_url":"https://github.com/conan-io/conan/pull/3361#issuecomment-414212829","issue_url":"https://api.github.com/repos/conan-io/conan/issues/3361","id":414212829,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDIxMjgyOQ==","user":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T06:42:00Z","updated_at":"2018-08-20T06:42:00Z","author_association":"CONTRIBUTOR","body":"But, why would you type `self.options[\"*\"].shared = self.options.shared` in the configure? I don't get it. Without that line, does everything work as expected?"}}
{"actor":{"display_login":"lasote"}}