Skip to content

Commit 05f74a8

Browse files
committed
pkg: remove usage of qgo in go generate
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>
1 parent 5c43a87 commit 05f74a8

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

internal/cmd/qgo/qgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func init() {
8080
func main() {
8181
flag.Parse()
8282

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

8585
args := flag.Args()
8686
if len(args) == 0 {

pkg/encoding/hex/hex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package hex
2222

pkg/encoding/json/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package json
2222

pkg/html/html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package html
2222

pkg/math/big.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package math
2222

pkg/regexp/regexp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package regexp
2222

pkg/strconv/strconv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package strconv
2222

pkg/strings/strings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package strings
2222

pkg/text/template/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

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

2121
package template
2222

0 commit comments

Comments
 (0)