Skip to content

homedir: revamp#304

Merged
guelfey merged 1 commit intogodbus:masterfrom
kolyshkin:homedir
Feb 5, 2022
Merged

homedir: revamp#304
guelfey merged 1 commit intogodbus:masterfrom
kolyshkin:homedir

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.

2 participants