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

Issue with adding gnu bins to the path on macOS in the contributors development guide #8391

Open
gawbul opened this issue Mar 21, 2025 · 3 comments · May be fixed by #8392
Open

Issue with adding gnu bins to the path on macOS in the contributors development guide #8391

gawbul opened this issue Mar 21, 2025 · 3 comments · May be fixed by #8392
Labels
sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/docs Categorizes an issue or PR as relevant to SIG Docs.

Comments

@gawbul
Copy link

gawbul commented Mar 21, 2025

Describe the issue

As part of the contributors/devel/development.md file we are told to add the following to our ~/.bashrc:

GNUBINS="$(find `brew --prefix`/opt -type d -follow -name gnubin -print)"

for bindir in ${GNUBINS[@]}
do
  export PATH=$bindir:$PATH
done

export PATH

However, this results in the following in the $PATH variable on my machine:

PATH=/opt/homebrew/opt/libtool/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/ed/libexec/gnubin
/opt/homebrew/opt/grep/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gsed/libexec/gnubin
/opt/homebrew/opt/gawk/libexec/gnubin
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/findutils/libexec/gnubin:/Users/gawbul/.local/share/mise/installs/python/3.13.2/bin:/opt/homebrew/share/google-cloud-sdk/bin:/opt/homebrew/opt/mise/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/opt/[email protected]/bin:/Users/gawbul/src/ensembl-git-tools/bin:/Users/gawbul/perl5/bin:/opt/homebrew/Cellar/zplug/2.4.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/gawbul/.pyenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Little Snitch.app/Contents/Components:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Ghostty.app/Contents/MacOS:/Users/gawbul/Library/Application Support/Coursier/bin:/Users/gawbul/go/bin:/opt/homebrew/opt/go/libexec/bin:/Users/gawbul/.local/bin

Note that the path for each utility is on a separate line and is not joined by the colon delimiter.

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Mar 21, 2025
@gawbul
Copy link
Author

gawbul commented Mar 21, 2025

/sig docs

@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 21, 2025
@gawbul gawbul linked a pull request Mar 21, 2025 that will close this issue
@gawbul
Copy link
Author

gawbul commented Mar 21, 2025

It's also worth noting that zsh is the default shell on macOS now, so it should really reference ~/.zshrc.
I'll also push that change.

@gawbul
Copy link
Author

gawbul commented Mar 21, 2025

/sig contributor-experience

@k8s-ci-robot k8s-ci-robot added the sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/docs Categorizes an issue or PR as relevant to SIG Docs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants