fix(windows): skip id -u on Windows to avoid confusing startup error - #1824
Merged
Conversation
On Windows, `id -u` does not exist. Instead of spawning and catching the error (which prints a confusing warning), skip the call entirely and keep the default GITLAB_USER_ID value. Closes firecow#1684 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
firecow
approved these changes
Apr 3, 2026
kevingerman
pushed a commit
to kevingerman/gitlab-ci-local
that referenced
this pull request
Apr 10, 2026
…irecow#1824) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
May 7, 2026
This MR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [npm:gitlab-ci-local](https://github.com/firecow/gitlab-ci-local) | `4.70.1` → `4.71.0` |  |  |  |  | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>firecow/gitlab-ci-local (npm:gitlab-ci-local)</summary> ### [`v4.71.0`](https://github.com/firecow/gitlab-ci-local/releases/tag/4.71.0) [Compare Source](firecow/gitlab-ci-local@4.70.1...4.71.0) #### What's Changed - Fix remaining SonarCloud findings by [@​firecow](https://github.com/firecow) in [#​1823](firecow/gitlab-ci-local#1823) - fix(windows): skip id -u on Windows to avoid confusing startup error by [@​bcouetil](https://github.com/bcouetil) in [#​1824](firecow/gitlab-ci-local#1824) - fix: --completion outputs wrong script name when run via Bun by [@​Paul-Goulpie](https://github.com/Paul-Goulpie) in [#​1826](firecow/gitlab-ci-local#1826) - feat: improve --list-csv and --list output by [@​bcouetil](https://github.com/bcouetil) in [#​1810](firecow/gitlab-ci-local#1810) - chore(deps): update all non-major by [@​renovate](https://github.com/renovate)\[bot] in [#​1830](firecow/gitlab-ci-local#1830) - chore(deps): lock file maintenance by [@​renovate](https://github.com/renovate)\[bot] in [#​1827](firecow/gitlab-ci-local#1827) - fix(deps): update dependency re2js to v2 by [@​renovate](https://github.com/renovate)\[bot] in [#​1828](firecow/gitlab-ci-local#1828) #### New Contributors - [@​Paul-Goulpie](https://github.com/Paul-Goulpie) made their first contribution in [#​1826](firecow/gitlab-ci-local#1826) **Full Changelog**: <firecow/gitlab-ci-local@4.70.1...4.71.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMzkuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows,
id -udoes not exist. Instead of spawning and catching the error (which prints a confusing warning), skip the call entirely and keep the default GITLAB_USER_ID value.Closes #1684
Summary by cubic
Skip calling
id -uon Windows to remove the confusing startup warning and keep the defaultGITLAB_USER_ID. Closes #1684.Written for commit 27b5809. Summary will update on new commits.