Skip to content

Commit 80c17ba

Browse files
committed
site: upgrade to v0.8.0
Verified the commit is complete locally with: go generate ./... ./_scripts/buildDockerImage.bash CUE_UPDATE=1 go test -run TestScripts/execute_multistagescript ./internal/cmd/preprocessor/cmd go test ./... ./_scripts/runPreprocessor.bash execute --update We set Preprocessor-No-Write-Cache in order that we don't lose real diffs in a sea of gen_cache.cue updates. Preprocessor-No-Write-Cache: true Signed-off-by: Paul Jolly <[email protected]> Change-Id: I4f0b218748aa060b661aada7056c1fdd2feb79cc Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1183481 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Jonathan Matthews <[email protected]>
1 parent e57cd0e commit 80c17ba

File tree

9 files changed

+45
-37
lines changed

9 files changed

+45
-37
lines changed

hugo/config/_default/params.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ logo = "svg/logo-alpha.svg"
2020
type = 'test'
2121

2222
# TODO: move away from defaulting to the pre-release of CUE
23-
content = '**Note:** documentation on this site relies on CUE v0.8.0-rc.1'
23+
content = '**Note:** documentation on this site relies on CUE v0.8.0'
2424
[notification.button]
2525
link = 'https://github.com/cue-lang/cue/releases'
2626
icon = 'download'

hugo/content/en/docs/reference/cli/cue-environment/index.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ The cue command consults environment variables for configuration.
1111
If an environment variable is unset or empty, it uses a sensible default
1212
setting.
1313
14-
CUE_CONFIG_DIR
15-
The directory where the cue command keeps configuration and
16-
state files. This defaults to a directory for user-specific
17-
configuration data, such as:
18-
19-
"$XDG_CONFIG_HOME/cue" or "$HOME/.config/cue" on Linux
20-
"$HOME/Library/Application Support/cue" on MacOS
21-
"%AppData%/cue" on Windows
22-
2314
CUE_CACHE_DIR
2415
The directory where the cue command keeps a cache of files to be
2516
reused. This defaults to a directory for user-specific temporary
@@ -29,14 +20,25 @@ setting.
2920
"$HOME/Library/Caches/cue" on MacOS
3021
"%LocalAppData%/cue" on Windows
3122
32-
CUE_REGISTRY
23+
CUE_CONFIG_DIR
24+
The directory where the cue command keeps configuration and
25+
state files. This defaults to a directory for user-specific
26+
configuration data, such as:
3327
34-
This variable specifies which registry or registries to use for
35-
downloading and publishing modules. See "cue help registryconfig"
36-
for details.
28+
"$XDG_CONFIG_HOME/cue" or "$HOME/.config/cue" on Linux
29+
"$HOME/Library/Application Support/cue" on MacOS
30+
"%AppData%/cue" on Windows
31+
32+
CUE_DEBUG
33+
Comma-separated list of debug flags to enable. Current possible
34+
values are:
35+
http
36+
Print log messages in JSON format, one per line showing
37+
HTTP requests and responses made when interacting with
38+
module registries.
3739
3840
CUE_EXPERIMENT
39-
Comma-separated list of experiments to enable or disable. The
41+
Comma-separated list of experiments to enable. The
4042
list of available experiments may change arbitrarily over time.
4143
See exp.go in package cuelang.org/go/internal/cueexperiment for
4244
currently valid values.
@@ -45,4 +47,10 @@ setting.
4547
testing of the cue commands itself. Use beyond that purpose is
4648
unsupported.
4749
50+
CUE_REGISTRY
51+
52+
This variable specifies which registry or registries to use for
53+
downloading and publishing modules. See "cue help registryconfig"
54+
for details.
55+
4856
```

hugo/content/en/docs/reference/cli/cue-registryconfig/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ definition:
101101
//
102102
// If there are multiple matching prefixes, the longest
103103
// is chosen.
104-
moduleRegistries: [#modulePath]: #registry
104+
moduleRegistries?: [#modulePath]: #registry
105105
106106
// defaultRegistry specifies a fallback registry to be used if no
107107
// prefix from moduleRegistry matches.

hugo/content/en/docs/tutorial/working-with-a-custom-module-registry/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This tutorial is written using the following version of `cmd/cue`:
4545

4646
```text { title="TERMINAL" codeToCopy="Y3VlIHZlcnNpb24K" }
4747
$ cue version
48-
cue version v0.8.0-rc.1
48+
cue version v0.8.0
4949
...
5050
```
5151

@@ -279,7 +279,7 @@ We can see that the dependencies have now been added to the
279279
$ cat cue.mod/module.cue
280280
module: "glacial-tech.example/frostyapp@v0"
281281
language: {
282-
version: "v0.8.0-rc.1"
282+
version: "v0.8.0"
283283
}
284284
deps: {
285285
"glacial-tech.example/frostyconfig@v0": {
@@ -412,7 +412,7 @@ Here is what the `cue.mod/module.cue` file now looks like:
412412
$ cat cue.mod/module.cue
413413
module: "glacial-tech.example/frostyapp@v0"
414414
language: {
415-
version: "v0.8.0-rc.1"
415+
version: "v0.8.0"
416416
}
417417
deps: {
418418
"glacial-tech.example/frostyconfig@v0": {

internal/cmd/preprocessor/cmd/_docker/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ RUN \
2121
--mount=type=cache,target=/cache/gocache \
2222
--mount=type=cache,target=/cache/gomodcache \
2323
export GOCACHE=/cache/gocache GOMODCACHE=/cache/gomodcache && \
24-
GOBIN=/cues/latest go install -trimpath cuelang.org/go/cmd/cue@v0.7.1
24+
GOBIN=/cues/latest go install -trimpath cuelang.org/go/cmd/cue@v0.8.0
2525

2626
RUN \
2727
--mount=type=cache,target=/cache/gocache \
2828
--mount=type=cache,target=/cache/gomodcache \
2929
export GOCACHE=/cache/gocache GOMODCACHE=/cache/gomodcache && \
30-
GOBIN=/cues/prerelease go install -trimpath cuelang.org/go/cmd/[email protected]-rc.1
30+
GOBIN=/cues/prerelease go install -trimpath cuelang.org/go/cmd/[email protected]
3131

3232
RUN \
3333
--mount=type=cache,target=/cache/gocache \
3434
--mount=type=cache,target=/cache/gomodcache \
3535
export GOCACHE=/cache/gocache GOMODCACHE=/cache/gomodcache && \
36-
GOBIN=/cues/tip go install -trimpath cuelang.org/go/cmd/[email protected]-rc.1
36+
GOBIN=/cues/tip go install -trimpath cuelang.org/go/cmd/[email protected]
3737

3838
FROM golang:1.22.1
3939

@@ -43,9 +43,9 @@ RUN mkdir -p /go/bin
4343
ENV PATH="/cues/prerelease:${PATH}"
4444

4545
ENV PATH="/go/bin:/usr/local/go/bin:${PATH}"
46-
ENV CUELANG_CUE_LATEST="v0.7.1"
47-
ENV CUELANG_CUE_PRERELEASE="v0.8.0-rc.1"
48-
ENV CUELANG_CUE_TIP="v0.8.0-rc.1"
46+
ENV CUELANG_CUE_LATEST="v0.8.0"
47+
ENV CUELANG_CUE_PRERELEASE="v0.8.0"
48+
ENV CUELANG_CUE_TIP="v0.8.0"
4949

5050
WORKDIR /
5151

internal/cmd/preprocessor/cmd/gen_dockerimagetag.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmd/preprocessor/cmd/testdata/execute_multistagescript.txtar

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ hello
217217
```text { title="TERMINAL" codeToCopy="ZXhwb3J0IE1ZVkFSPXZhbHVlCmN1ZSB2ZXJzaW9uCg==" }
218218
$ export MYVAR=value
219219
$ cue version
220-
cue version v0.8.0-rc.1
220+
cue version v0.8.0
221221

