{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/rebar3/issues/1363","repository_url":"https://api.github.com/repos/erlang/rebar3","labels_url":"https://api.github.com/repos/erlang/rebar3/issues/1363/labels{/name}","comments_url":"https://api.github.com/repos/erlang/rebar3/issues/1363/comments","events_url":"https://api.github.com/repos/erlang/rebar3/issues/1363/events","html_url":"https://github.com/erlang/rebar3/issues/1363","id":184829728,"number":1363,"title":"rebar3 3.3.2 uses `rand:uniform/0` and is incompatible with R16B03-1","user":{"login":"fp","id":217272,"avatar_url":"https://avatars.githubusercontent.com/u/217272?v=3","gravatar_id":"","url":"https://api.github.com/users/fp","html_url":"https://github.com/fp","followers_url":"https://api.github.com/users/fp/followers","following_url":"https://api.github.com/users/fp/following{/other_user}","gists_url":"https://api.github.com/users/fp/gists{/gist_id}","starred_url":"https://api.github.com/users/fp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp/subscriptions","organizations_url":"https://api.github.com/users/fp/orgs","repos_url":"https://api.github.com/users/fp/repos","events_url":"https://api.github.com/users/fp/events{/privacy}","received_events_url":"https://api.github.com/users/fp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-24T12:42:47Z","updated_at":"2016-10-24T19:58:29Z","closed_at":null,"body":"Latest rebar3 appears to be non-working on Erlang R16B03-1 due to the use of the new `rand` module out of the `erlware_commons` dependency\r\n\r\n### Environment ###\r\n\r\n```\r\n(r16)PAULs-iMac:alreceive pfisher$ rebar3 version\r\nrebar 3.3.2 on Erlang/OTP R16B03-1 Erts 5.10.4\r\n(r16)PAULs-iMac:alreceive pfisher$ rebar3 report\r\nRebar3 report\r\n version 3.3.2\r\n generated at 2016-10-24T12:35:27+00:00\r\n=================\r\nPlease submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)\r\n-----------------\r\nTask: \r\nEntered as:\r\n  \r\n-----------------\r\nOperating System: x86_64-apple-darwin15.3.0\r\nERTS: Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false]\r\nRoot Directory: /Users/pfisher/erlang/r16\r\nLibrary directory: /Users/pfisher/erlang/r16/lib\r\n-----------------\r\nLoaded Applications:\r\nbbmustache: 1.3.0\r\ncertifi: 0.4.0\r\ncf: 0.2.1\r\ncommon_test: 1.7.4\r\ncompiler: 4.9.4\r\ncrypto: 3.2\r\ncth_readable: 1.2.3\r\ndialyzer: 2.6.1\r\nedoc: 0.7.12.1\r\nerlware_commons: 0.21.0\r\neunit: 2.2.6\r\neunit_formatters: 0.3.1\r\ngetopt: 0.8.2\r\ninets: 5.9.8\r\nkernel: 2.16.4\r\nproviders: 1.6.0\r\npublic_key: 0.21\r\nrelx: 3.21.1\r\nsasl: 2.3.4\r\nsnmp: 4.25\r\nssl_verify_fun: 1.1.1\r\nstdlib: 1.19.4\r\nsyntax_tools: 1.6.13\r\ntools: 2.6.13\r\n\r\n-----------------\r\nEscript path: undefined\r\nProviders:\r\n  app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit generate help install install_deps list lock new path pkgs release relup report shell state tar tree unlock update upgrade upgrade upgrade version xref \r\n```\r\n\r\n### Current behaviour ###\r\n\r\n`ec_file:insecure_mkdtemp/0` calls the new `rand:uniform/0` function out of `erlware_commons` dependency, while performing dependency operations.  This even happens when attempting to update rebar3 itself:\r\n\r\n```\r\n(r16)PAULs-iMac:alreceive pfisher$ DEBUG=1 rebar3 local upgrade\r\n===> Evaluating config script \"rebar.config.script\"\r\n===> Evaluating config script \"/Users/pfisher/src/ingestion/alreceive/_build/default/plugins/rebar_covertool/rebar.config.script\"\r\n===> Evaluating config script \"/Users/pfisher/src/ingestion/alreceive/_build/default/plugins/rebar_covertool/rebar.config.script\"\r\n===> Expanded command sequence to be run: []\r\n===> Expanded command sequence to be run: [{local,upgrade}]\r\n===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump\r\n===> Uncaught error: undef\r\n===> Stack trace to the error location:\r\n[{rand,uniform,[],[]},\r\n {ec_file,insecure_mkdtemp,0,\r\n          [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/erlware_commons/src/ec_file.erl\"},\r\n           {line,177}]},\r\n {rebar_prv_local_upgrade,maybe_fetch_rebar3,1,\r\n                          [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_local_upgrade.erl\"},\r\n                           {line,78}]},\r\n {rebar_prv_local_upgrade,do,1,\r\n                          [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_local_upgrade.erl\"},\r\n                           {line,53}]},\r\n {rebar_core,do,2,\r\n             [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl\"},\r\n              {line,125}]},\r\n {rebar_prv_do,do_tasks,2,\r\n               [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_do.erl\"},\r\n                {line,68}]},\r\n {rebar_core,do,2,\r\n             [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl\"},\r\n              {line,125}]},\r\n {rebar3,main,1,\r\n         [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar3.erl\"},\r\n          {line,56}]}]\r\n```\r\n\r\n### Expected behaviour ###\r\n\r\nWe still have a significant number of services that use R16B03-1, and libraries that maintain compatibility to the same version."},"comment":{"url":"https://api.github.com/repos/erlang/rebar3/issues/comments/255848252","html_url":"https://github.com/erlang/rebar3/issues/1363#issuecomment-255848252","issue_url":"https://api.github.com/repos/erlang/rebar3/issues/1363","id":255848252,"user":{"login":"fp","id":217272,"avatar_url":"https://avatars.githubusercontent.com/u/217272?v=3","gravatar_id":"","url":"https://api.github.com/users/fp","html_url":"https://github.com/fp","followers_url":"https://api.github.com/users/fp/followers","following_url":"https://api.github.com/users/fp/following{/other_user}","gists_url":"https://api.github.com/users/fp/gists{/gist_id}","starred_url":"https://api.github.com/users/fp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp/subscriptions","organizations_url":"https://api.github.com/users/fp/orgs","repos_url":"https://api.github.com/users/fp/repos","events_url":"https://api.github.com/users/fp/events{/privacy}","received_events_url":"https://api.github.com/users/fp/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T19:58:29Z","updated_at":"2016-10-24T19:58:29Z","body":"Thanks!\r\n\r\nFor those that have run into this issue, please be aware that you need to get the version of rebar in `$HOME/.cache/rebar3/bin` updated once using an Erlang > R16 before the rebuilt version is in place and R16 works again:\r\n```\r\n(r16)PAULs-iMac:alreceive pfisher$ kerl_deactivate \r\nPAULs-iMac:alreceive pfisher$ . ~/erlang/r18_2_1/activate \r\n(r18_2_1)PAULs-iMac:alreceive pfisher$ rebar3 local upgrade\r\n===> Extracting rebar3 libs to /Users/pfisher/.cache/rebar3/lib...\r\n===> Writing rebar3 run script /Users/pfisher/.cache/rebar3/bin/rebar3...\r\n===> Add to $PATH for use: export PATH=$PATH:/Users/pfisher/.cache/rebar3/bin\r\n(r18_2_1)PAULs-iMac:alreceive pfisher$ kerl_deactivate \r\nPAULs-iMac:alreceive pfisher$ . ~/erlang/r16/activate \r\n(r16)PAULs-iMac:alreceive pfisher$ rebar3 local upgrade\r\n===> Insecure HTTPS request (peer verification disabled), please update to OTP 17.4 or later\r\n===> Extracting rebar3 libs to /Users/pfisher/.cache/rebar3/lib...\r\n===> Writing rebar3 run script /Users/pfisher/.cache/rebar3/bin/rebar3...\r\n===> Add to $PATH for use: export PATH=$PATH:/Users/pfisher/.cache/rebar3/bin\r\n```"}}
{"actor":{"display_login":"fp"}}