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

Fix PATH used by jobs #1420

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix PATH used by jobs #1420

wants to merge 1 commit into from

Conversation

jonhiggs
Copy link

The PATH configured in buildkite-agent.service is inherited by all jobs executed by Buildkite.

Normally, a binary installed to /usr/local/bin would take precedence over similarly named files in /usr/bin or /bin. This commit restores that expectation allowing an administrator to replace a binary by installing a replacement into /usr/local/bin.

There is no entry for /bin because al2023 symlinks /usr/bin to /bin. A specific entry for /bin is unnecessary.

Finally, /usr/local/sbin and /usr/sbin have been removed because as the buildkite-agent is a regular user, it should not have the required permissions to use those binaries.

The PATH configured in buildkite-agent.service is inherited by all jobs
executed by Buildkite.

Normally, a binary installed to `/usr/local/bin`, would take precedence
over similarly named files in `/usr/bin` or `/bin`. This commit restores
that expectation, allowing for an administrator to replace the default
binary by installing its replacement into `/usr/local/bin`.

There is no entry for `/bin` because al2023 symlinks `/usr/bin` to
`/bin`. A specific entry for `/bin` is unnecessary.

Finally, `/usr/local/sbin`, `/usr/sbin` have been removed because as the
buildkite-agent is a regular user, it should not have the required
permissions to use those binaries.
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 this pull request may close these issues.

1 participant