Skip to content

Commit

Permalink
Update go-dockerlibrary to fix "error: assignment to entry in nil map"
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jun 1, 2017
1 parent 1a56c5a commit af092fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bashbrew/go/vendor/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"importpath": "github.com/docker-library/go-dockerlibrary",
"repository": "https://github.com/docker-library/go-dockerlibrary",
"revision": "08c08a33e126be9494d2179427b58baca740a91a",
"revision": "663a091da13fc848e27a16048fb39c4e4067056e",
"branch": "master"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ func (manifest Manifest2822) String() string {
}

func (entry *Manifest2822Entry) SetGitRepo(arch string, repo string) {
if entry.Paragraph.Values == nil {
entry.Paragraph.Values = map[string]string{}
}
entry.Paragraph.Values[arch+"-GitRepo"] = repo
}

Expand All @@ -221,6 +224,9 @@ func (entry Manifest2822Entry) ArchGitFetch(arch string) string {
}

func (entry *Manifest2822Entry) SetGitCommit(arch string, commit string) {
if entry.Paragraph.Values == nil {
entry.Paragraph.Values = map[string]string{}
}
entry.Paragraph.Values[arch+"-GitCommit"] = commit
}

Expand Down

0 comments on commit af092fb

Please sign in to comment.