8000 build: replace which with command -v by RaisinTen · Pull Request #36118 · nodejs/node · GitHub
  • [go: up one dir, main page]

    Skip to content

    Conversation

    @RaisinTen
    Copy link
    Member
    @RaisinTen RaisinTen commented Nov 14, 2020

    I read here that it is better to avoid which and use command -v instead: https://stackoverflow.com/a/677212

    Checklist
    • make -j4 test (UNIX), or vcbuild test (Windows) passes
    • commit message follows commit guidelines

    @nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency. labels Nov 14, 2020
    @RaisinTen RaisinTen marked this pull request as ready for review November 14, 2020 16:29
    @aduh95 aduh95 mentioned this pull request Nov 14, 2020
    8 tasks
    @RaisinTen RaisinTen force-pushed the refactor/replace-which-with-command-v branch from 350c92c to cc3c31e Compare November 15, 2020 12:10
    @aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Nov 16, 2020
    @github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 17, 2020
    @nodejs-github-bot

    This comment has been minimized.

    @nodejs-github-bot

    This comment has been minimized.

    @nodejs-github-bot
    Copy link
    Collaborator

    @aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 18, 2020
    @github-actions github-actions bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 18, 2020
    @aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 19, 2020
    @github-actions github-actions bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 19, 2020
    @aduh95
    Copy link
    Contributor
    aduh95 commented Nov 19, 2020

    Landed in 2d167f0

    @aduh95 aduh95 closed this Nov 19, 2020
    aduh95 pushed a commit that referenced this pull request Nov 19, 2020
    PR-URL: #36118
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    codebytere pushed a commit that referenced this pull request Nov 22, 2020
    PR-URL: #36118
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    @codebytere codebytere mentioned this pull request Nov 22, 2020
    BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
    PR-URL: #36118
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
    PR-URL: #36118
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    @BethGriggs BethGriggs mentioned this pull request Dec 10, 2020
    BethGriggs pushed a commit that referenced this pull request Dec 15, 2020
    PR-URL: #36118
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    @RaisinTen RaisinTen deleted the refactor/replace-which-with-command-v branch December 16, 2020 15:20
    @kurahaupo
    Copy link

    The very same StackOverflow article notes that the correct way to check whether a command exists is to use the exit status of command, so [ `which thing` ] should be transformed to command -v thing 2>/dev/null and not [ `command -v thing` ].

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency.

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    7 participants

    0