Skip to content

Commit

Permalink
cmd/cue: fix bad variable reference
Browse files Browse the repository at this point in the history
The previous commit landed although it was in error
because the trybot results were stale and a CL chain
had landed in the meantime which made the variable
reference invalid.

Fix that by referring to the new place that constant lives.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I7191ef9b4957db81c7d980c2dfc28b62ce66a940
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1177607
TryBot-Result: CUEcueckoo <cueckoo@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
  • Loading branch information
rogpeppe committed Feb 29, 2024
1 parent 91c72d9 commit 77936ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cue/cmd/help.go
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/spf13/cobra"

"cuelang.org/go/internal/mod/modresolve"
"cuelang.org/go/mod/modconfig"
)

// TODO: intersperse the examples at the end of the texts in the
Expand Down Expand Up @@ -207,7 +208,7 @@ given module is stored in, and what repository within that registry, without
making any network calls.
If no explicit registry configuration is present, a default central registry
(` + defaultRegistry + `) will be used for all modules.
(` + modconfig.DefaultRegistry + `) will be used for all modules.
The simplest way of specifying a registry configuration is to set $CUE_REGISTRY
to the hostname of that registry.
Expand Down

0 comments on commit 77936ec

Please sign in to comment.