diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8cea6e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.hermit diff --git a/cmd/happy/main.go b/cmd/happy/main.go index cee7722..a98d210 100644 --- a/cmd/happy/main.go +++ b/cmd/happy/main.go @@ -9,7 +9,6 @@ import ( "go/types" "net/http" "os" - "path" "regexp" "strings" "sync" @@ -449,7 +448,7 @@ func (g *genContext) TypeRef(t types.Type) (pkgRef, ref string) { if pkgRef == g.pkg.PkgPath { pkgRef = "" } else { - ref = path.Base(pkgRef) + "." + ref + ref = named.Obj().Pkg().Name() + "." + ref } return }