Skip to content

Commit

Permalink
pkg: remove usage of qgo in go generate
Browse files Browse the repository at this point in the history
We no longer update by default.

This also improves tests.

Signed-off-by: Marcel van Lohuizen <mpvl@golang.org>
Change-Id: I8f1d1cfb9cadbf63234701c19c315eff77b307cb
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/536072
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Paul Jolly <paul@myitcv.io>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
  • Loading branch information
mpvl committed Apr 14, 2022
1 parent 5c43a87 commit 05f74a8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/qgo/qgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func init() {
func main() {
flag.Parse()

genLine = "//go:generate go run cuelang.org/go/internal/cmd/qgo " + strings.Join(os.Args[1:], " ")
genLine = "// Generated with go run cuelang.org/go/internal/cmd/qgo " + strings.Join(os.Args[1:], " ")

args := flag.Args()
if len(args) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/encoding/hex/hex.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -stripstr -exclude=Decode$,Encode$,EncodeToString,Dumper extract encoding/hex
// Generated with go run cuelang.org/go/internal/cmd/qgo -stripstr -exclude=Decode$,Encode$,EncodeToString,Dumper extract encoding/hex

package hex

Expand Down
2 changes: 1 addition & 1 deletion pkg/encoding/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -exclude=Compact,Indent,arshal$ extract encoding/json
// Generated with go run cuelang.org/go/internal/cmd/qgo -exclude=Compact,Indent,arshal$ extract encoding/json

package json

Expand Down
2 changes: 1 addition & 1 deletion pkg/html/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -stripstr extract html
// Generated with go run cuelang.org/go/internal/cmd/qgo -stripstr extract html

package html

Expand Down
2 changes: 1 addition & 1 deletion pkg/math/big.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -exclude= extract math/big
// Generated with go run cuelang.org/go/internal/cmd/qgo -exclude= extract math/big

package math

Expand Down
2 changes: 1 addition & 1 deletion pkg/regexp/regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -exclude=Compile,Append,Reader,Match$ -stripstr extract regexp
// Generated with go run cuelang.org/go/internal/cmd/qgo -exclude=Compile,Append,Reader,Match$ -stripstr extract regexp

package regexp

Expand Down
2 changes: 1 addition & 1 deletion pkg/strconv/strconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -exclude=Append,Unquote,Itoa,CanBackquote,FormatComplex extract strconv
// Generated with go run cuelang.org/go/internal/cmd/qgo -exclude=Append,Unquote,Itoa,CanBackquote,FormatComplex extract strconv

package strconv

Expand Down
2 changes: 1 addition & 1 deletion pkg/strings/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -exclude=Rune$,Func$,^Map$,Special$,EqualFold,Byte,Title$,ToValidUTF8,All$ extract strings
// Generated with go run cuelang.org/go/internal/cmd/qgo -exclude=Rune$,Func$,^Map$,Special$,EqualFold,Byte,Title$,ToValidUTF8,All$ extract strings

package strings

Expand Down
2 changes: 1 addition & 1 deletion pkg/text/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate go run cuelang.org/go/internal/cmd/qgo -exclude=Escaper$,Must,Parse -stripstr extract text/template
// Generated with go run cuelang.org/go/internal/cmd/qgo -exclude=Escaper$,Must,Parse -stripstr extract text/template

package template

Expand Down

0 comments on commit 05f74a8

Please sign in to comment.