{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/1956","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/1956/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/1956/events","html_url":"https://github.com/conan-io/conan/issues/1956","id":269312414,"number":1956,"title":"Build policy 'always' fails on Windows","user":{"login":"theodelrieu","id":15652306,"avatar_url":"https://avatars1.githubusercontent.com/u/15652306?v=4","gravatar_id":"","url":"https://api.github.com/users/theodelrieu","html_url":"https://github.com/theodelrieu","followers_url":"https://api.github.com/users/theodelrieu/followers","following_url":"https://api.github.com/users/theodelrieu/following{/other_user}","gists_url":"https://api.github.com/users/theodelrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/theodelrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodelrieu/subscriptions","organizations_url":"https://api.github.com/users/theodelrieu/orgs","repos_url":"https://api.github.com/users/theodelrieu/repos","events_url":"https://api.github.com/users/theodelrieu/events{/privacy}","received_events_url":"https://api.github.com/users/theodelrieu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-28T12:07:04Z","updated_at":"2017-10-28T20:49:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi there,\r\n\r\nI'm currently trying to add Conan support to [Outcome](https://github.com/ned14/Outcome/pull/68).\r\nFor that purpose I chose to use `build_policy = \"always\"`.\r\n\r\nIt works on Linux, but when I tried to create a package on my Windows machine, I got the following output:\r\n\r\n```\r\nOutcome/master@theo/test: Exporting package recipe\r\nWARN: Conanfile doesn't have 'url'.\r\nIt is recommended to add it as attribute\r\nOutcome/master@theo/test: A new conanfile.py version was exported\r\nOutcome/master@theo/test: Folder: C:\\Users\\Theo\\.conan\\data\\Outcome\\master\\theo\\test\\export\r\nOutcome/master@theo/test: Package recipe modified in export, forcing source folder removal\r\nOutcome/master@theo/test: Use the --keep-source, -k option to skip it\r\nOutcome/master@theo/test: Removing 'source' folder, this can take a while for big packages\r\nOutcome/master@theo/test: Installing package\r\nRequirements\r\n    Outcome/master@theo/test from godzilla\r\nPackages\r\n    Outcome/master@theo/test:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\r\n\r\nOutcome/master@theo/test: Building package from source as defined by build_policy='always'\r\nOutcome/master@theo/test: Building package from source as defined by build_policy='always'\r\nOutcome/master@theo/test: Building package from source as defined by build_policy='always'\r\nOutcome/master@theo/test: WARN: Forced build from source\r\nOutcome/master@theo/test: Building your package in C:\\Users\\Theo\\.conan\\data\\Outcome\\master\\theo\\test\\build\\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\r\nOutcome/master@theo/test: WARN: Detected build_policy 'always', trying to remove source folder\r\nOutcome/master@theo/test: WARN: This can take a while for big packages\r\nOutcome/master@theo/test: Configuring sources in C:\\Users\\Theo\\.conan\\data\\Outcome\\master\\theo\\test\\source\r\n\r\n\r\nOutcome/master@theo/test: Copying sources to build folder\r\nOutcome/master@theo/test: Generator txt created conanbuildinfo.txt\r\nOutcome/master@theo/test: Calling build()\r\nOutcome/master@theo/test: WARN: This conanfile has no build step\r\nOutcome/master@theo/test: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' built\r\nOutcome/master@theo/test: Build folder C:\\Users\\Theo\\.conan\\data\\Outcome\\master\\theo\\test\\build\\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\r\nOutcome/master@theo/test: Generated conaninfo.txt\r\nOutcome/master@theo/test: Generated conanbuildinfo.txt\r\nOutcome/master@theo/test: Generating the package\r\nOutcome/master@theo/test: Package folder C:\\Users\\Theo\\.conan\\data\\Outcome\\master\\theo\\test\\package\\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\r\nOutcome/master@theo/test: Calling package()\r\nOutcome/master@theo/test package(): Copied 1 '.hpp' files: outcome.hpp\r\nOutcome/master@theo/test package(): Copied 1 '' files: LICENCE\r\nOutcome/master@theo/test: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' created\r\nOutcome/master@theo/test: Testing with 'test_package'\r\nOutcome/master@theo/test test package: Installing dependencies\r\nOutcome/master@theo/test: Building package from source as defined by build_policy='always'\r\nOutcome/master@theo/test: Building package from source as defined by build_policy='always'\r\nOutcome/master@theo/test: Building package from source as defined by build_policy='always'\r\nOutcome/master@theo/test: WARN: Forced build from source\r\nERROR: [WinError 32] Le processus ne peut pas acc▒der au fichier car ce fichier est utilis▒ par un autre processus: 'C:\\\\Users\\\\Theo\\\\.conan\\\\data\\\\Outcome\\\\master\\\\theo\\\\test\\\\build\\\\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9'\r\n\r\nCouldn't remove folder, might be busy or open\r\nClose any app using it, and retry\r\n```\r\n\r\nThe Windows error means: a process is already using this file. Pardon my french :)\r\n\r\nI've tried with versions 0.28 and 0.27, it fails too. As you can see some outputs are repeated three times, it did the same thing on Linux.\r\n\r\nNote that the package is header only, nothing is to be built, but Conan still seems to create a build folder, even if there is no `build()` method in the `conanfile.py`. From the Windows error I assume that some task is trying to remove the build folder while it's being used.\r\n\r\nThe recipe can be found [here](https://github.com/ned14/outcome/tree/develop/conan)"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/340218943","html_url":"https://github.com/conan-io/conan/issues/1956#issuecomment-340218943","issue_url":"https://api.github.com/repos/conan-io/conan/issues/1956","id":340218943,"user":{"login":"memsharded","id":15367152,"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},"created_at":"2017-10-28T20:49:45Z","updated_at":"2017-10-28T20:49:45Z","author_association":"CONTRIBUTOR","body":"It seems there could be an error with ``tools.download`` and github raw content, I am getting the following error:\r\n```\r\nERROR: Outcome/master@user/testing: Error in source() method, line 13\r\n        tools.download(\"https://raw.githubusercontent.com/ned14/outcome/master/single-header/outcome.hpp\", filename=\"outcome.hpp\")\r\n        ConanConnectionError: Download failed, check server, possibly try again\r\nTransfer interrupted before complete: 271503 < 34432\r\n```"}}
{"actor":{"display_login":"memsharded"}}