Skip to content

Add osusergo build tar for static binaries#37500

Merged
thaJeztah merged 1 commit intomoby:masterfrom
kolyshkin:osusergo
Jul 19, 2018
Merged

Add osusergo build tar for static binaries#37500
thaJeztah merged 1 commit intomoby:masterfrom
kolyshkin:osusergo

Conversation

@kolyshkin
Copy link
Contributor

Go 1.11 includes a fix to os/user to be working in a static binary
(fixing golang/go#23265). The fix requires
osusergo build tag to be set for static binaries, which is what
this commit adds (also for containerd).

See also: containerd/containerd#2476

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

one nit, but LGTM after that's been addressed

hack/make.sh Outdated
Copy link
Member

Choose a reason for hiding this comment

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

can you make this sorted alphabetically?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, done

Go 1.11 includes a fix to os/user to be working in a static binary
(fixing golang/go#23265). The fix requires
`osusergo` build tag to be set for static binaries, which is what
this commit adds (also for containerd).

[v2: sort build tags alphabetically]

Signed-off-by: Kir Kolyshkin <[email protected]>
@codecov
Copy link

codecov bot commented Jul 19, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@7f91801). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #37500   +/-   ##
=========================================
  Coverage          ?   34.95%           
=========================================
  Files             ?      610           
  Lines             ?    44886           
  Branches          ?        0           
=========================================
  Hits              ?    15690           
  Misses            ?    27077           
  Partials          ?     2119

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🦁

@kolyshkin
Copy link
Contributor Author

Obviously, it does nothing for Go < 1.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants