From 9f7fe411dea80a9f863311d7a86c67351bc6b9a8 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 9 Jan 2018 20:35:30 +0530 Subject: [PATCH] docs: correct the metadata example in Gopkg.toml.md --- docs/Gopkg.toml.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/Gopkg.toml.md b/docs/Gopkg.toml.md index c17e14fe65..cb0253e810 100644 --- a/docs/Gopkg.toml.md +++ b/docs/Gopkg.toml.md @@ -75,8 +75,8 @@ They are respected by dep whether coming from the Gopkg.toml of the current proj # Optional: an alternate location (URL or import path) for the project's source. source = "https://github.com/myfork/package.git" - # Optional: metadata about the constraint or override that could be used by other independent systems - [metadata] + # Optional: metadata about the constraint that could be used by other independent systems + [constraint.metadata] key1 = "value that convey data to other systems" system1-data = "value that is used by a system" system2-data = "value that is used by another system" @@ -100,8 +100,8 @@ An `override` has the same structure as a `constraint` declaration, but supersed # Optional: specifying an alternate source location as an override will enforce that the alternate location is used for that project, regardless of what source location any dependent projects specify. source = "https://github.com/myfork/package.git" - # Optional: metadata about the constraint or override that could be used by other independent systems - [metadata] + # Optional: metadata about the override that could be used by other independent systems + [override.metadata] key1 = "value that convey data to other systems" system1-data = "value that is used by a system" system2-data = "value that is used by another system" @@ -156,7 +156,7 @@ codename = "foo" name = "github.com/user/project" version = "1.0.0" - [metadata] + [constraint.metadata] property1 = "value1" property2 = 10 @@ -169,6 +169,6 @@ codename = "foo" name = "github.com/x/y" version = "2.4.0" - [metadata] + [override.metadata] propertyX = "valueX" ```