Skip to content

Commit

Permalink
all: update to Go 1.23.0
Browse files Browse the repository at this point in the history
Since CUE v0.10.0 is being released with binaries built on Go 1.23,
and cuelang.org seems to track the latest version of Go as well,
now seems like a good time to make this upgrade.

Preprocessor-No-Write-Cache: true
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I2a4de313ccc7fc90ee472412501becab5a89f587
  • Loading branch information
mvdan committed Aug 14, 2024
1 parent ad15957 commit 6ed8625
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/trybot.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ giving the issue's title a "`cuelang.org: `" prefix.
### Requirements for local development

* [NodeJS](https://nodejs.org/) `v20.x`
* [Go](https://golang.org/dl/) `>= go1.21` (not needed for only running `hugo`)
* [Go](https://golang.org/dl/) `>= go1.23` (not needed for only running `hugo`)
* [Hugo](https://github.com/gohugoio/hugo/releases) `== v0.128.2`
(["extended"](https://gohugo.io/troubleshooting/faq/#i-get-this-feature-is-not-available-in-your-current-hugo-version)
binary version)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cue-lang/cuelang.org

go 1.22
go 1.23

require (
cuelang.org/go v0.10.0-rc.1.0.20240814100303-dc3ba30322ca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Check that the Go prerequisites are met:

```text { title="TERMINAL" type="terminal" codeToCopy="Z28gdmVyc2lvbgpnbyBlbnYgQ0dPX0VOQUJMRUQ=" }
$ go version
go version go1.22.4 linux/amd64
go version go1.23.0 linux/amd64
$ go env CGO_ENABLED
1
```
Expand Down
2 changes: 1 addition & 1 deletion hugo/content/en/docs/tutorial/loading-cue-go-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ cue version
cue version v0.9.2
...
$ go version
go version go1.22.4 linux/amd64
go version go1.23.0 linux/amd64
```

## Create a CUE module
Expand Down
2 changes: 1 addition & 1 deletion internal/ci/repo/repo.cue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ macosMachine: "macos-13"
// Use a specific latest version for release builds.
// Note that we don't want ".x" for the sake of reproducibility,
// so we instead pin a specific Go release.
goVersion: "1.22.0"
goVersion: "1.23.0"

// Use a specific version of NodeJS for deploy purposes. This version
// is consistent between netlify and GitHub Actions usage.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/preprocessor/cmd/_docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Code generated site_tool.cue; DO NOT EDIT.

FROM golang:1.22.4 AS build
FROM golang:1.23.0 AS build

ENV CGO_ENABLED=0

Expand Down Expand Up @@ -33,7 +33,7 @@ RUN git clone https://github.com/cue-lang/libcue.git /libcue
RUN git -C /libcue reset --hard 1c861cc9cdc5584f5d26b0a7112aa2afee74d4cf
RUN CGO_ENABLED=1 go build -C /libcue -o libcue.so -buildmode=c-shared

FROM golang:1.22.4
FROM golang:1.23.0

RUN apt-get update && apt-get install -y tree

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/preprocessor/cmd/gen_dockerimagetag.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ $ export MYVAR=value
$ cue version
cue version v0.9.2

go version go1.22.4
go version go1.23.0
-buildmode exe
-compiler gc
-trimpath true
DefaultGODEBUG httplaxcontentlength=1,httpmuxgo121=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1
DefaultGODEBUG asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
CGO_ENABLED 0
GOARCH amd64
GOOS linux
Expand Down Expand Up @@ -292,12 +292,12 @@ package site
page: {
cache: {
upload: {
"hidden file": "iF3rj8zX48riDPYxs1+Xya4TfdyNwxob5V7GS/0G8qk="
"upload-some-cue": "bWRwJYm52LQHznIVfTDtAb+hH1TlkYNTTF5kDsf8i8o="
"in-subdir": "xFcL6e3q5bieQ3QCox9b4aVzHqUl3gBLf3TwMDOnmOM="
"hidden file": "snCOihpLT5b1MXRX3mU1j3DzwbbIiKMhcPC2DAeemIQ="
"upload-some-cue": "NXriwkn3N/ysVShF1n7DN2tRrXof3PGbVneEK/KsOrI="
"in-subdir": "UNEq3fovzVRJaDkAGL5+LB7Tt7fkaX6unvrhJ8uxR8Q="
}
multi_step: {
hash: "J541B17N8HTVOASPUD18P97K2I6M25JTGG4U7MPU9FGNSNM7TRI0===="
hash: "MLKEF3HRI2IDIKB8G2UEKC8R601SBIQB0JNA7RPPHV02D8IE67TG===="
scriptHash: "RTE18RDQ3BFG4B5U2VR92496OPO5NOT61C424QBCDDT1RAAGPOUG===="
steps: [{
doc: ""
Expand Down Expand Up @@ -361,11 +361,11 @@ package site
output: """
cue version v0.9.2

go version go1.22.4
go version go1.23.0
-buildmode exe
-compiler gc
-trimpath true
DefaultGODEBUG httplaxcontentlength=1,httpmuxgo121=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1
DefaultGODEBUG asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
CGO_ENABLED 0
GOARCH amd64
GOOS linux
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ignore = "bash _scripts/ignoreBuild.bash"

[build.environment]
GO_VERSION = "1.22.0"
GO_VERSION = "1.23.0"
HUGO_ENV = "production"
HUGO_VERSION = "0.128.2"
NODE_VERSION = "20.9.0"
Expand Down
2 changes: 1 addition & 1 deletion playground/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cue-lang/cuelang.org/playground

go 1.22
go 1.23

require (
cuelang.org/go v0.10.0-rc.1.0.20240814100303-dc3ba30322ca
Expand Down
2 changes: 1 addition & 1 deletion site.cue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

versions: {
go: "go1.22.4"
go: "go1.23.0"
bareGoVersion: strings.TrimPrefix(go, "go")
cue: {
[x=string]: var: "CUELANG_CUE_\(strings.ToUpper(x))"
Expand Down

0 comments on commit 6ed8625

Please sign in to comment.