Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Commit

Permalink
Bug 1285197 - relocate github.com/taskcluster/taskcluster-client-go/t…
Browse files Browse the repository at this point in the history
…cclient to github.com/taskcluster/taskcluster-client-go
  • Loading branch information
petemoore committed Jul 7, 2016
1 parent 9f23800 commit cab089c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -229,7 +229,7 @@ package main

import (
"encoding/json"
"github.com/taskcluster/taskcluster-client-go/tcclient"
tcclient "github.com/taskcluster/taskcluster-client-go"
)

type (
Expand Down
8 changes: 4 additions & 4 deletions jsonschema.go
Expand Up @@ -300,20 +300,20 @@ func (jsonSubSchema *JsonSubSchema) typeDefinition(topLevel bool, extraPackages
if f := jsonSubSchema.Format; f != nil {
if *f == "date-time" {
typ = "tcclient.Time"
extraPackages["github.com/taskcluster/taskcluster-client-go/tcclient"] = true
extraPackages["tcclient \"github.com/taskcluster/taskcluster-client-go\""] = true
}
}
}
switch typ {
case "json.RawMessage":
extraPackages["encoding/json"] = true
extraPackages["\"encoding/json\""] = true
if topLevel {
// Special case: we have here a top level RawMessage such as
// queue.PostArtifactRequest - therefore need to implement
// Marhsal and Unmarshal methods. See:
// http://play.golang.org/p/FKHSUmWVFD vs
// http://play.golang.org/p/erjM6ptIYI
extraPackages["errors"] = true
extraPackages["\"errors\""] = true
rawMessageTypes[jsonSubSchema.TypeName] = true
}
}
Expand Down Expand Up @@ -684,7 +684,7 @@ package ` + job.Package + `
extraPackagesContent := ""
for j, k := range extraPackages {
if k {
extraPackagesContent += text.Indent("\""+j+"\"\n", "\t")
extraPackagesContent += text.Indent(""+j+"\n", "\t")
}
}

Expand Down

0 comments on commit cab089c

Please sign in to comment.