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

adds CNB_ORDER_PATH env var hint to error message when order.toml fil… #1139

Conversation

joe-kimmel-vmw
Copy link
Contributor

…e can't be found

see: #1138

@joe-kimmel-vmw joe-kimmel-vmw requested a review from a team as a code owner July 3, 2023 19:14
…e can't be found

Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
@@ -89,6 +91,9 @@ func ReadOrder(path string) (buildpack.Order, buildpack.Order, error) {
}
_, err := toml.DecodeFile(path, &order)
if err != nil {
if errors.Is(err, fs.ErrNotExist) {
return nil, nil, fmt.Errorf("failed to read order file: %w, Hint: Try setting env var CNB_ORDER_PATH to the path of a valid order.toml file", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: there is actually a --order flag

@natalieparellano
Copy link
Member

Do we still want this one? I think we originally thought that the order path was a special case, but then we realized that it is also a flag (like the other paths). I'm going to put this in draft for now...

@natalieparellano natalieparellano marked this pull request as draft July 28, 2023 14:26
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.

None yet

3 participants