Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

pause: Rewrite pause binary in go. #434

Merged

Conversation

jodh-intel
Copy link
Contributor

Requiring a statically-linked C program causes problems on some
platforms (such as RHEL).

Fixes #433.

Signed-off-by: James O. D. Hunt [email protected]

@coveralls
Copy link

coveralls commented Aug 17, 2017

Coverage Status

Coverage remained the same at 55.39% when pulling ba8ee8c on jodh-intel:rewrite-pause-binary-in-go into fe2063a on clearcontainers:master.

@coveralls
Copy link

coveralls commented Aug 17, 2017

Coverage Status

Coverage remained the same at 55.39% when pulling ba8ee8c on jodh-intel:rewrite-pause-binary-in-go into fe2063a on clearcontainers:master.

@sboeuf
Copy link
Contributor

sboeuf commented Aug 17, 2017

LGTM

Approved with PullApprove

@jodh-intel
Copy link
Contributor Author

Hi @iphutch - please could you review?

@grahamwhaley
Copy link
Contributor

grahamwhaley commented Aug 17, 2017

lgtm

Approved with PullApprove Approved with PullApprove

@gorozco1
Copy link
Contributor

@jodh-intel in Makefile please remove

override LIBS +=
override CFLAGS += -Os -Wall -Wextra -static

Copy link

@iphutch iphutch left a comment

Choose a reason for hiding this comment

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

lgtm

Requiring a statically-linked C program causes problems on some
platforms (such as RHEL).

Fixes clearcontainers#433.

Signed-off-by: James O. D. Hunt <[email protected]>
@jodh-intel jodh-intel force-pushed the rewrite-pause-binary-in-go branch from ba8ee8c to 9f3ca75 Compare August 17, 2017 16:22
@jodh-intel
Copy link
Contributor Author

@gorozco1 - good catch! Done.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 55.39% when pulling 9f3ca75 on jodh-intel:rewrite-pause-binary-in-go into 4888fcf on clearcontainers:master.

1 similar comment
@coveralls
Copy link

coveralls commented Aug 17, 2017

Coverage Status

Coverage remained the same at 55.39% when pulling 9f3ca75 on jodh-intel:rewrite-pause-binary-in-go into 4888fcf on clearcontainers:master.

@gorozco1
Copy link
Contributor

gorozco1 commented Aug 17, 2017

👍 merge, merg, merge!!

Approved with PullApprove

@gorozco1 gorozco1 merged commit 8f4f4c2 into clearcontainers:master Aug 17, 2017
jodh-intel added a commit to jodh-intel/runtime that referenced this pull request Sep 25, 2017
The script ".ci/go-static-checks.sh" was trying to exclude all vendor
files and files below pause/. However, the logic was incorrect meaning
the only file actually being gofmt-checked was pause.go!

Since the pause binary is now written in go [1], in fact we only want
to exclude "vendor/*" files.

---
[1] - clearcontainers#434

Fixes clearcontainers#624.

Signed-off-by: James O. D. Hunt <[email protected]>
jodh-intel added a commit to jodh-intel/runtime that referenced this pull request Sep 25, 2017
The script ".ci/go-static-checks.sh" was trying to exclude all vendor
files and files below pause/. However, the logic was incorrect meaning
the only file actually being gofmt-checked was pause.go!

Since the pause binary is now written in go [1], in fact we only want
to exclude "vendor/*" files.

---
[1] - clearcontainers#434

Fixes clearcontainers#624.

Signed-off-by: James O. D. Hunt <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants