{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/2987","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/2987/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/2987/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/2987/events","html_url":"https://github.com/conan-io/conan/issues/2987","id":329080945,"node_id":"MDU6SXNzdWUzMjkwODA5NDU=","number":2987,"title":"[question] Why windows version of conan doesn't know setting.os_build?","user":{"login":"gpgolikov","id":30618016,"node_id":"MDQ6VXNlcjMwNjE4MDE2","avatar_url":"https://avatars0.githubusercontent.com/u/30618016?v=4","gravatar_id":"","url":"https://api.github.com/users/gpgolikov","html_url":"https://github.com/gpgolikov","followers_url":"https://api.github.com/users/gpgolikov/followers","following_url":"https://api.github.com/users/gpgolikov/following{/other_user}","gists_url":"https://api.github.com/users/gpgolikov/gists{/gist_id}","starred_url":"https://api.github.com/users/gpgolikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpgolikov/subscriptions","organizations_url":"https://api.github.com/users/gpgolikov/orgs","repos_url":"https://api.github.com/users/gpgolikov/repos","events_url":"https://api.github.com/users/gpgolikov/events{/privacy}","received_events_url":"https://api.github.com/users/gpgolikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-04T14:30:38Z","updated_at":"2018-06-04T16:23:08Z","closed_at":null,"author_association":"NONE","body":"I've tried to build packages (in my case boost packages from bincrafters) and got initialising settings error for package **mingw_installer/1.0@conan/stable**. There is *settings.os_build* not exist.\r\n\r\n```\r\nmingw_installer/1.0@conan/stable: Not found in local cache, looking in remotes...\r\nmingw_installer/1.0@conan/stable: Trying with 'conan-center'...\r\nDownloading conanmanifest.txt\r\n[==================================================] 58B/58B\r\nDownloading conanfile.py\r\n[==================================================] 5.1KB/5.1KB\r\nERROR: C:\\...\\.conan\\data\\mingw_installer\\1.0\\conan\\stable\\export\\conanfile.py: Error while initializing settings. 'settings.os_build' doesn't exist\r\n'settings' possible configurations are ['arch', 'build_type', 'compiler', 'os']\r\n```\r\n\r\nconanfile.py of mingw_installer package contains followed if statement:\r\n```python\r\nif conan_version < Version(\"0.99\"):\r\n    os_name = \"os\"\r\n    arch_name = \"arch\"\r\nelse:\r\n    os_name = \"os_build\"\r\n    arch_name = \"arch_build\"\r\n```\r\nAnd i tried several versions of conan (1.4.2, 1.4.1, 1.4.0, 1.0.4, 1.0.2).\r\n\r\nI added setting os_build to my conan profile and got similar error, but immediately when i ran conan install command.\r\n\r\nOn my mac os x machine there is no problem and when i add os_build setting to conan profile all work fine.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/394415176","html_url":"https://github.com/conan-io/conan/issues/2987#issuecomment-394415176","issue_url":"https://api.github.com/repos/conan-io/conan/issues/2987","id":394415176,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQxNTE3Ng==","user":{"login":"gpgolikov","id":30618016,"node_id":"MDQ6VXNlcjMwNjE4MDE2","avatar_url":"https://avatars0.githubusercontent.com/u/30618016?v=4","gravatar_id":"","url":"https://api.github.com/users/gpgolikov","html_url":"https://github.com/gpgolikov","followers_url":"https://api.github.com/users/gpgolikov/followers","following_url":"https://api.github.com/users/gpgolikov/following{/other_user}","gists_url":"https://api.github.com/users/gpgolikov/gists{/gist_id}","starred_url":"https://api.github.com/users/gpgolikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpgolikov/subscriptions","organizations_url":"https://api.github.com/users/gpgolikov/orgs","repos_url":"https://api.github.com/users/gpgolikov/repos","events_url":"https://api.github.com/users/gpgolikov/events{/privacy}","received_events_url":"https://api.github.com/users/gpgolikov/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T16:23:08Z","updated_at":"2018-06-04T16:23:08Z","author_association":"NONE","body":"I updated conan from 0.30 (or about it) to last version (1.4.2). But i removed Conan folder with older version from disk (this where i installed conan earlier) using unins000.exe tool.\r\nAnd `conan --version` returns correct version.\r\nMay be some files in other location are crushing my installation of mingw_installer? I though C:\\.conan directory contains only package information (build artefacts, source code, some meta and other)."}}
{"actor":{"display_login":"gpgolikov"}}