{"action":"created","issue":{"url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/issues/1","repository_url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin","labels_url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/issues/1/comments","events_url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/issues/1/events","html_url":"https://github.com/oslomarketsolutions/pre-commit-maven-plugin/issues/1","id":347320667,"node_id":"MDU6SXNzdWUzNDczMjA2Njc=","number":1,"title":"Fails on Mac","user":{"login":"esphen","id":5845924,"node_id":"MDQ6VXNlcjU4NDU5MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5845924?v=4","gravatar_id":"","url":"https://api.github.com/users/esphen","html_url":"https://github.com/esphen","followers_url":"https://api.github.com/users/esphen/followers","following_url":"https://api.github.com/users/esphen/following{/other_user}","gists_url":"https://api.github.com/users/esphen/gists{/gist_id}","starred_url":"https://api.github.com/users/esphen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esphen/subscriptions","organizations_url":"https://api.github.com/users/esphen/orgs","repos_url":"https://api.github.com/users/esphen/repos","events_url":"https://api.github.com/users/esphen/events{/privacy}","received_events_url":"https://api.github.com/users/esphen/received_events","type":"User","site_admin":false},"labels":[{"id":956610038,"node_id":"MDU6TGFiZWw5NTY2MTAwMzg=","url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-03T09:14:56Z","updated_at":"2018-08-07T19:25:31Z","closed_at":"2018-08-07T19:25:31Z","author_association":"CONTRIBUTOR","body":"On mac it fails because python3 is not present:\r\n\r\n```\r\n[ERROR] Failed to execute goal no.oms.maven:pre-commit-maven-plugin:0.2.1:download-binary (default) on project norne: Failed to install binary: Python encountered an issue when installing the pre-commit binary: Exception when fetching python version from binary: Cannot run program \"python3\": error=2, No such file or directory -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal no.oms.maven:pre-commit-maven-plugin:0.2.1:download-binary (default) on project norne: Failed to install binary\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:199)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: org.apache.maven.plugin.MojoExecutionException: Failed to install binary\r\n\tat no.oms.maven.precommit.mojo.DownloadBinaryMojo.execute(DownloadBinaryMojo.java:45)\r\n\tat no.oms.maven.precommit.mojo.AbstractPrecommitMojo.execute(AbstractPrecommitMojo.java:45)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\r\n\t... 20 more\r\nCaused by: no.oms.maven.precommit.lib.InstallationException: Python encountered an issue when installing the pre-commit binary\r\n\tat no.oms.maven.precommit.lib.BinaryInstaller.installBinary(BinaryInstaller.java:70)\r\n\tat no.oms.maven.precommit.mojo.DownloadBinaryMojo.execute(DownloadBinaryMojo.java:43)\r\n\t... 23 more\r\nCaused by: no.oms.maven.precommit.lib.PythonException: Exception when fetching python version from binary:\r\n\tat no.oms.maven.precommit.lib.DefaultPythonHandle.getPython3Executable(PythonHandle.java:185)\r\n\tat no.oms.maven.precommit.lib.DefaultPythonHandle.setupVirtualEnv(PythonHandle.java:50)\r\n\tat no.oms.maven.precommit.lib.BinaryInstaller.installBinary(BinaryInstaller.java:59)\r\n\t... 24 more\r\nCaused by: java.io.IOException: Cannot run program \"python3\": error=2, No such file or directory\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\r\n\tat java.lang.Runtime.exec(Runtime.java:620)\r\n\tat java.lang.Runtime.exec(Runtime.java:485)\r\n\tat no.oms.maven.precommit.lib.DefaultPythonHandle.getPython3Executable(PythonHandle.java:171)\r\n\t... 26 more\r\nCaused by: java.io.IOException: error=2, No such file or directory\r\n\tat java.lang.UNIXProcess.forkAndExec(Native Method)\r\n\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\r\n\tat java.lang.ProcessImpl.start(ProcessImpl.java:134)\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\r\n\t... 29 more\r\n```"},"comment":{"url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/issues/comments/411172893","html_url":"https://github.com/oslomarketsolutions/pre-commit-maven-plugin/issues/1#issuecomment-411172893","issue_url":"https://api.github.com/repos/oslomarketsolutions/pre-commit-maven-plugin/issues/1","id":411172893,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTE3Mjg5Mw==","user":{"login":"esphen","id":5845924,"node_id":"MDQ6VXNlcjU4NDU5MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5845924?v=4","gravatar_id":"","url":"https://api.github.com/users/esphen","html_url":"https://github.com/esphen","followers_url":"https://api.github.com/users/esphen/followers","following_url":"https://api.github.com/users/esphen/following{/other_user}","gists_url":"https://api.github.com/users/esphen/gists{/gist_id}","starred_url":"https://api.github.com/users/esphen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esphen/subscriptions","organizations_url":"https://api.github.com/users/esphen/orgs","repos_url":"https://api.github.com/users/esphen/repos","events_url":"https://api.github.com/users/esphen/events{/privacy}","received_events_url":"https://api.github.com/users/esphen/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T19:25:31Z","updated_at":"2018-08-07T19:25:31Z","author_association":"CONTRIBUTOR","body":"Fixed in e663530c4247571df3278b660b98511b689ac3de"}}
{"actor":{"display_login":"esphen"}}