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

Update runtime-spec to current upstream #1036

Merged
merged 3 commits into from Sep 13, 2016
Merged

Update runtime-spec to current upstream #1036

merged 3 commits into from Sep 13, 2016

Conversation

athomason
Copy link
Contributor

@athomason athomason commented Sep 11, 2016

runc currently fails to build against the upstream version of runtime-spec/specs-go:

# github.com/opencontainers/runc
./spec.go:189: cannot use specs.Linux literal (type specs.Linux) as type *specs.Linux in field value

on account of opencontainers/runtime-spec@6323157#diff-7f24d60f0cbb9c433e165467e3d34838R25

This PR updates the dependency to current runtime-spec master, fixes the type mismatch, adds nil pointer checks, and updates spec config paths.

Fixes #1035

Signed-off-by: Adam Thomason ad@mthomason.net

runc currently fails to build against the upstream version of
runtime-spec/specs-go.

```
# github.com/opencontainers/runc
./spec.go:189: cannot use specs.Linux literal (type specs.Linux) as type *specs.Linux in field value
```

on account of opencontainers/runtime-spec@6323157#diff-7f24d60f0cbb9c433e165467e3d34838R25

This commit updates the dependency to current runtime-spec master and
fixes the type mismatch.

Fixes #1035

Signed-off-by: Adam Thomason <ad@mthomason.net>
@cyphar
Copy link
Member

cyphar commented Sep 11, 2016

You'll need to fix the failing tests by making them more pointer-friendly (check for nil).

Signed-off-by: Adam Thomason <ad@mthomason.net>
Tracks schema/schema.json → schema/config-schema.json rename in
opencontainers/runtime-spec@59ede1a

Signed-off-by: Adam Thomason <ad@mthomason.net>
@athomason
Copy link
Contributor Author

@cyphar Sure, done. Also fixed up a config path. CI now passes.

@crosbymichael
Copy link
Member

crosbymichael commented Sep 12, 2016

LGTM

Approved with PullApprove

1 similar comment
@hqhq
Copy link
Contributor

hqhq commented Sep 13, 2016

LGTM

Approved with PullApprove

@hqhq hqhq merged commit 5be3ce2 into opencontainers:master Sep 13, 2016
@athomason athomason deleted the 1035-update-runtime-spec branch September 13, 2016 08:17
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.

runc fails to compile against current runtime-spec
5 participants