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

Switch to a new output helper for error messages #1639

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Sep 23, 2024

The existing logging functions in bin/utils don't support being passed multi-line output.

Upcoming PRs are going to be adding a number of new error messages, so this adds a new output module under lib/ (that supports multi-line output and also uses colour) and switches the existing buildpack error messages to it.

Now that the buildpack error messages use ANSI colour codes, the Hatchet output has to have ANSI sequences stripped prior to the output assertions.

Prep for #796 / #932.

GUS-W-16808943.

@edmorley edmorley self-assigned this Sep 23, 2024
@edmorley edmorley marked this pull request as ready for review September 23, 2024 11:55
@edmorley edmorley requested a review from a team as a code owner September 23, 2024 11:55
Base automatically changed from shfmt to main September 23, 2024 12:25
The existing logging functions in `bin/utils` don't support being
passed multi-line output.

Upcoming PRs are going to be adding a number of new error
messages, so this adds a new output module under `lib/` (that
supports multi-line output and also uses colour) and switches
the existing buildpack error messages to it.

GUS-W-16808943.
@edmorley edmorley merged commit 6697fd5 into main Sep 23, 2024
7 checks passed
@edmorley edmorley deleted the output-utils branch September 23, 2024 12:35
@heroku-linguist heroku-linguist bot mentioned this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants