Skip to content

fix(windows): skip id -u on Windows to avoid confusing startup error - #1824

Merged
firecow merged 1 commit into
firecow:masterfrom
bcouetil:fix/windows-id-u
Apr 3, 2026
Merged

fix(windows): skip id -u on Windows to avoid confusing startup error#1824
firecow merged 1 commit into
firecow:masterfrom
bcouetil:fix/windows-id-u

Conversation

@bcouetil

@bcouetil bcouetil commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

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 #1684


Summary by cubic

Skip calling id -u on Windows to remove the confusing startup warning and keep the default GITLAB_USER_ID. Closes #1684.

Written for commit 27b5809. Summary will update on new commits.

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>
@bcouetil
bcouetil requested a review from firecow April 3, 2026 10:59

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

@firecow
firecow merged commit fe3304c into firecow:master Apr 3, 2026
14 checks passed
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` | ![age](https://developer.mend.io/api/mc/badges/age/npm/gitlab-ci-local/4.71.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/gitlab-ci-local/4.71.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/gitlab-ci-local/4.70.1/4.71.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/gitlab-ci-local/4.70.1/4.71.0?slim=true) |

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 [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1823](firecow/gitlab-ci-local#1823)
- fix(windows): skip id -u on Windows to avoid confusing startup error by [@&#8203;bcouetil](https://github.com/bcouetil) in [#&#8203;1824](firecow/gitlab-ci-local#1824)
- fix: --completion outputs wrong script name when run via Bun by [@&#8203;Paul-Goulpie](https://github.com/Paul-Goulpie) in [#&#8203;1826](firecow/gitlab-ci-local#1826)
- feat: improve --list-csv and --list output by [@&#8203;bcouetil](https://github.com/bcouetil) in [#&#8203;1810](firecow/gitlab-ci-local#1810)
- chore(deps): update all non-major by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1830](firecow/gitlab-ci-local#1830)
- chore(deps): lock file maintenance by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1827](firecow/gitlab-ci-local#1827)
- fix(deps): update dependency re2js to v2 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1828](firecow/gitlab-ci-local#1828)

#### New Contributors

- [@&#8203;Paul-Goulpie](https://github.com/Paul-Goulpie) made their first contribution in [#&#8203;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=-->
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.

[Windows] Command failed with exit code 1: id -u [with suggested fix]

2 participants