Skip to content

Commit 4f95315

Browse files
committed
vendor: update go-mtree and image-spec
In order to fix a slight goof on the side of upstream (image-spec) we have to add a patch that includes opencontainers/image-spec#460 (which was _meant_ to be in v1.0.0-rc3 because the relevant spec change was included). Signed-off-by: Aleksa Sarai <[email protected]>
1 parent f020e71 commit 4f95315

File tree

12 files changed

+104
-34
lines changed

12 files changed

+104
-34
lines changed

glide.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import:
1313
subpackages:
1414
- generate
1515
- package: github.com/opencontainers/image-spec
16-
version: v1.0.0-rc2
16+
version: v1.0.0-rc3
1717
subpackages:
1818
- specs-go
1919
- package: github.com/opencontainers/runtime-spec
2020
version: v1.0.0-rc2
2121
subpackages:
2222
- specs-go
2323
- package: github.com/vbatts/go-mtree
24-
version: master
24+
version: ~v0.3.0
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 6ac650626feb8f806af721c4a024b2d9bb360da5 Mon Sep 17 00:00:00 2001
2+
From: Lei Jitang <[email protected]>
3+
Date: Thu, 17 Nov 2016 14:04:59 +0800
4+
Subject: [PATCH 1/2] specs-go: add labels to config.go
5+
6+
Signed-off-by: Lei Jitang <[email protected]>
7+
---
8+
specs-go/v1/config.go | 3 +++
9+
1 file changed, 3 insertions(+)
10+
11+
diff --git a/specs-go/v1/config.go b/specs-go/v1/config.go
12+
index d42383622695..894cc6cb70f5 100644
13+
--- a/specs-go/v1/config.go
14+
+++ b/specs-go/v1/config.go
15+
@@ -45,6 +45,9 @@ type ImageConfig struct {
16+
17+
// WorkingDir sets the current working directory of the entrypoint process in the container.
18+
WorkingDir string `json:"WorkingDir,omitempty"`
19+
+
20+
+ // Labels contains arbitrary metadata for the container.
21+
+ Labels map[string]string `json:"labels,omitempty"`
22+
}
23+
24+
// RootFS describes a layer content addresses
25+
--
26+
2.11.0
27+

hack/patch.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,14 @@ patch() {
2727
command patch -d "$VENDOR/$project" -p1 <"$SCRIPTDIR/$patch"
2828
}
2929

30+
# These are patches that I wrote as part of vbatts/go-mtree#96 (with a few
31+
# changes to port the code to using pkg/unpriv). I'm doubtful that this code
32+
# will ever be upstreamed -- at least not until pkg/unpriv is split into a
33+
# separate project.
3034
patch github.com/vbatts/go-mtree gomtree-0001-entries-prepend-all-hierarchies-with-keyword-metadat.patch
3135
patch github.com/vbatts/go-mtree gomtree-0002-walk-implement-unprivileged-walking.patch
36+
37+
# Backport of opencontainers/image-spec#460. This patch wasn't included in
38+
# v1.0.0-rc3 even though the change to the specification was, resulting in a
39+
# mismatch. While upstream figures out a way to fix this, just patch it.
40+
patch github.com/opencontainers/image-spec imagespec-0001-specs-go-add-labels-to-config.go.patch

vendor/github.com/opencontainers/image-spec/specs-go/v1/config.go

Lines changed: 22 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/image-spec/specs-go/v1/descriptor.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/image-spec/specs-go/v1/layout.go

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/image-spec/specs-go/v1/manifest.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/image-spec/specs-go/v1/manifest_list.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/image-spec/specs-go/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)