зеркало из https://github.com/golang/dep.git
Merge pull request #326 from carolynvs/rename-repo-to-source
Rename the lock field "repo" to "source"
This commit is contained in:
Коммит
7cfca5bb9c
6
lock.go
6
lock.go
|
@ -32,7 +32,7 @@ type lockedDep struct {
|
|||
Version string `json:"version,omitempty"`
|
||||
Branch string `json:"branch,omitempty"`
|
||||
Revision string `json:"revision"`
|
||||
Repository string `json:"repo,omitempty"`
|
||||
Source string `json:"source,omitempty"`
|
||||
Packages []string `json:"packages"`
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ func readLock(r io.Reader) (*Lock, error) {
|
|||
|
||||
id := gps.ProjectIdentifier{
|
||||
ProjectRoot: gps.ProjectRoot(ld.Name),
|
||||
Source: ld.Repository,
|
||||
Source: ld.Source,
|
||||
}
|
||||
l.P[i] = gps.NewLockedProject(id, v, ld.Packages)
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ func (l *Lock) MarshalJSON() ([]byte, error) {
|
|||
id := lp.Ident()
|
||||
ld := lockedDep{
|
||||
Name: string(id.ProjectRoot),
|
||||
Repository: id.Source,
|
||||
Source: id.Source,
|
||||
Packages: lp.Packages(),
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ Remove: [
|
|||
Modify: [
|
||||
{
|
||||
"name": "github.com/foo/bar",
|
||||
"repo": "+ http://github.example.com/foo/bar",
|
||||
"source": "+ http://github.example.com/foo/bar",
|
||||
"version": "+ 1.2.0",
|
||||
"branch": "- master",
|
||||
"revision": "f24338400f072ef18125ae0fbe6b06fe6d1783e7 -> 2a3a211e171803acb82d1d5d42ceb53228f51751",
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"projects": [
|
||||
{
|
||||
"name": "github.com/foo/bar",
|
||||
"repo": "http://github.example.com/foo/bar",
|
||||
"source": "http://github.example.com/foo/bar",
|
||||
"version": "1.2.0",
|
||||
"revision": "2a3a211e171803acb82d1d5d42ceb53228f51751",
|
||||
"packages": [
|
||||
|
|
|
@ -112,7 +112,7 @@ func (diff *LockDiff) Format() (string, error) {
|
|||
// TODO(carolynvs) this should be moved to gps
|
||||
type LockedProjectDiff struct {
|
||||
Name gps.ProjectRoot `json:"name"`
|
||||
Source *StringDiff `json:"repo,omitempty"`
|
||||
Source *StringDiff `json:"source,omitempty"`
|
||||
Version *StringDiff `json:"version,omitempty"`
|
||||
Branch *StringDiff `json:"branch,omitempty"`
|
||||
Revision *StringDiff `json:"revision,omitempty"`
|
||||
|
|
Загрузка…
Ссылка в новой задаче