222222
go version go1.22.1
223223
-buildmode exe
@@ -245,13 +245,13 @@ package site
245245
page: {
246246
cache: {
247247
upload: {
248-
"hidden file": "3NmIHsqAHwuFayRHzbw/31qx5PqGI7WN5aZAdr3OmGY="
249-
"upload-some-cue": "qsEqG60bTVLYql5dZSnLy4FVIk8rPzqBohisJL9kV54="
250-
"upload-some-json": "QbrSxyoKi/HCGFSijQZ9B925SaveNi+6VE1UDKPt8As="
251-
"in-subdir": "SQItkwSe4DIysS578hzn+pC7gN0WWCMHJLr+UGaWSbI="
248+
"hidden file": "OutM9DQ+VLJfo3gey6kvCY4hamW5VDhPbCK7eYcxW68="
249+
"upload-some-cue": "RKWrdN8ZwaOGoxRY6wqyDaZixGAXxsQRQGaZ/rxLCn4="
250+
"upload-some-json": "eYWe3RDFSuPWRAREhwmk2wGcbyMHfFvamGsCS8Fp6uc="
251+
"in-subdir": "kJpfLfPSiM0gqwwAlOEl3ALOYE5ILM/rzXHIVJxR0CQ="
252252
}
253253
multi_step: {
254-
"9E7QSLPBF921MGCCQL10IVR7NC6SPIJ2MNN8MUOH9U1GSUBQG5TG====": [{
254+
"ST9O8G89I8DFPFJB4LK49BJVMK3F69MIDGMDDJO1V9CCLLBDQFE0====": [{
255255
doc: """
256256
# script doc comment
257257
#scripttag
@@ -287,7 +287,7 @@ package site
287287
cmd: "cue version"
288288
exitCode: 0
289289
output: """
290-
cue version v0.8.0-rc.1
290+
cue version v0.8.0
291291

292292
go version go1.22.1
293293
-buildmode exe
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Code generated site_tool.cue; DO NOT EDIT.
22

33
// TODO: move away from defaulting to the pre-release of CUE
4-
export const CUEVersion = 'v0.8.0-rc.1';
4+
export const CUEVersion = 'v0.8.0';

site.cue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ versions: {
1212
go: "go1.22.1"
1313
bareGoVersion: strings.TrimPrefix(go, "go")
1414
cue: {
15-
latest: "v0.7.1"
16-
prerelease: "v0.8.0-rc.1"
17-
tip: "v0.8.0-rc.1"
15+
latest: "v0.8.0"
16+
prerelease: "v0.8.0"
17+
tip: "v0.8.0"
1818
}
1919
testscript: "v1.11.0"
2020
}

0 commit comments

Comments
 (0)