From a78004a0e3842087fc3e47395fd18d9ea8bf25c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 3 Aug 2023 10:50:37 +0100 Subject: [PATCH] drop cuelang.org/go as a dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Its only use in cmd/cueckoo was for errors, which is unnecessary, given that we don't actually create any custom CUE errors nor use anything that creates them such as the evaluator. The only other use was tools.go, for updateTxtarTests, but that was removed in the upstream cue-lang/cue repo in July 2022. We will sync the CI setup sooner or later, but for now, removing the custom command which is not even used is very easy. Signed-off-by: Daniel Martí Change-Id: Ide6777d86228a573887327fbce9511b1d2d39e48 Dispatch-Trailer: {"type":"trybot","CL":557232,"patchset":3,"ref":"refs/changes/32/557232/3","targetBranch":"master"} --- cmd/cueckoo/cmd/core.go | 36 ++-------------------- cmd/cueckoo/cmd/main.go | 6 +--- go.mod | 16 ---------- go.sum | 45 ---------------------------- internal/ci/ci_tool.cue | 66 ----------------------------------------- tools.go | 22 -------------- 6 files changed, 4 insertions(+), 187 deletions(-) delete mode 100644 tools.go diff --git a/cmd/cueckoo/cmd/core.go b/cmd/cueckoo/cmd/core.go index a591ea9..e65a434 100644 --- a/cmd/cueckoo/cmd/core.go +++ b/cmd/cueckoo/cmd/core.go @@ -20,16 +20,13 @@ package cmd import ( - "bytes" "context" + "errors" + "fmt" "io" "os" - "strings" - "cuelang.org/go/cue/errors" "github.com/spf13/cobra" - "golang.org/x/text/language" - "golang.org/x/text/message" ) type panicError struct { @@ -129,37 +126,10 @@ func exitOnErr(cmd *Command, err error, fatal bool) { return } - // Link x/text as our localizer. - p := message.NewPrinter(getLang()) - format := func(w io.Writer, format string, args ...interface{}) { - p.Fprintf(w, format, args...) - } - - cwd, _ := os.Getwd() - - w := &bytes.Buffer{} - errors.Print(w, err, &errors.Config{ - Format: format, - Cwd: cwd, - ToSlash: inTest, - }) - - b := w.Bytes() - _, _ = cmd.Stderr().Write(b) + fmt.Fprintln(os.Stderr, err) if fatal { exit() } } -var inTest = false - -func getLang() language.Tag { - loc := os.Getenv("LC_ALL") - if loc == "" { - loc = os.Getenv("LANG") - } - loc = strings.Split(loc, ".")[0] - return language.Make(loc) -} - type runFunction func(cmd *Command, args []string) error diff --git a/cmd/cueckoo/cmd/main.go b/cmd/cueckoo/cmd/main.go index 4788d58..a0347c0 100644 --- a/cmd/cueckoo/cmd/main.go +++ b/cmd/cueckoo/cmd/main.go @@ -19,7 +19,6 @@ import ( "fmt" "os" - "cuelang.org/go/cue/errors" "github.com/spf13/cobra" ) @@ -33,13 +32,10 @@ var ( // using the same version of Cobra) for consistency. Panic is used as a // strategy for early-return from any running command. func Main() int { - cwd, _ := os.Getwd() err := mainErr(context.Background(), os.Args[1:]) if err != nil { if err != errPrintedError { - errors.Print(os.Stderr, err, &errors.Config{ - Cwd: cwd, - }) + fmt.Fprintln(os.Stderr, err) } return 1 } diff --git a/go.mod b/go.mod index 7760386..c20e2e0 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/cue-sh/tools go 1.20 require ( - cuelang.org/go v0.5.0 github.com/google/go-cmp v0.5.9 github.com/google/go-github/v53 v53.2.0 github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 @@ -17,28 +16,13 @@ require ( require ( github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 // indirect github.com/cloudflare/circl v1.3.3 // indirect - github.com/cockroachdb/apd/v2 v2.0.2 // indirect - github.com/emicklei/proto v1.12.1 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/uuid v1.3.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/kr/pretty v0.2.1 // indirect - github.com/kr/text v0.2.0 // indirect - github.com/lib/pq v1.10.2 // indirect - github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/protocolbuffers/txtpbfmt v0.0.0-20230730201308-0c31dbd32b9f // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.7.0 // indirect golang.org/x/crypto v0.11.0 // indirect - golang.org/x/mod v0.12.0 // indirect golang.org/x/net v0.13.0 // indirect golang.org/x/sys v0.10.0 // indirect - golang.org/x/tools v0.11.1 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.31.0 // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 92492cc..4058df3 100644 --- a/go.sum +++ b/go.sum @@ -1,18 +1,9 @@ -cuelang.org/go v0.5.0 h1:D6N0UgTGJCOxFKU8RU+qYvavKNsVc/+ZobmifStVJzU= -cuelang.org/go v0.5.0/go.mod h1:okjJBHFQFer+a41sAe2SaGm1glWS8oEb6CmJvn5Zdws= github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs= github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= -github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/emicklei/proto v1.12.1 h1:6n/Z2pZAnBwuhU66Gs8160B8rrrYKo7h2F2sCOnNceE= -github.com/emicklei/proto v1.12.1/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN9yvjX0A= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= @@ -25,33 +16,8 @@ github.com/google/go-github/v53 v53.2.0 h1:wvz3FyF53v4BK+AsnvCmeNhf8AkTaeh2SoYu/ github.com/google/go-github/v53 v53.2.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8= -github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= -github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= -github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de h1:D5x39vF5KCwKQaw+OC9ZPiLVHXz3UFw2+psEX+gYcto= -github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de/go.mod h1:kJun4WP5gFuHZgRjZUWWuH1DTxCtxbHDOIJsudS8jzY= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/protocolbuffers/txtpbfmt v0.0.0-20230730201308-0c31dbd32b9f h1:8SXWXWZNgCQbk7h0RWYK6BAWEQPQhFzLRvEoal4skDo= -github.com/protocolbuffers/txtpbfmt v0.0.0-20230730201308-0c31dbd32b9f/go.mod h1:jgxiZysxFPM+iWKwQwPR+y+Jvo54ARd4EisXxKYpB5c= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 h1:17JxqqJY66GmZVHkmAsGEkcIu0oCe3AM420QDgGwZx0= github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466/go.mod h1:9dIRpgIY7hVhoqfe0/FcYp0bpInZaT7dc3BYOprrIUE= @@ -59,9 +25,6 @@ github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/build v0.0.0-20230803004431-0ffd0a3c2eeb h1:OZVITzrlw1c7/06dovaxuU7ENj0Yvcnp9MaFL4KBksU= golang.org/x/build v0.0.0-20230803004431-0ffd0a3c2eeb/go.mod h1:BSNTRjnkSrSRPGSoC0mMk4FQJ++jXO0zkfroNK5pyMU= @@ -73,8 +36,6 @@ golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -120,8 +81,6 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.11.1 h1:ojD5zOW8+7dOGzdnNgersm8aPfcDjhMp12UfG93NIMc= -golang.org/x/tools v0.11.1/go.mod h1:anzJrxPjNtfgiYQYirP2CPGzGLxrH2u2QBhn6Bf3qY8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -131,8 +90,4 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/ci/ci_tool.cue b/internal/ci/ci_tool.cue index 63e116b..cc56b9e 100644 --- a/internal/ci/ci_tool.cue +++ b/internal/ci/ci_tool.cue @@ -19,7 +19,6 @@ import ( "encoding/yaml" - "tool/exec" "tool/file" "github.com/cue-sh/tools/internal/ci/repo" @@ -67,68 +66,3 @@ command: gen: codereviewcfg: file.Create & { let donotedit = repo.doNotEditMessage & {#generatedBy: "internal/ci/ci_tool.cue", _} contents: "# \(donotedit)\n\n\(res)\n" } - -// updateTxtarTests ensures certain txtar tests are updated with the -// relevant files that make up the process of generating our CI -// workflows. -// -// See internal/ci/gen.go for details on how this step fits into the sequence -// of generating our CI workflow definitions, and updating various txtar tests -// with files from that process. -// -// This also explains why the ../../ relative path specification below appear -// wrong in the context of the containing directory internal/ci/vendor. -command: updateTxtarTests: { - goos: _goos - - readJSONSchema: file.Read & { - _path: path.FromSlash("../../cue.mod/pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue", path.Unix) - filename: path.Join([_path], goos.GOOS) - contents: string - } - cueDefInternalCI: exec.Run & { - cmd: "go run cuelang.org/go/cmd/cue def cuelang.org/go/internal/ci" - stdout: string - } - // updateEvalTxtarTest updates the cue/testdata/eval testscript which exercises - // the evaluation of the workflows defined in internal/ci (which by definition - // means resolving and using the vendored GitHub Workflow schema) - updateEvalTxtarTest: { - _relpath: path.FromSlash("../../cue/testdata/eval/github.txtar", path.Unix) - _path: path.Join([_relpath], goos.GOOS) - - githubSchema: exec.Run & { - stdin: readJSONSchema.contents - cmd: "go run cuelang.org/go/internal/ci/updateTxtar - \(_path) cue.mod/pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue" - } - defWorkflows: exec.Run & { - $after: githubSchema - stdin: cueDefInternalCI.stdout - cmd: "go run cuelang.org/go/internal/ci/updateTxtar - \(_path) workflows.cue" - } - } - // When we have a solution for cuelang.org/issue/709 we can make this a - // file.Glob - readToolsFile: file.Read & { - filename: "ci_tool.cue" - contents: string - } - updateCmdCueCmdTxtarTest: { - _relpath: path.FromSlash("../../cmd/cue/cmd/testdata/script/cmd_github.txt", path.Unix) - _path: path.Join([_relpath], goos.GOOS) - - githubSchema: exec.Run & { - stdin: readJSONSchema.contents - cmd: "go run cuelang.org/go/internal/ci/updateTxtar - \(_path) cue.mod/pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue" - } - defWorkflows: exec.Run & { - $after: githubSchema - stdin: cueDefInternalCI.stdout - cmd: "go run cuelang.org/go/internal/ci/updateTxtar - \(_path) internal/ci/workflows.cue" - } - toolsFile: exec.Run & { - stdin: readToolsFile.contents - cmd: "go run cuelang.org/go/internal/ci/updateTxtar - \(_path) internal/ci/\(readToolsFile.filename)" - } - } -} diff --git a/tools.go b/tools.go deleted file mode 100644 index a23fb60..0000000 --- a/tools.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2021 The CUE Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -//go:build tools -// +build tools - -package tools - -import ( - _ "cuelang.org/go/cmd/cue" -)