~evanj/cms

f2f685a2696c52143366cf6518ef6c236b70b905 — Evan M Jones 6 months ago 11f342f
Chore(printf+mod): Go vet fix and whatever changed in go.mod.
5 files changed, 11 insertions(+), 3 deletions(-)

M cms_test.go
M go.mod
M go.sum
M internal/c/contenttype/contenttype.go
M vendor/modules.txt
M cms_test.go => cms_test.go +2 -1
@@ 1,1 1,2 @@
package main
// cms is a free and open source content management system.
package main_test

M go.mod => go.mod +2 -0
@@ 7,5 7,7 @@ require (
	github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
	github.com/go-playground/assert/v2 v2.0.1
	github.com/go-sql-driver/mysql v1.5.0
	golang.org/x/crypto v0.0.0-20200320181102-891825fb96df // indirect
	golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
	golang.org/x/text v0.3.2 // indirect
)

M go.sum => go.sum +5 -0
@@ 13,6 13,8 @@ github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LB
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d h1:1ZiEyfaQIg3Qh0EoqpwAakHVhecoE5wlSg5GjnafJGw=
golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200320181102-891825fb96df h1:lDWgvUvNnaTnNBc/dwOty86cFeKoKWbwy2wQj0gIxbU=
golang.org/x/crypto v0.0.0-20200320181102-891825fb96df/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a h1:WXEvlFVvvGxCJLG6REjsT03iWnKLEWinaScsxF2Vm2o=
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=


@@ 20,5 22,8 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=

M internal/c/contenttype/contenttype.go => internal/c/contenttype/contenttype.go +1 -1
@@ 51,7 51,7 @@ func (c *ContentType) tree(w http.ResponseWriter, r *http.Request) (user.User, s
	spaceID := r.FormValue("space")
	space, err := c.db.SpaceGet(user, spaceID)
	if err != nil {
		return nil, nil, fmt.Errorf("failed to retrieve space for id %d", spaceID)
		return nil, nil, fmt.Errorf("failed to retrieve space for id %s", spaceID)
	}

	return user, space, nil

M vendor/modules.txt => vendor/modules.txt +1 -1
@@ 8,7 8,7 @@ github.com/dgrijalva/jwt-go
github.com/go-playground/assert/v2
# github.com/go-sql-driver/mysql v1.5.0
github.com/go-sql-driver/mysql
# golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
# golang.org/x/crypto v0.0.0-20200320181102-891825fb96df
golang.org/x/crypto/bcrypt
golang.org/x/crypto/blowfish
# golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a