Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX mapfile command not found #149

Closed
xiaoxi1989 opened this issue Nov 14, 2018 · 3 comments
Closed

OSX mapfile command not found #149

xiaoxi1989 opened this issue Nov 14, 2018 · 3 comments

Comments

@xiaoxi1989
Copy link

./hack/build-jsonnet.sh

  • set -o pipefail
  • prefix=assets
  • rm -rf assets
  • mkdir assets
  • rm -rf tmp
  • mkdir tmp
  • jsonnet -J jsonnet/vendor jsonnet/main.jsonnet
  • mapfile -t files
    ++ jq -r 'keys[]' tmp/main.json
    ./hack/build-jsonnet.sh: line 16: mapfile: command not found

how it build in mac ox ?

@jmcshane
Copy link

I ran into the same problem and resolved it by updating my path to ensure that the homebrew installed bash 5.0.2 was earlier in the $PATH than the macos default version of bash. Here's an article I found describing some of the considerations around this: https://scriptingosx.com/2019/02/install-bash-5-on-macos/

@paulfantom
Copy link
Contributor

/close

@openshift-ci-robot
Copy link
Contributor

@paulfantom: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants