From 4f080a715223d063958e5a181a900cf3e9bb0160 Mon Sep 17 00:00:00 2001 From: Ashok Pon Kumar Date: Fri, 2 Oct 2020 00:49:46 +0530 Subject: [PATCH 1/2] Add go.mod and pin dependencies Signed-off-by: Ashok Pon Kumar --- specs-go/go.mod | 5 +++++ specs-go/go.sum | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 specs-go/go.mod create mode 100644 specs-go/go.sum diff --git a/specs-go/go.mod b/specs-go/go.mod new file mode 100644 index 000000000..4413134bb --- /dev/null +++ b/specs-go/go.mod @@ -0,0 +1,5 @@ +module github.com/opencontainers/image-spec/specs-go + +go 1.15 + +require github.com/opencontainers/go-digest v1.0.0 diff --git a/specs-go/go.sum b/specs-go/go.sum new file mode 100644 index 000000000..30f45e97f --- /dev/null +++ b/specs-go/go.sum @@ -0,0 +1,2 @@ +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= From 4d865bcb74de2524d18e5919dcacb81a8b6c8ea4 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 2 Dec 2021 14:28:39 -0500 Subject: [PATCH 2/2] go: have the go.mod at top-level Closes #810 Signed-off-by: Vincent Batts --- go.mod | 11 +++++++++++ go.sum | 19 +++++++++++++++++++ specs-go/go.mod | 5 ----- specs-go/go.sum | 2 -- 4 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 go.mod create mode 100644 go.sum delete mode 100644 specs-go/go.mod delete mode 100644 specs-go/go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..06049f232 --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module github.com/opencontainers/image-spec + +go 1.11 + +require ( + github.com/opencontainers/go-digest v1.0.0 + github.com/pkg/errors v0.9.1 + github.com/russross/blackfriday v1.6.0 + github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 + github.com/xeipuuv/gojsonschema v1.2.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 000000000..5bf8fb578 --- /dev/null +++ b/go.sum @@ -0,0 +1,19 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= +github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= +github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= +github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= diff --git a/specs-go/go.mod b/specs-go/go.mod deleted file mode 100644 index 4413134bb..000000000 --- a/specs-go/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module github.com/opencontainers/image-spec/specs-go - -go 1.15 - -require github.com/opencontainers/go-digest v1.0.0 diff --git a/specs-go/go.sum b/specs-go/go.sum deleted file mode 100644 index 30f45e97f..000000000 --- a/specs-go/go.sum +++ /dev/null @@ -1,2 +0,0 @@ -github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= -github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=