Skip to content

build: refactor Makefile - #36759

Merged
aduh95 merged 1 commit into
nodejs:masterfrom
RaisinTen:Makefile/replace-echo-with-printf
Jan 11, 2021
Merged

build: refactor Makefile#36759
aduh95 merged 1 commit into
nodejs:masterfrom
RaisinTen:Makefile/replace-echo-with-printf

Conversation

@RaisinTen

@RaisinTenRaisinTen commented Jan 3, 2021

Copy link
Copy Markdown
Member
  • add character classes
  • replace echo -n with printf
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Jan 3, 2021
Comment threadMakefile Outdated
Comment threadMakefile Outdated
devsnek
devsnek previously requested changes Jan 3, 2021

@devsnekdevsnek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems to be explicitly worse with the newlines.

@RaisinTen

Copy link
Copy Markdown
MemberAuthor

In that case, should I replace the printfs that were already there with echos to make things more consistent?

@aduh95

Copy link
Copy Markdown
Contributor

In that case, should I replace the printfs that were already there with echos to make things more consistent?

Nah, maybe you can replace echo -n with printf, like ShellCheck recommends.

I'm generally -0 for doing this kind of changes if there's no linter enforcing it, because it's going to drift back to inconsistency eventually. Plus I don't think anyone has ever complained about echo being unsupported on their system.

@RaisinTen
RaisinTenforce-pushed the Makefile/replace-echo-with-printf branch from 20b76b9 to 2e2835dCompareJanuary 4, 2021 15:14
@RaisinTenRaisinTen changed the title build: replace echo with printf in Makefilebuild: refactor MakefileJan 4, 2021
@RaisinTen
RaisinTenforce-pushed the Makefile/replace-echo-with-printf branch from 2e2835d to 385729bCompareJanuary 4, 2021 15:43
@RaisinTen

Copy link
Copy Markdown
MemberAuthor

PTAL 👀

Comment threadMakefile Outdated
@RaisinTen
RaisinTenforce-pushed the Makefile/replace-echo-with-printf branch from 3733faa to 0149deeCompareJanuary 5, 2021 12:44
@RaisinTen

Copy link
Copy Markdown
MemberAuthor

Does this look okay now?

Comment threadMakefile Outdated
@RaisinTen
RaisinTenforce-pushed the Makefile/replace-echo-with-printf branch from 5763542 to c70d2ddCompareJanuary 5, 2021 15:25
@RaisinTen
RaisinTen requested a review from devsnekJanuary 5, 2021 15:32
@RaisinTenRaisinTen added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 9, 2021
@jasnelljasnell added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 9, 2021
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 9, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@jasnelljasnell removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 9, 2021
@jasnell

Copy link
Copy Markdown
Member

Taking the author ready off given the objection / changes-requested

@RaisinTen

Copy link
Copy Markdown
MemberAuthor

Taking the author ready off given the objection / changes-requested

@jasnell I had updated the code already according to the request, so the objection is not valid anymore. I couldn't find a Resolve button for this and there is 1 approval already, so I added the author-ready label. Can you please help me in resolving this?

@jasnell

Copy link
Copy Markdown
Member

Yeah that's fine, just wanted to make sure it was revisited before landing. I'll take a look tomorrow :)

@jasnell

Copy link
Copy Markdown
Member

@devsnek can you take another look when you get a moment?

@devsnek
devsnek removed their request for review January 10, 2021 16:17
@devsnek

Copy link
Copy Markdown
Member

not sure how to dismiss in the app but I dismiss my change request

@aduh95
aduh95 dismissed devsnek’s stale reviewJanuary 10, 2021 17:05

They dismissed their change request in a comment above.

@aduh95aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 10, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

* add character classes
* replace echo -n with printf
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs#36759
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95
aduh95force-pushed the Makefile/replace-echo-with-printf branch from c70d2dd to 44cf49eCompareJanuary 11, 2021 10:37
@aduh95

Copy link
Copy Markdown
Contributor

Landed in 44cf49e

@aduh95
aduh95 merged commit 44cf49e into nodejs:masterJan 11, 2021
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
* add character classes
* replace echo -n with printf
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #36759
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@RaisinTen
RaisinTen deleted the Makefile/replace-echo-with-printf branch January 12, 2021 13:28
@danielleadamsdanielleadams mentioned this pull request Jan 12, 2021
targos pushed a commit that referenced this pull request May 1, 2021
* add character classes
* replace echo -n with printf
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #36759
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@danielleadamsdanielleadams mentioned this pull request May 3, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.buildIssues and PRs related to build files or the CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@RaisinTen@aduh95@nodejs-github-bot@jasnell@devsnek@richardlau