{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/538","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/538/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/538/events","html_url":"https://github.com/trufflesuite/truffle/issues/538","id":250860117,"node_id":"MDU6SXNzdWUyNTA4NjAxMTc=","number":538,"title":"migrations fail when setting non-standard contracts_build_directory","user":{"login":"szerintedmi","id":7456451,"node_id":"MDQ6VXNlcjc0NTY0NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7456451?v=4","gravatar_id":"","url":"https://api.github.com/users/szerintedmi","html_url":"https://github.com/szerintedmi","followers_url":"https://api.github.com/users/szerintedmi/followers","following_url":"https://api.github.com/users/szerintedmi/following{/other_user}","gists_url":"https://api.github.com/users/szerintedmi/gists{/gist_id}","starred_url":"https://api.github.com/users/szerintedmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szerintedmi/subscriptions","organizations_url":"https://api.github.com/users/szerintedmi/orgs","repos_url":"https://api.github.com/users/szerintedmi/repos","events_url":"https://api.github.com/users/szerintedmi/events{/privacy}","received_events_url":"https://api.github.com/users/szerintedmi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-17T08:00:37Z","updated_at":"2018-10-11T23:37:10Z","closed_at":"2018-10-11T23:37:11Z","author_association":"NONE","body":"- [x] I've asked for help in the [Truffle Gitter](http://gitter.im/Consensys/truffle) before filing this issue.\r\n\r\n---------------------------\r\n\r\n## Issue\r\nMigration fails when custom `contracts_build_directory` set in `truffle.js`\r\nIssue already raised in [truffle-migrate project](https://github.com/trufflesuite/truffle-migrate/issues/10) but those issues might not be monitored\r\n\r\n## Steps to Reproduce\r\n\r\n1. set a non standard build directory in truffle.js (eg: `contracts_build_directory: './src/contractsBuild'`)\r\n1. run `truffle migrate`\r\n\r\n## Expected Behavior\r\n\r\nBuild should output to the directory `contracts_build_directory` set in `truffle.js`\r\n\r\n## Actual Results\r\n```\r\n$ truffle migrate\r\nUsing network 'development'.\r\n\r\nRunning migration: 1_initial_migration.js\r\n/usr/local/lib/node_modules/truffle/build/cli.bundled.js:49072\r\n  throw new Error(\"Could not find artifacts for \" + import_path + \" from any sources\");\r\n  ^\r\n\r\nError: Could not find artifacts for ./Migrations.sol from any sources\r\n    at Resolver.require (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:49072:9)\r\n    at Object.require (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:66980:36)\r\n    at ResolverIntercept.require (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:219957:32)\r\n    at /Users/petro/ether/ucd-poc/migrations/1_initial_migration.js:1:28\r\n    at ContextifyScript.Script.runInContext (vm.js:53:29)\r\n    at ContextifyScript.Script.runInNewContext (vm.js:59:15)\r\n    at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:96391:14\r\n    at tryToString (fs.js:513:3)\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:501:12)\r\n```\r\n\r\n## Environment\r\n\r\n* Operating System: MacOs Sierra 10.12.6\r\n* Truffle version: 3.4.9\r\n* Ethereum client: N/A (using TestRPC 4.0.1) \r\n* node version: 8.2.1\r\n* npm version:  5.3.0\r\n"},"comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments/429156648","html_url":"https://github.com/trufflesuite/truffle/issues/538#issuecomment-429156648","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/538","id":429156648,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTE1NjY0OA==","user":{"login":"CruzMolina","id":7537712,"node_id":"MDQ6VXNlcjc1Mzc3MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/7537712?v=4","gravatar_id":"","url":"https://api.github.com/users/CruzMolina","html_url":"https://github.com/CruzMolina","followers_url":"https://api.github.com/users/CruzMolina/followers","following_url":"https://api.github.com/users/CruzMolina/following{/other_user}","gists_url":"https://api.github.com/users/CruzMolina/gists{/gist_id}","starred_url":"https://api.github.com/users/CruzMolina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruzMolina/subscriptions","organizations_url":"https://api.github.com/users/CruzMolina/orgs","repos_url":"https://api.github.com/users/CruzMolina/repos","events_url":"https://api.github.com/users/CruzMolina/events{/privacy}","received_events_url":"https://api.github.com/users/CruzMolina/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T23:37:10Z","updated_at":"2018-10-11T23:37:10Z","author_association":"CONTRIBUTOR","body":"Thanks for raising this issue @szerintedmi!\r\n\r\nWe've finally merged a fix for this into truffle@next via #1331."}}
{"actor":{"display_login":"CruzMolina"}}