You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go version
go version weekly.2012-01-27 +82bac8cdab6b
$ go fix .
camlistored.go:90:49: expected '}', found newline
camlistored.go:93:15: expected ';', found ':'
camlistored.go:94:11: illegal label declaration
camlistored.go:95:2: expected operand, found '}'
File (valid from r60) is attached.
Line 90 is the NotAfter line here, ending in a trailing comment:
template := x509.Certificate{
SerialNumber: new(big.Int).SetInt64(0),
Subject: pkix.Name{
CommonName: hostname,
Organization: []string{hostname},
},
NotBefore: time.SecondsToUTC(now - 300),
NotAfter: time.SecondsToUTC(now + 60*60*24*365), // valid for 1 year.
SubjectKeyId: []byte{1, 2, 3, 4},
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
}
Assuming this is a go/ast thing, so passing it first to Robert.
Verified that the issue goes away with pending CL 5598054:
go tool fix camlistored.go
camlistored.go: fixed error time+fileinfo
This is a duplicate of issue #1505.
Attachments:
The text was updated successfully, but these errors were encountered: