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

add label manpage and fix help #189

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

Mashimiao
Copy link

Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com

pair := strings.Split(env, "=")
if len(pair) != 2 {
return fmt.Errorf("incorrectly specified environment variable: %s", env)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need this check, since variables may contain equal signs:

$ busybox | head -n1
BusyBox v1.24.2 (2016-07-08 12:03:25 PDT) multi-call binary.
$ busybox sh -c 'A=B=C; echo $A'
B=C

The current runtime-spec only talks about limits to the variable name (and even there I think the spec is too strict).

Copy link
Author

Choose a reason for hiding this comment

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

OK, removed.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
@Mashimiao Mashimiao force-pushed the man-add-label-and-fix-help branch from 568b273 to 5de50e5 Compare August 16, 2016 01:11
@wking
Copy link
Contributor

wking commented Aug 16, 2016 via email

@mrunalp
Copy link
Contributor

mrunalp commented Aug 16, 2016

LGTM

@mrunalp mrunalp merged commit 6aeb752 into opencontainers:master Aug 16, 2016
wking pushed a commit to wking/ocitools-v2 that referenced this pull request Aug 16, 2016
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>

Backported to v1.0.0.rc1 from 5de50e5 opencontainers#189 (cherry-pick applied
cleanly).

Signed-off-by: W. Trevor King <wking@tremily.us>
wking added a commit to wking/ocitools-v2 that referenced this pull request Sep 1, 2016
* v1.0.0.rc1:
  man/ocitools.1: Replace "**...(1)**" with "**...**(1)"
  add namespace check for uid/gid mappings
  validation: add linux resource check
  add label manpage and fix help
  support setting oom_score_adj
  generate: fix mount-cgroups bug
  completions: update based on generate help message
  update urfave/cli package to v1.18.0
  generate: optimize namespace setup log and fix manpage
  change param type of AddProcessAdditionalGid
  remove unnecessary return error value
  Modify generate API
  Add Travis CI badge to README
  generate: fix capability.List() for cap_last_cap not exist
  generate: remove unnecessary spec initialization
  generate: fix tmpfs adding based on manpage
  Check CAP_LAST_CAP while setting privileged
  generate: Remove superfluous err check from Save

Signed-off-by: W. Trevor King <wking@tremily.us>

Conflicts:
	cmd/ocitools/generate.go
	man/ocitools-generate.1.md

The conflicts are because:

* support setting oom_score_adj (opencontainers#176, opencontainers#185)
* add label manpage and fix help (opencontainers#189, opencontainers#190)

have landed in master and been backported to v1.0.0.rc1 since this
branch split from master.  They wouldn't have happend if I'd rebased
this branch on the current master before merging v1.0.0.rc1, but then
I'd have to repeat the initial dance done with eac0762 (Merge commit
'30e2ea2', 2016-08-02) and b45bebd (Merge commit '6acca9e',
2016-08-02).
@Mashimiao Mashimiao deleted the man-add-label-and-fix-help branch November 14, 2016 09:26
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.

3 participants