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

[BREAKING] Replace console.log with process.stderr #930

Closed
wants to merge 1 commit into from

Conversation

d3xter666
Copy link
Contributor

@d3xter666 d3xter666 commented Feb 22, 2024

BREAKING CHANGE:
Error messages will now be written to stderr instead of stdout.

JIRA: CPOUI5FOUNDATION-802
Related to: #701
Sibling of: SAP/ui5-server#643, SAP/ui5-cli#686

@flovogt flovogt changed the title [BRAKING] Replace console.log with process.stderr [BREAKING] Replace console.log with process.stderr Feb 23, 2024
Comment on lines +18 to +19
process.stderr.write(hashSum.digest("hex"));
process.stderr.write("\n");
Copy link
Member

Choose a reason for hiding this comment

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

This breaks the use case of this script:

DOCKER_TAG=$(node ./hash.js ./Dockerfile)

With this change, DOCKER_TAG will be empty instead of containing the hash.

This should be reverted to console.log

Copy link
Member

Choose a reason for hiding this comment

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

I don't see a reason to adjust any of those scripts. They're not related to the productive shipment of packages and usage of console.log seems to be totally valid to me.

Copy link
Member

Choose a reason for hiding this comment

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

True, I was wondering too. There's no need and nobody consumes these scripts outside of this repository. So we could also abandon this PR

@d3xter666 d3xter666 closed this Feb 29, 2024
d3xter666 added a commit to SAP/ui5-server that referenced this pull request Feb 29, 2024
BREAKING CHANGE:
Messages will now be written to stderr instead of stdout.

JIRA: CPOUI5FOUNDATION-802
Related to: SAP/ui5-tooling#701
Sibling of: SAP/ui5-tooling#930,
SAP/ui5-cli#686
d3xter666 added a commit to SAP/ui5-cli that referenced this pull request Feb 29, 2024
BREAKING CHANGE:
System messages will now be written to stderr instead of stdout.

JIRA: CPOUI5FOUNDATION-802
Related to: SAP/ui5-tooling#701
Sibling of: SAP/ui5-server#643,
SAP/ui5-tooling#930
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