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

Unknown groupid issue on OS X #125

Closed
peterloron opened this issue Jan 14, 2019 · 2 comments
Closed

Unknown groupid issue on OS X #125

peterloron opened this issue Jan 14, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@peterloron
Copy link

I'm running chezmoi 1.0.0 (via homebrew) on MacOS X 10.14.2. When I try to add a file, I get this error:

chezmoi: group: unknown groupid 1493692218

Our machines are joined to an AD domain. I looked at issue #65 and #72, however it looks like this may only resolve the issue on Linux.

Anything I can do to assist, please let me know. Thanks!

@twpayne twpayne self-assigned this Jan 14, 2019
@twpayne
Copy link
Owner

twpayne commented Jan 14, 2019

Thanks for the bug report!

The underlying issue is that os/user.LookupGroupId is only reliable when CGO is enabled. chezmoi is built with goreleaser (awesome project!) which does not support CGO when cross-compiling. chezmoi uses goreleaser on travis-ci.org (running Linux) and so can use CGO when building Linux binaries, but not macOS binaries.

I've updated the code to silently ignore errors from os/user.LookupGroupId if CGO is disabled. This means that the .chezmoi.group template variable will not be available, but frankly it's unlikely that you're using it anyway :)

I'll do a new release including this fix within the next 12 hours.

Thanks again for the detailed bug report!

@twpayne twpayne added the bug Something isn't working label Jan 15, 2019
@peterloron
Copy link
Author

Awesome! Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants