Qarik-Group / bucc

The fastest way to get a BUCC (BOSH, UAA Credhub and Concourse)
Apache License 2.0
134 stars 46 forks source link

os x mojave broken pipe error #172

Closed fingolfint closed 5 years ago

fingolfint commented 5 years ago

Hi on macOs Mojave 10.14.2 installed direnv 2.18.2.

a simple direnv .envrc test with export HELLO="boohoo" works fine: cd vagrant/ direnv: error .envrc is blocked. Run direnv allow to approve its content. $ direnv allow . direnv: loading .envrc direnv: export +HELLO $ cd .. direnv: unloading

but this fails: git clone https://github.com/starkandwayne/bucc.git $cd bucc direnv: error .envrc is blocked. Run direnv allow to approve its content.

$ direnv allow . direnv: loading .envrc installing bosh cli '5.3.1' into: /Users/fingolfin/bucc/bin/ direnv: ([/usr/local/bin/direnv export bash]) is taking a while to execute. Use CTRL-C to give up. ./bin/bucc: line 301: echo: write error: Broken pipe

httran13 commented 5 years ago

Hello I am getting the same problem:

HuysMacbook:bucc huytran$ source .envrc HuysMacbook:bucc huytran$ ./bin/bucc: line 301: echo: write error: Broken pipe

norman-abramovitz commented 5 years ago

What version of bash are you running and what is the output from "direnv status"? This may be related to a sourcing error in bash.

nouseforaname commented 5 years ago

Can be mitigated by running 'eval $(bin/bucc env)' from repo root folder

httran13 commented 5 years ago

What version of bash are you running and what is the output from "direnv status"? This may be related to a sourcing error in bash.

HuysMacbook:bucc huytran$ bash --version GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin18.0.0) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. HuysMacbook:bucc huytran$

Not running direnv

httran13 commented 5 years ago

i changed my shebang in the bucc script and it resolved it

fingolfint commented 5 years ago

I updated bash (version 5.0.2(1)-release (x86_64-apple-darwin18.2.0) and it works fine. Thanks!