chef / chef/chef-workstation

Avoid depending on system `PATH` for the `chef` top-level wrapper

Open
#562 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: Packaging Aspect: Portability Triage: Confirmed
Dominant language
Go
Stars
156
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Describe the Enhancement:

We don't want our chef top-level wrapper to depend on the system PATH to call the underlying sub-binaries. Perhaps we can hard-code the expected omnibus paths as constants, inject them at build-time, or use a relative path based on the location of this file.

Describe the Need:

The chef command should not depend on the PATH to locate underlying sub-binaries,
that way users can use the CLI out-of-the-box without depending on user customizations.

Current Alternative

Use the PATH. Not desired!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the chef top-level wrapper and the code that invokes its underlying sub-binaries. Compare the possible path-resolution approaches described in the issue, then verify that the chef command works without relying on the user's system PATH.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.