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

homedir: revamp #304

Merged
merged 1 commit into from
Feb 5, 2022
Merged

homedir: revamp #304

merged 1 commit into from
Feb 5, 2022

Conversation

kolyshkin
Copy link
Contributor

Back in the day os/user package was relied on libc functions to parse
/etc/passwd and /etc/group. This was fixed in Go 1.11 by [1] and
subsequent fixes, so there is no more need to parse /etc/passwd.

This assumes that users know when and how to use osusergo build tag
(since this is not something very new, most are).

It might make sense to note in the changelog / release notes that the
static_build tag is no longer supported, and osusergo tag should be
used instead.

[1] https://go-review.googlesource.com/c/go/+/92456

Updates: da6051a

Back in the day os/user package was relied on libc functions to parse
/etc/passwd and /etc/group. This was fixed in Go 1.11 by [1] and
subsequent fixes, so there is no more need to parse /etc/passwd.

This assumes that users know when and how to use osusergo build tag
(since this is not something very new, most are).

It might make sense to note in the changelog / release notes that the
static_build tag is no longer supported, and osusergo tag should be
used instead.

[1] https://go-review.googlesource.com/c/go/+/92456

Updates: da6051a
Signed-off-by: Kir Kolyshkin <[email protected]>
@guelfey
Copy link
Member

guelfey commented Feb 5, 2022

Thanks!

@guelfey guelfey merged commit 958b2d1 into godbus:master Feb 5, 2022
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.

None yet

2 participants