diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b67d0df..144194f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,24 +1,22 @@ # Generated by ci_tool.cue; do not edit name: Test -on: +"on": push: branches: - - main + - main tags: - - v* + - v* pull_request: branches: - - '**' + - '**' schedule: - - cron: 0 9 * * * + - cron: 0 9 * * * env: DOCKER_HUB_USER: playwithgopher DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} - PREGUIDE_DEBUG: true PLAYWITHGODEV_CONTRIBUTOR_USER: playwithgopher_github - PLAYWITHGODEV_CONTRIBUTOR_PASSWORD: ${{ secrets.PLAYWITHGODEV_CONTRIBUTOR_PASSWORD - }} + PLAYWITHGODEV_CONTRIBUTOR_PASSWORD: ${{ secrets.PLAYWITHGODEV_CONTRIBUTOR_PASSWORD }} PLAYWITHGOPHER_GITHUB_PAT: ${{ secrets.PLAYWITHGOPHER_GITHUB_PAT }} jobs: test: @@ -26,47 +24,45 @@ jobs: fail-fast: false matrix: go_version: - - 1.16.3 + - 1.19.1 os: - - ubuntu-18.04 + - ubuntu-20.04 runs-on: ${{ matrix.os }} steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go_version }} - - name: Pre-download specific modules - run: go mod download github.com/play-with-go/preguide github.com/play-with-go/gitea - - name: mac CI setup - run: ./_scripts/macCISetup.sh - if: ${{ matrix.os == 'macos-latest' }} - - name: Ensure docker setup - run: ./_scripts/ensureDocker.sh - - name: Env setup - run: ./_scripts/env.sh github - - name: docker-compose build - run: ./_scripts/dc.sh build - - name: Start gitea services - run: ./_scripts/dc.sh up -d cmd_gitea - - name: Verify - run: go mod verify - - name: Re-generate guides - run: _scripts/generateGuides.sh - - name: Race check re-generating guides - run: go run -race github.com/play-with-go/preguide/cmd/preguide gen -out ../_posts - working-directory: ./guides - if: ${{ github.event_name == 'schedule' }} - - name: Re-generate everything else - run: _scripts/generateEverythingElse.sh - - name: Tidy - run: go mod tidy - - name: Verify commit is clean - run: test -z "$(git status --porcelain)" || (git status; git diff; false) - - name: Run unity tests - run: go run github.com/cue-sh/unity/cmd/unity test - - name: Verify commit is clean - run: test -z "$(git status --porcelain)" || (git status; git diff; false) - - name: Publish site - run: _scripts/publishSite.sh + - name: Checkout code + uses: actions/checkout@v2 + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go_version }} + - name: Pre-download specific modules + run: go mod download github.com/play-with-go/preguide github.com/play-with-go/gitea + - name: mac CI setup + run: ./_scripts/macCISetup.sh + if: ${{ matrix.os == 'macos-latest' }} + - name: Ensure docker setup + run: ./_scripts/ensureDocker.sh + - name: Env setup + run: ./_scripts/env.sh github + - name: Verify + run: go mod verify + - name: Tidy + run: go mod tidy + - name: Run unity tests + run: go run github.com/cue-sh/unity/cmd/unity test + - name: docker-compose build + run: ./_scripts/dc.sh build + - name: Start gitea services + run: ./_scripts/dc.sh up -d cmd_gitea + - name: Re-generate guides + run: _scripts/generateGuides.sh + env: + CGO_ENABLED: "0" + PREGUIDE_SKIP_CACHE: "true" + PREGUIDE_PROGRESS: "true" + - name: Re-generate everything else + run: _scripts/generateEverythingElse.sh + - name: Verify commit is clean + run: test -z "$(git status --porcelain)" || (git status; git diff; false) + - name: Publish site + run: _scripts/publishSite.sh diff --git a/.github/workflows/wip.yml b/.github/workflows/wip.yml deleted file mode 100644 index eaccb713..00000000 --- a/.github/workflows/wip.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by ci_tool.cue; do not edit - -name: WIP -on: - pull_request: - types: - - opened - - synchronize - - reopened - - edited -jobs: - wip: - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - runs-on: ubuntu-18.04 - steps: - - uses: myitcv/wip@v1.0.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/_posts/2018-10-19-go-fundamentals_go115_en.markdown b/_posts/2018-10-19-go-fundamentals_go115_en.markdown index e1e5ca84..97b898ef 100644 --- a/_posts/2018-10-19-go-fundamentals_go115_en.markdown +++ b/_posts/2018-10-19-go-fundamentals_go115_en.markdown @@ -43,7 +43,7 @@ You should already have completed: This guide is running using:
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### Create a module that others can use
@@ -845,7 +845,7 @@ a lot of tests. The `TestHelloName` test should fail -- `TestHelloEmpty` still p
greetings_test.go:15: Hello("Gladys") = "Hail, %v! Well met!", <nil>, want match for `\bGladys\b`, <nil>
FAIL
exit status 1
-FAIL {{{.GREETINGS}}} 0.002s
+FAIL {{{.GREETINGS}}} 0.001s
Let's restore `greetings.Hello` to a working state
@@ -919,7 +919,7 @@ And re-run `go test` to verify our change:
$ go test
PASS
-ok {{{.GREETINGS}}} 0.002s
+ok {{{.GREETINGS}}} 0.001s
This section introduced Go's built-in support for unit testing. In the next section, you'll see how to compile and
diff --git a/_posts/2019-10-15-get-started-with-go_go115_en.markdown b/_posts/2019-10-15-get-started-with-go_go115_en.markdown
index cd9d385b..7363ef23 100644
--- a/_posts/2019-10-15-get-started-with-go_go115_en.markdown
+++ b/_posts/2019-10-15-get-started-with-go_go115_en.markdown
@@ -29,7 +29,7 @@ You should already have completed:
This guide is running using:
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### Write some code
diff --git a/_posts/2020-08-13-installing-go_go115_en.markdown b/_posts/2020-08-13-installing-go_go115_en.markdown
index 2f3dcad1..16428122 100644
--- a/_posts/2020-08-13-installing-go_go115_en.markdown
+++ b/_posts/2020-08-13-installing-go_go115_en.markdown
@@ -36,12 +36,12 @@ Start in your home directory:
Download the latest version of Go:
-$ wget -q https://golang.org/dl/go1.15.8.linux-amd64.tar.gz
+$ wget -q https://golang.org/dl/go1.15.15.linux-$GOARCH.tar.gz
Extract and install:
-$ sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz
+$ sudo tar -C /usr/local -xzf go1.15.15.linux-$GOARCH.tar.gz
Add the install target to your profile `PATH`:
@@ -57,7 +57,7 @@ Source your profile to test the new settings:
Verify the Go installation:
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### The Go environment
@@ -102,7 +102,7 @@ CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
-GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build -gno-record-gcc-switches"
+GOGCCFLAGS="fake_gcc_flags"
To see the effective setting of a specific variable, for example `GOBIN`, you can run:
diff --git a/_posts/2020-11-05-tools-as-dependencies_go115_en.markdown b/_posts/2020-11-05-tools-as-dependencies_go115_en.markdown
index ccdfd87a..1fdc4d73 100644
--- a/_posts/2020-11-05-tools-as-dependencies_go115_en.markdown
+++ b/_posts/2020-11-05-tools-as-dependencies_go115_en.markdown
@@ -33,7 +33,7 @@ You should already have completed:
This guide is running using:
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### Why `stringer`?
@@ -189,8 +189,8 @@ With the package dependency declared, you can now add a dependency on the module
$ go get golang.org/x/tools/cmd/stringer@v0.0.0-20201105220310-78b158585360
go: downloading golang.org/x/tools v0.0.0-20201105220310-78b158585360
go: found golang.org/x/tools/cmd/stringer in golang.org/x/tools v0.0.0-20201105220310-78b158585360
-go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/mod v0.3.0
+go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
You can see your new dependency in the project's `go.mod` file:
diff --git a/_posts/2020-11-08-retract-module-versions_go116_en.markdown b/_posts/2020-11-08-retract-module-versions_go116_en.markdown
index 721b2493..3f8e4a34 100644
--- a/_posts/2020-11-08-retract-module-versions_go116_en.markdown
+++ b/_posts/2020-11-08-retract-module-versions_go116_en.markdown
@@ -48,7 +48,7 @@ You should already have completed:
This guide is running using:
$ go version
-go version go1.16 linux/amd64
+go version go1.16.15 linux/amd64
### The `proverb` module
@@ -323,7 +323,8 @@ So what would happen if you were to rely on the now retracted `v0.2.0`?
$ go get {{{.PROVERB}}}@v0.2.0
go: warning: {{{.PROVERB}}}@v0.2.0: retracted by module author: Go proverb was totally wrong
go: to switch to the latest unretracted version, run:
- go get {{{.PROVERB}}}@latestgo get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
+ go get {{{.PROVERB}}}@latest
+go get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
A helpful message is printed, warning that you are now depending on a retracted version. Notice that this error message
@@ -448,12 +449,14 @@ Ensure proxy.golang.org is aware of the new versions of `proverb` you just publi
go: downloading {{{.PROVERB}}} v1.0.0
go: warning: {{{.PROVERB}}}@v1.0.0: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- go get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
+ go get {{{.PROVERB}}}@latest
+go get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
$ go get {{{.PROVERB}}}@v1.0.1
go: downloading {{{.PROVERB}}} v1.0.1
go: warning: {{{.PROVERB}}}@v1.0.1: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- go get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
+ go get {{{.PROVERB}}}@latest
+go get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
$ go get {{{.PROVERB}}}@v0.4.0
go: downloading {{{.PROVERB}}} v0.4.0
go get: downgraded {{{.PROVERB}}} v1.0.1 => v0.4.0
diff --git a/_posts/2020-11-09-installing-go-programs-directly_go116_en.markdown b/_posts/2020-11-09-installing-go-programs-directly_go116_en.markdown
index c29df21f..44185603 100644
--- a/_posts/2020-11-09-installing-go-programs-directly_go116_en.markdown
+++ b/_posts/2020-11-09-installing-go-programs-directly_go116_en.markdown
@@ -27,7 +27,7 @@ You should already have completed:
This guide is running with:
$ go version
-go version go1.16 linux/amd64
+go version go1.16.15 linux/amd64
### Background
@@ -102,7 +102,7 @@ v1.4.2
You can also use `go version` to see the module dependencies used in building the program:
$ go version -m $(which mkcert)
-/home/gopher/go/bin/mkcert: go1.16
+/home/gopher/go/bin/mkcert: go1.16.15
path filippo.io/mkcert
mod filippo.io/mkcert v1.4.2 h1:7mWofpFS4gzQS5bhE3KYBwzfceIPy2KJ4tMT31aPNeY=
dep golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
diff --git a/_posts/2020-11-09-using-staticcheck_go115_en.markdown b/_posts/2020-11-09-using-staticcheck_go115_en.markdown
index f85df897..351b2bc4 100644
--- a/_posts/2020-11-09-using-staticcheck_go115_en.markdown
+++ b/_posts/2020-11-09-using-staticcheck_go115_en.markdown
@@ -36,7 +36,7 @@ You should already have completed:
This guide is running using:
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### Installing Staticcheck
@@ -50,8 +50,8 @@ Use `go get` to install Staticcheck:
go: downloading honnef.co/go/tools v0.0.1-2020.1.6
go: found honnef.co/go/tools/cmd/staticcheck in honnef.co/go/tools v0.0.1-2020.1.6
go: downloading golang.org/x/tools v0.0.0-20200410194907-79a7a3126eef
-go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading github.com/BurntSushi/toml v0.3.1
+go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
_Note: so that this guide remains reproducible we have spcified an explicit version, `v0.0.1-2020.1.6`.
diff --git a/_posts/2020-11-12-working-with-private-modules_go115_en.markdown b/_posts/2020-11-12-working-with-private-modules_go115_en.markdown
index 09b5b761..def249d9 100644
--- a/_posts/2020-11-12-working-with-private-modules_go115_en.markdown
+++ b/_posts/2020-11-12-working-with-private-modules_go115_en.markdown
@@ -32,7 +32,7 @@ You should already have completed:
This guide is running using:
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### The `public` and `private` modules
@@ -174,7 +174,7 @@ As expected, that succeeded.
Try to add a dependency on the `private` module:
$ go get {{{.PRIVATE}}}
-go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 410 Gone
+go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 404 Not Found
server response:
not found: module {{{.PRIVATE}}}: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
fatal: could not read Username for 'https://gopher.live': terminal prompts disabled
@@ -193,7 +193,7 @@ And try once again to add a dependency on the `private` module:
$ go get {{{.PRIVATE}}}
go: downloading {{{.PRIVATE}}} v0.0.0-20060102150405-abcedf12345
-go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 410 Gone
+go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 404 Not Found
server response:
not found: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
fatal: could not read Username for 'https://gopher.live': terminal prompts disabled
diff --git a/_posts/2020-11-19-major-version-repository-structure_go115_en.markdown b/_posts/2020-11-19-major-version-repository-structure_go115_en.markdown
index a1db2a2b..e35b40f7 100644
--- a/_posts/2020-11-19-major-version-repository-structure_go115_en.markdown
+++ b/_posts/2020-11-19-major-version-repository-structure_go115_en.markdown
@@ -23,7 +23,7 @@ In this guide you will:
### Context
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
### Major branch strategy
diff --git a/_posts/2021-05-02-build-flags-backwards-compatibility_go115_en.markdown b/_posts/2021-05-02-build-flags-backwards-compatibility_go115_en.markdown
deleted file mode 100644
index 8eab9210..00000000
--- a/_posts/2021-05-02-build-flags-backwards-compatibility_go115_en.markdown
+++ /dev/null
@@ -1,265 +0,0 @@
----
-category: Next steps
-difficulty: Intermediate
-excerpt: 'How to leverage go build flags to avoid breaking downstream projects '
-guide: 2021-05-02-build-flags-backwards-compatibility
-lang: en
-layout: post
-title: Using build flags for backwards compatibility
----
-
-_By [Marcos Nils](https://twitter.com/marcosnils), [Docker Captain](https://www.docker.com/captains/marcos-lilljedahl), Hashicorp Ambassador, Go developer, and co-creator of `play-with-go.dev`._
-
-Sometimes, when a new `go` version is released, it also ships with a bunch of changes and really interesting features in the standard library.
-At the time of this article, [go 1.16](https://golang.org/doc/go1.16) has been released around two months ago which introduces some changes and
-new features into the [core library](https://golang.org/doc/go1.16#library) like the new `io.FS` interface, the `go:embed` directive amongst others.
-
-As a module author, how could I introduce these new features and at the same time provide some guarantees that
-my module can still support the last N releases of go?
-
-This guide explains how to deal with situations where you want to use new features of recent versions of `go`
-and at the same time you don't want to force downstream dependats to upgrade. In this case we'll be using
-conditional compilation through build tags in a real life scenario by using 1.16's new io.FS whilst retaining compatibility for users of `go` 1.15.
-
-Here's a high level overview of the steps you'll accomplish following this guide:
-
-- Create a `public` module that contains and exports a `DoSomething()` function
-- Create a `gopher` module that uses the `public`module
-- Bump the `public` module to use `go` 1.16 features without any considerations
-- Try updating the `gopher` module and show the observed errors
-- Fix the `public` module by adding required buid tags.
-
-
-### A simple go 1.15 program using ioutil.Discard
-
-Verifying that we're using `go` 1.15 version:
-
-$ go115 version
-go version go1.15.8 linux/amd64
-
-
-Now, we'll also check that we have `go` 1.16 installed as well:
-
-$ go116 version
-go version go1.16.3 linux/amd64
-
-
-
-We'll start by setting `go` 1.15 as the default working version:
-
-$ alias go=go115
-
-
-Start by a new `public` module:
-
-$ mkdir /home/gopher/public
-$ cd /home/gopher/public
-$ go mod init {{{.PUBLIC}}}
-go: creating new go.mod: module {{{.PUBLIC}}}
-$ git init -q
-$ git remote add origin https://{{{.PUBLIC}}}.git
-
-
-Now, we'll upload a simple `go` program that uses 1.15 `ioutil.Discard` in a public function:
-
-Create an initial version of the `DoSomething()` in `public.go`:
-
-package public
-
-import (
- "fmt"
- "io/ioutil"
-)
-
-func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
-}
-
-Commit and push this initial version:
-
-$ git add public.go go.mod
-$ git commit -q -m 'Initial commit of public module'
-$ git push -q origin main
-remote: . Processing 1 references
-remote: Processed 1 references in total
-
-
-### The `gopher` module
-
-Now create a `gopher` module to try out the `public` module. Unlike
-the `public` module, you will not publish the `gopher` module; it
-will be local only:
-
-$ mkdir /home/gopher/gopher
-$ cd /home/gopher/gopher
-$ go mod init gopher
-go: creating new go.mod: module gopher
-
-
-Create an initial version of a `main` package that uses the previous public module, in `gopher.go`:
-
-package main
-
-import (
-
-"{{{.PUBLIC}}}"
-)
-
-func main() {
- public.DoSomething()
-}
-
-
-
-Get the initial version of the `gopher` module:
-
-$ go get -d {{{.PUBLIC}}}@latest
-go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-
-
-Now, we'll run the `gopher` module `main` package:
-
-$ go run .
-
-
-
-### Bumping the `public` dependency to `go` 1.16
-
-`Go` 1.16 has been released, and as good developers we want to refactor our
-code so it uses the new `io.Discard` variable instead of the deprecated `ioutil` one.
-
-
-First, we set our `go` version to 1.16:
-
-$ alias go=go116
-
-
-Now, we change our original `public` module to use the new variable.
-
-package public
-
-import (
- "fmt"
- "io"
-)
-
-func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
-}
-
-
-Now we're good to release a new version of our `public` module
-using the `go` 1.16 new package:
-
-$ cd /home/gopher/public
-$ git add public.go go.mod
-$ git commit -q -m 'Bump public to go1.16'
-$ git push -q origin main
-remote: . Processing 1 references
-remote: Processed 1 references in total
-
-
-
-Let's go back to our `gopher` module in `go` 1.15, fetch the latest
-version of the `public` dependecy and see what happens when we try and
-run again:
-
-$ alias go=go115
-
-
-$ cd /home/gopher/gopher
-$ GOPROXY=direct go get -d {{{.PUBLIC}}}@latest
-go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-
-
-$ go run .
-# {{{.PUBLIC}}}
-../go/pkg/mod/{{{.PUBLIC}}}@v0.0.0-20060102150405-abcedf12345/public.go:9:17: undefined: io.Discard
-
-
-As you can see, when trying to run our `gopher` project using the
-latest `public`, we got an error because in our case, we're still using
-`go` 1.15 in the gopher project which doesn't support the new `io.Discard`
-package.
-
-How do we handle these situations where we shouldn't force our clients to update?
-The right approach to tackle this is by using [build constraints](https://pkg.go.dev/go/build#hdr-Build_Constraints) so our `public`
-clients can build their project regardless of the `go` version they're using
-
-
-### Adding `build` tags to our `public` project
-
-Let's go ahead and modify our `public` project so it now uses the
-`// +build 1.16` tag.
-
-First we rollback the changes to our original file to keep using the `ioutil.Discard`
-pacage for `go` < 1.16 clients
-
-// +build !go1.16
-
-package public
-
-import (
- "fmt"
- "io/ioutil"
-)
-
-func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
-}
-
-Additionally, we create a new file which has the correct build tag, so
-newer clients can make use of the new package
-
-// +build go.1.16
-
-package public
-
-import (
- "fmt"
- "io"
-)
-
-func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
-}
-
-Let's now publish our fixed module
-
-$ cd /home/gopher/public
-$ git add public.go public_116.go go.mod
-$ git commit -q -m 'Fix public bump to go1.16'
-$ git push -q origin main
-remote: . Processing 1 references
-remote: Processed 1 references in total
-
-
-
-Now, we can go ahead and update our `gopher` without problems with the
-benefit that `go` 1.16 clients and future clients will be able to use make
-use of the newer `go` features and packages.
-
-$ cd /home/gopher/gopher
-$ GOPROXY=direct go get -d {{{.PUBLIC}}}@latest
-go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-
-
-$ go run .
-
-
-
-### Conclusion
-
-This guide serves as an example on how to leverage on [build constraints](https://pkg.go.dev/go/build#hdr-Build_Constraints)
-to provide a backwards compatbile module to your clients. Build constraints are a very
-powerful pattern to achieve other tasks in `go`. We encourage the reader to check the official docs
-for further examples.
-
-As a next step you might like to consider:
-
-* [Wokring with private modules](/working-with-private-modules_go115_en/)
-* [Retract module versions](/retract-module-versions_go116_en/)
-
diff --git a/_scripts/env.sh b/_scripts/env.sh
index 37808aec..e580da1a 100755
--- a/_scripts/env.sh
+++ b/_scripts/env.sh
@@ -14,3 +14,4 @@ $export PREGUIDE_CONFIG "$modRoot/prestep_conf.cue"
$export PREGUIDE_PULL_IMAGE missing
$export COMPOSE_DOCKER_CLI_BUILD 1
$export DOCKER_BUILDKIT 1
+$export CGO_ENABLED 0
diff --git a/cue.mod/pkg/github.com/play-with-go/preguide/preguide.cue b/cue.mod/pkg/github.com/play-with-go/preguide/preguide.cue
index abd3ef9f..911342bd 100644
--- a/cue.mod/pkg/github.com/play-with-go/preguide/preguide.cue
+++ b/cue.mod/pkg/github.com/play-with-go/preguide/preguide.cue
@@ -47,18 +47,17 @@ import (
Name: name
}
- // This "forces" the user to define the image for every scenario for
- // every terminal they declare
- for scenario, _ in Scenarios for terminal, _ in Terminals {
- Terminals: "\(terminal)": Scenarios: "\(scenario)": #TerminalScenario
- }
-
_#TerminalNames: [ for k, _ in Terminals {k}]
_#TerminalName: *_#TerminalNames[0] | or(_#TerminalNames)
// Terminals defines the required remote VMs for a given guide
Terminals: [name=string]: #Terminal & {
Name: name
+ // This "forces" the user to define the image for every scenario for
+ // every terminal they declare
+ for scenario, _ in Scenarios {
+ Scenarios: "\(scenario)": #TerminalScenario
+ }
}
Defs: [string]: _
diff --git a/cue.mod/tests/eval.txt b/cue.mod/tests/eval.txt
index 3efdd3ce..796de8ad 100644
--- a/cue.mod/tests/eval.txt
+++ b/cue.mod/tests/eval.txt
@@ -17,36 +17,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
- }
- }
- }]
- Scenarios: [{
- Name: "go115"
- Description: "Go 1.15"
- }]
- Networks: ["playwithgo_pwg"]
- Env: []
-}
-"2021-05-02-build-flags-backwards-compatibility": {
- Delims: ["{{{", "}}}"]
- Presteps: [{
- Package: "github.com/play-with-go/gitea"
- Path: "/newuser"
- Args: {
- Repos: [{
- Pattern: "public"
- Private: false
- Var: "PUBLIC"
- }]
- }
- }]
- Terminals: [{
- Name: "term1"
- Description: "The main terminal"
- Scenarios: {
- go115: {
- Image: "playwithgo/go1.15_1.16@sha256:38ee32afdd785e5f1d9e63033ce5d64cbd098207ed6506669105db97c2dbe9a1"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -79,7 +50,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -112,7 +83,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -130,7 +101,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -148,7 +119,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -177,7 +148,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -206,7 +177,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -235,7 +206,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -264,7 +235,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -282,7 +253,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/installgo1.15.8@sha256:0e480b658f50b85b8eb40c426022d572709a93f6e0a7fe65475bea50ad172c5f"
+ Image: "playwithgo/installgo1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -300,7 +271,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -333,7 +304,7 @@ Delims: ["{{{", "}}}"]
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -431,7 +402,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -1720,24 +1691,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -1766,8 +1738,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -1784,8 +1756,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -1796,26 +1768,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -1826,11 +1792,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "GREETINGS", "HELLO"]
@@ -1840,7 +1807,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -1860,17 +1827,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
pwd_home: {
@@ -3438,7 +3399,7 @@ Steps: {
greetings_test.go:15: Hello("Gladys") = "Hail, %v! Well met!", , want match for `\\bGladys\\b`,
FAIL
exit status 1
- FAIL\t{{{.GREETINGS}}}\t0.002s
+ FAIL\t{{{.GREETINGS}}}\t0.001s
"""
ComparisonOutput: """
@@ -3608,7 +3569,7 @@ Steps: {
ExitCode: 0
Output: """
PASS
- ok \t{{{.GREETINGS}}}\t0.002s
+ ok \t{{{.GREETINGS}}}\t0.001s
"""
ComparisonOutput: """
@@ -3712,7 +3673,7 @@ Steps: {
}]
}
}
-Hash: "a529c687b99b1dd600ccd0f90eaab6b76d6414c9f4bff308b3f42bd194030057"
+Hash: "4030ef2161a08fd4057fffd4499e5b683247d45a04169c7cf11892d42c9f2138"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -3778,7 +3739,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -3902,7 +3863,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -3922,17 +3883,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
pwd_home: {
@@ -4120,7 +4075,7 @@ Steps: {
}]
}
}
-Hash: "9dda4746d66e1b956de380e29f4cb60a9dffb7327a2766c965c0d5eec4b8c015"
+Hash: "13b62f3b7d87bd98ecc52b27beabea85d4a954d86f0a1ff3ac75aed4b213b07f"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -4182,7 +4137,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/installgo1.15.8@sha256:0e480b658f50b85b8eb40c426022d572709a93f6e0a7fe65475bea50ad172c5f"
+ Image: "playwithgo/installgo1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -4200,7 +4155,7 @@ Steps: {
DoNotTrim: false
Name: string
StepType: 1
- Source: "wget -q https://golang.org/dl/go1.15.8.linux-amd64.tar.gz"
+ Source: "wget -q https://golang.org/dl/go1.15.15.linux-$GOARCH.tar.gz"
InformationOnly: false
Terminal: string
}
@@ -4208,7 +4163,7 @@ Steps: {
DoNotTrim: false
Name: string
StepType: 1
- Source: "sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz"
+ Source: "sudo tar -C /usr/local -xzf go1.15.15.linux-$GOARCH.tar.gz"
InformationOnly: false
Terminal: string
}
@@ -4339,7 +4294,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/installgo1.15.8@sha256:0e480b658f50b85b8eb40c426022d572709a93f6e0a7fe65475bea50ad172c5f"
+ Image: "playwithgo/installgo1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -4381,7 +4336,7 @@ Steps: {
Terminal: "term1"
Stmts: [{
Negated: false
- CmdStr: "wget -q https://golang.org/dl/go1.15.8.linux-amd64.tar.gz"
+ CmdStr: "wget -q https://golang.org/dl/go1.15.15.linux-$GOARCH.tar.gz"
ExitCode: 0
Output: ""
ComparisonOutput: ""
@@ -4396,7 +4351,7 @@ Steps: {
Terminal: "term1"
Stmts: [{
Negated: false
- CmdStr: "sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz"
+ CmdStr: "sudo tar -C /usr/local -xzf go1.15.15.linux-$GOARCH.tar.gz"
ExitCode: 0
Output: ""
ComparisonOutput: ""
@@ -4440,17 +4395,11 @@ Steps: {
Order: 5
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
go_env: {
@@ -4498,7 +4447,7 @@ Steps: {
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
- GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build -gno-record-gcc-switches"
+ GOGCCFLAGS="fake_gcc_flags"
"""
ComparisonOutput: """
@@ -4535,7 +4484,7 @@ Steps: {
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
- GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build -gno-record-gcc-switches"
+ GOGCCFLAGS="fake_gcc_flags"
"""
}]
@@ -4788,7 +4737,7 @@ Steps: {
}]
}
}
-Hash: "6233def428c210d66fda91571d6ed0b2900f55c0846606ecafbcc4aac862f42d"
+Hash: "57f9241df49785e337140bd0aa692834aac59089f3b266546b0f3ac12cc7cddc"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -4865,7 +4814,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -4973,24 +4922,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -5019,8 +4969,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -5037,8 +4987,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -5049,26 +4999,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -5079,11 +5023,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "REPO1"]
@@ -5093,7 +5038,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -5315,7 +5260,7 @@ Steps: {
}]
}
}
-Hash: "b67bad6fb13ab938004c6ae17f99e6c2441aaf2904c915fa89a06ed0db7eecfe"
+Hash: "703d7b8f9690e147301b8824a58f1fcaadf55bc2cad6ae498ef6ef33db2bf706"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -5393,7 +5338,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -5521,24 +5466,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -5567,8 +5513,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -5585,8 +5531,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -5597,26 +5543,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -5627,11 +5567,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "REPO1"]
@@ -5641,7 +5582,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -5867,7 +5808,7 @@ Steps: {
}]
}
}
-Hash: "a2da9814549afb7151dd018b75531ba75d5ba39aa1cfbd572bd6068956a5b645"
+Hash: "b53dcd3de8b90157ae825182f021b1c7087125438c18e54e2bc618d1e214588a"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -5950,7 +5891,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -6347,24 +6288,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -6393,8 +6335,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -6411,8 +6353,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -6423,26 +6365,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -6453,11 +6389,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PAINKILLER"]
@@ -6467,7 +6404,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -6487,17 +6424,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
painkiller_go_mod_init: {
@@ -6750,8 +6681,8 @@ Steps: {
Output: """
go: downloading golang.org/x/tools v0.0.0-20201105220310-78b158585360
go: found golang.org/x/tools/cmd/stringer in golang.org/x/tools v0.0.0-20201105220310-78b158585360
- go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/mod v0.3.0
+ go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
"""
ComparisonOutput: """
@@ -7134,7 +7065,7 @@ Steps: {
}]
}
}
-Hash: "8c19cba404ed9e40fee3d0032abdb02348ae414fe3effc22225a0eeb6fd2fb5d"
+Hash: "422eaf5b740efdf4c0016fabc28e2438e057a7108260db3be9edd4787ca4a0ca"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -7222,7 +7153,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -7860,24 +7791,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -7906,8 +7838,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -7924,8 +7856,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -7936,26 +7868,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -7966,11 +7892,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PROVERB"]
@@ -7980,7 +7907,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -8000,17 +7927,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.16 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.16 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.16.15 linux/amd64"
+ ComparisonOutput: "go version go1.16.15 linux/amd64"
}]
}
proverb_create: {
@@ -8722,12 +8643,14 @@ Steps: {
Output: """
go: warning: {{{.PROVERB}}}@v0.2.0: retracted by module author: Go proverb was totally wrong
go: to switch to the latest unretracted version, run:
- \tgo get {{{.PROVERB}}}@latestgo get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
"""
ComparisonOutput: """
- \tgo get {{{.PROVERB}}}@latestgo get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
go: to switch to the latest unretracted version, run:
go: warning: {{{.PROVERB}}}@v0.2.0: retracted by module author: Go proverb was totally wrong
"""
@@ -9104,12 +9027,14 @@ Steps: {
go: downloading {{{.PROVERB}}} v1.0.0
go: warning: {{{.PROVERB}}}@v1.0.0: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
"""
ComparisonOutput: """
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
go: downloading {{{.PROVERB}}} v1.0.0
go: to switch to the latest unretracted version, run:
go: warning: {{{.PROVERB}}}@v1.0.0: retracted by module author: Published v1 too early
@@ -9122,12 +9047,14 @@ Steps: {
go: downloading {{{.PROVERB}}} v1.0.1
go: warning: {{{.PROVERB}}}@v1.0.1: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
"""
ComparisonOutput: """
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
go: downloading {{{.PROVERB}}} v1.0.1
go: to switch to the latest unretracted version, run:
go: warning: {{{.PROVERB}}}@v1.0.1: retracted by module author: Published v1 too early
@@ -9269,7 +9196,7 @@ Steps: {
}]
}
}
-Hash: "7e36395c5d69009d1b9102c0e8d21c076cf6a7ffeede7f67b2902178c5aad31e"
+Hash: "e8dd0d207479237a2ad5c4bae3807603adb72649141e4ff82a2a6c8b09ccade1"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -9334,7 +9261,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -9403,7 +9330,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -9423,17 +9350,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.16 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.16 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.16.15 linux/amd64"
+ ComparisonOutput: "go version go1.16.15 linux/amd64"
}]
}
go115_mkcert_get: {
@@ -9555,7 +9476,7 @@ Steps: {
CmdStr: "go version -m $(which mkcert)"
ExitCode: 0
Output: """
- /home/gopher/go/bin/mkcert: go1.16
+ /home/gopher/go/bin/mkcert: go1.16.15
\tpath\tfilippo.io/mkcert
\tmod\tfilippo.io/mkcert\tv1.4.2\th1:7mWofpFS4gzQS5bhE3KYBwzfceIPy2KJ4tMT31aPNeY=
\tdep\tgolang.org/x/net\tv0.0.0-20190620200207-3b0461eec859\th1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
@@ -9564,7 +9485,7 @@ Steps: {
"""
ComparisonOutput: """
- /home/gopher/go/bin/mkcert: go1.16
+ /home/gopher/go/bin/mkcert: go1.16.15
\tpath\tfilippo.io/mkcert
\tmod\tfilippo.io/mkcert\tv1.4.2\th1:7mWofpFS4gzQS5bhE3KYBwzfceIPy2KJ4tMT31aPNeY=
\tdep\tgolang.org/x/net\tv0.0.0-20190620200207-3b0461eec859\th1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
@@ -9575,7 +9496,7 @@ Steps: {
}]
}
}
-Hash: "147a1593fda589cc932377b1522660a5151741357de69b7416d78a17b80e4d64"
+Hash: "c82a16030f644b76c51e45f0ce0b71c14b3cf34798230d29b0c90526d8522d1c"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -9646,7 +9567,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -10360,7 +10281,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -10380,17 +10301,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
staticcheck_install: {
@@ -10408,8 +10323,8 @@ Steps: {
go: downloading honnef.co/go/tools v0.0.1-2020.1.6
go: found honnef.co/go/tools/cmd/staticcheck in honnef.co/go/tools v0.0.1-2020.1.6
go: downloading golang.org/x/tools v0.0.0-20200410194907-79a7a3126eef
- go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading github.com/BurntSushi/toml v0.3.1
+ go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
"""
ComparisonOutput: """
@@ -11271,7 +11186,7 @@ Steps: {
}]
}
}
-Hash: "3fe2d351775751fe4a3f807d62ae62aacd124f6e1af2be7e3348f3e9689ff771"
+Hash: "66396cad683065b32470e992e2b449c499702986cff334556cdab46668d107d5"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -11366,7 +11281,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -11654,24 +11569,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -11700,8 +11616,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -11718,8 +11634,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -11730,26 +11646,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -11760,11 +11670,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PUBLIC", "PRIVATE"]
@@ -11774,7 +11685,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -11794,17 +11705,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
public_init: {
@@ -12270,7 +12175,7 @@ Steps: {
CmdStr: "go get {{{.PRIVATE}}}"
ExitCode: 1
Output: """
- go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 410 Gone
+ go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 404 Not Found
\tserver response:
\tnot found: module {{{.PRIVATE}}}: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\t\tfatal: could not read Username for 'https://gopher.live': terminal prompts disabled
@@ -12285,7 +12190,7 @@ Steps: {
\tIf this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
\tnot found: module {{{.PRIVATE}}}: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\tserver response:
- go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 410 Gone
+ go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 404 Not Found
"""
}]
}
@@ -12317,7 +12222,7 @@ Steps: {
ExitCode: 1
Output: """
go: downloading {{{.PRIVATE}}} v0.0.0-20060102150405-abcedf12345
- go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 410 Gone
+ go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 404 Not Found
\tserver response:
\tnot found: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\t\tfatal: could not read Username for 'https://gopher.live': terminal prompts disabled
@@ -12332,7 +12237,7 @@ Steps: {
\tIf this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
\tnot found: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\tserver response:
- go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 410 Gone
+ go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 404 Not Found
go: downloading {{{.PRIVATE}}} v0.0.0-20060102150405-abcedf12345
"""
}]
@@ -12522,7 +12427,7 @@ Steps: {
}]
}
}
-Hash: "aaa78631d54a6531fe605332ac5253049f0eebe7ec3582404a2042038060fba8"
+Hash: "5aeb0e6f8ca108e4c4267463519d57c906181a6c92b666c64fd9ad55336cfc6a"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
@@ -12615,7 +12520,7 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
@@ -12954,24 +12859,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -13000,8 +12906,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -13018,8 +12924,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -13030,26 +12936,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -13060,11 +12960,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "BRANCH", "SUBDIR"]
@@ -13074,7 +12975,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -13094,17 +12995,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
branch_init: {
@@ -13744,80 +13639,37 @@ Steps: {
}]
}
}
-Hash: "58eef5fe9a3b886acc1a5cacc5eb73c55a1f0777fb12d769d1449e6573fa182b"
+Hash: "7dece9cb34390b221d2e98f2faa720ebb2fa859489ba010a8f63e3016d5121fb"
Delims: ["{{{", "}}}"]
// ---
Networks: ["playwithgo_pwg"]
Delims: ["{{{", "}}}"]
-Presteps: [{
- Package: "github.com/play-with-go/gitea"
- Path: "/newuser"
- Args: {
- Repos: [{
- Var: "PUBLIC"
- Pattern: "public"
- Private: false
- }]
- }
-}]
Defs: {
- go115: "go115"
- go116: "go116"
- public: "public"
- public_vcs: "https://{{{.PUBLIC}}}.git"
- public_mod: "{{{.PUBLIC}}}"
- public_dir: "/home/gopher/public"
- public_go: "public.go"
- public_go116: "public_116.go"
- public_func: "DoSomething()"
- gopher: "gopher"
- gopher_vcs: "https://gopher.git"
- gopher_mod: "gopher"
- gopher_dir: "/home/gopher/gopher"
- gopher_go: "gopher.go"
- go_help_env: "go help env"
- pwg: {
- gopher_live: "gopher.live"
- }
- cmdgo: {
- modinit: "go mod init"
- modedit: "go mod edit"
- modtidy: "go mod tidy"
- test: "go test"
- run: "go run"
- get: "go get"
- list: "go list"
- install: "go install"
- generate: "go generate"
- env: "go env"
- help: "go help"
- build: "go build"
- version: "go version"
- vlatest: "latest"
- GO111MODULE: "GO111MODULE"
- GOPROXY: "GOPROXY"
- GOPATH: "GOPATH"
- GOBIN: "GOBIN"
- GOENV: "GOENV"
- GONOPROXY: "GONOPROXY"
- GOSUMDB: "GOSUMDB"
- GONOSUMDB: "GONOSUMDB"
- GOPRIVATE: "GOPRIVATE"
- }
- git: {
- add: "git add"
- remote: "git remote"
- init: "git init -q"
- commit: "git commit -q"
- push: "git push -q"
- tag: "git tag"
- revparse: "git rev-parse"
- branch: "git branch"
- checkout: "git checkout"
+ script: "script.sh"
+ scriptpath: "/home/gopher/script.sh"
+}
+Steps: {
+ create_script: {
+ Target: "/home/gopher/script.sh"
+ Language: "sh"
+ Name: string
+ StepType: 3
+ Source: """
+ echo "Hello, world!"
+
+ """
+ Renderer: {
+ RendererType: 1
+ }
+ Terminal: string
}
- go_help_modprivate: "go help module-private"
- proxygolangorg: {
- waitforcache: "1m"
+ run_script: {
+ DoNotTrim: false
+ Name: string
+ StepType: 1
+ Source: "bash /home/gopher/script.sh"
+ InformationOnly: false
+ Terminal: string
}
}
Scenarios: {
@@ -13832,1142 +13684,19 @@ Terminals: {
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15_1.16@sha256:38ee32afdd785e5f1d9e63033ce5d64cbd098207ed6506669105db97c2dbe9a1"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}
}
-Steps: {
- go115version: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "go115 version"
- InformationOnly: false
- Terminal: string
- }
- go116version: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "go116 version"
- InformationOnly: false
- Terminal: string
- }
- go115default: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "alias go=go115"
- InformationOnly: false
- Terminal: string
- }
- public_init: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- mkdir /home/gopher/public
- cd /home/gopher/public
- go mod init {{{.PUBLIC}}}
- git init -q
- git remote add origin https://{{{.PUBLIC}}}.git
- """
- InformationOnly: false
- Terminal: string
- }
- public_go_initial: {
- Target: "/home/gopher/public/public.go"
- Language: "go"
- Name: string
- StepType: 3
- Source: """
- package public
-
- import (
- "fmt"
- "io/ioutil"
- )
-
- func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
- }
- """
- Renderer: {
- RendererType: 1
- }
- Terminal: string
- }
- public_initial_commit: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- git add public.go go.mod
- git commit -q -m 'Initial commit of public module'
- git push -q origin main
- """
- InformationOnly: false
- Terminal: string
- }
- public_check_initial_porcelain: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "[ \"$(git status --porcelain)\" == \"\" ] || (git status && false)"
- InformationOnly: true
- Terminal: string
- }
- gopher_init: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- mkdir /home/gopher/gopher
- cd /home/gopher/gopher
- go mod init gopher
- """
- InformationOnly: false
- Terminal: string
- }
- gopher_go_initial: {
- Target: "/home/gopher/gopher/gopher.go"
- Language: "go"
- Name: string
- StepType: 3
- Source: """
- package main
-
- import (
-
- "{{{.PUBLIC}}}"
- )
-
- func main() {
- public.DoSomething()
- }
-
- """
- Renderer: {
- RendererType: 1
- }
- Terminal: string
- }
- gopher_get: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "go get -d {{{.PUBLIC}}}@latest"
- InformationOnly: false
- Terminal: string
- }
- golist_gopher_1: {
- Name: string
- StepType: 1
- Source: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Terminal: string
- }
- gopher_run: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "go run ."
- InformationOnly: false
- Terminal: string
- }
- go116default: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "alias go=go116"
- InformationOnly: false
- Terminal: string
- }
- public_bump_discard: {
- Target: "/home/gopher/public/public.go"
- Language: "go"
- Name: string
- StepType: 3
- Source: """
- package public
-
- import (
- "fmt"
- "io"
- )
-
- func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
- }
- """
- Renderer: {
- RendererType: 1
- }
- Terminal: string
- }
- public_bump_commit: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- cd /home/gopher/public
- git add public.go go.mod
- git commit -q -m 'Bump public to go1.16'
- git push -q origin main
- """
- InformationOnly: false
- Terminal: string
- }
- go115default1: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "alias go=go115"
- InformationOnly: false
- Terminal: string
- }
- gopher_update: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- cd /home/gopher/gopher
- GOPROXY=direct go get -d {{{.PUBLIC}}}@latest
- """
- InformationOnly: false
- Terminal: string
- }
- golist_gopher_2: {
- Name: string
- StepType: 1
- Source: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Terminal: string
- }
- gopher_run_fail: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "! go run ."
- InformationOnly: false
- Terminal: string
- }
- public_rollback_mod: {
- Target: "/home/gopher/public/public.go"
- Language: "go"
- Name: string
- StepType: 3
- Source: """
- // +build !go1.16
-
- package public
-
- import (
- "fmt"
- "io/ioutil"
- )
-
- func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
- }
- """
- Renderer: {
- RendererType: 1
- }
- Terminal: string
- }
- public_add_buildtag: {
- Target: "/home/gopher/public/public_116.go"
- Language: "go"
- Name: string
- StepType: 3
- Source: """
- // +build go.1.16
-
- package public
-
- import (
- "fmt"
- "io"
- )
-
- func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
- }
- """
- Renderer: {
- RendererType: 1
- }
- Terminal: string
- }
- public_fix_commit: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- cd /home/gopher/public
- git add public.go public_116.go go.mod
- git commit -q -m 'Fix public bump to go1.16'
- git push -q origin main
- """
- InformationOnly: false
- Terminal: string
- }
- gopher_update_fix: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: """
- cd /home/gopher/gopher
- GOPROXY=direct go get -d {{{.PUBLIC}}}@latest
- """
- InformationOnly: false
- Terminal: string
- }
- golist_gopher_3: {
- Name: string
- StepType: 1
- Source: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Terminal: string
- }
- gopher_run_fix: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "go run ."
- InformationOnly: false
- Terminal: string
- }
-}
-// ---
-Presteps: [{
- Package: "github.com/play-with-go/gitea"
- Path: "/newuser"
- Args: {
- Repos: [{
- Pattern: "public"
- Private: false
- Var: "PUBLIC"
- }]
- }
- Version: """
- {
- "Path": "github.com/play-with-go/gitea/cmd/gitea",
- "Main": {
- "Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
- "Replace": null
- },
- "Deps": [
- {
- "Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
- "Replace": null
- },
- {
- "Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
- "Replace": null
- },
- {
- "Path": "github.com/cockroachdb/apd/v2",
- "Version": "v2.0.1",
- "Sum": "h1:y1Rh3tEU89D+7Tgbw+lp52T6p/GJLpDmNvr10UWqLTE=",
- "Replace": null
- },
- {
- "Path": "github.com/emicklei/proto",
- "Version": "v1.6.15",
- "Sum": "h1:XbpwxmuOPrdES97FrSfpyy67SSCV/wBIKXqgJzh6hNw=",
- "Replace": null
- },
- {
- "Path": "github.com/golang/glog",
- "Version": "v0.0.0-20160126235308-23def4e6c14b",
- "Sum": "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=",
- "Replace": null
- },
- {
- "Path": "github.com/google/uuid",
- "Version": "v1.2.0",
- "Sum": "h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=",
- "Replace": null
- },
- {
- "Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
- "Replace": null
- },
- {
- "Path": "github.com/mpvl/unique",
- "Version": "v0.0.0-20150818121801-cbe035fff7de",
- "Sum": "h1:D5x39vF5KCwKQaw+OC9ZPiLVHXz3UFw2+psEX+gYcto=",
- "Replace": null
- },
- {
- "Path": "github.com/pkg/errors",
- "Version": "v0.9.1",
- "Sum": "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=",
- "Replace": null
- },
- {
- "Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
- "Replace": null
- },
- {
- "Path": "github.com/protocolbuffers/txtpbfmt",
- "Version": "v0.0.0-20201118171849-f6a6b3f636fc",
- "Sum": "h1:gSVONBi2HWMFXCa9jFdYvYk7IwW/mTLxWOF7rXS4LO0=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
- "Replace": null
- },
- {
- "Path": "gopkg.in/retry.v1",
- "Version": "v1.0.3",
- "Sum": "h1:a9CArYczAVv6Qs6VGoLMio99GEs7kY9UzSF9+LD+iGs=",
- "Replace": null
- },
- {
- "Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
- "Replace": null
- }
- ]
- }
- """
- Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PUBLIC"]
-}]
-Terminals: [{
- Name: "term1"
- Description: "The main terminal"
- Scenarios: {
- go115: {
- Image: "playwithgo/go1.15_1.16@sha256:38ee32afdd785e5f1d9e63033ce5d64cbd098207ed6506669105db97c2dbe9a1"
- }
- }
-}]
-Scenarios: [{
- Name: "go115"
- Description: "Go 1.15"
-}]
-Networks: ["playwithgo_pwg"]
-Env: []
-FilenameComment: false
-Steps: {
- go115version: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go115version"
- Order: 0
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go115 version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
- }]
- }
- go116version: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go116version"
- Order: 1
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go116 version"
- ExitCode: 0
- Output: """
- go version go1.16.3 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.16.3 linux/amd64
-
- """
- }]
- }
- go115default: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go115default"
- Order: 2
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "alias go=go115"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- public_init: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_init"
- Order: 3
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "mkdir /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "cd /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "go mod init {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- go: creating new go.mod: module {{{.PUBLIC}}}
-
- """
- ComparisonOutput: """
- go: creating new go.mod: module {{{.PUBLIC}}}
-
- """
- }, {
- Negated: false
- CmdStr: "git init -q"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git remote add origin https://{{{.PUBLIC}}}.git"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- public_go_initial: {
- StepType: 2
- Name: "public_go_initial"
- Order: 4
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- package public
-
- import (
- "fmt"
- "io/ioutil"
- )
-
- func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public.go"
- }
- public_initial_commit: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_initial_commit"
- Order: 5
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "git add public.go go.mod"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git commit -q -m 'Initial commit of public module'"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git push -q origin main"
- ExitCode: 0
- Output: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- ComparisonOutput: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- }]
- }
- public_check_initial_porcelain: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: true
- Name: "public_check_initial_porcelain"
- Order: 6
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "[ \"$(git status --porcelain)\" == \"\" ] || (git status && false)"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- gopher_init: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_init"
- Order: 7
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "mkdir /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "cd /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "go mod init gopher"
- ExitCode: 0
- Output: """
- go: creating new go.mod: module gopher
-
- """
- ComparisonOutput: """
- go: creating new go.mod: module gopher
-
- """
- }]
- }
- gopher_go_initial: {
- StepType: 2
- Name: "gopher_go_initial"
- Order: 8
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- package main
-
- import (
-
- "{{{.PUBLIC}}}"
- )
-
- func main() {
- public.DoSomething()
- }
-
- """
- Target: "/home/gopher/gopher/gopher.go"
- }
- gopher_get: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_get"
- Order: 9
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go get -d {{{.PUBLIC}}}@latest"
- ExitCode: 0
- Output: """
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
-
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- """
- }]
- }
- golist_gopher_1: {
- StepType: 1
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Name: "golist_gopher_1"
- Order: 10
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- }]
- }
- gopher_run: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_run"
- Order: 11
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go run ."
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- go116default: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go116default"
- Order: 12
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "alias go=go116"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- public_bump_discard: {
- StepType: 2
- Name: "public_bump_discard"
- Order: 13
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- package public
-
- import (
- "fmt"
- "io"
- )
-
- func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public.go"
- }
- public_bump_commit: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_bump_commit"
- Order: 14
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git add public.go go.mod"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git commit -q -m 'Bump public to go1.16'"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git push -q origin main"
- ExitCode: 0
- Output: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- ComparisonOutput: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- }]
- }
- go115default1: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go115default1"
- Order: 15
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "alias go=go115"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- gopher_update: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_update"
- Order: 16
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "GOPROXY=direct go get -d {{{.PUBLIC}}}@latest"
- ExitCode: 0
- Output: """
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
-
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- """
- }]
- }
- golist_gopher_2: {
- StepType: 1
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Name: "golist_gopher_2"
- Order: 17
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- }]
- }
- gopher_run_fail: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_run_fail"
- Order: 18
- Terminal: "term1"
- Stmts: [{
- Negated: true
- CmdStr: "go run ."
- ExitCode: 2
- Output: """
- # {{{.PUBLIC}}}
- ../go/pkg/mod/{{{.PUBLIC}}}@v0.0.0-20060102150405-abcedf12345/public.go:9:17: undefined: io.Discard
-
- """
- ComparisonOutput: """
- # {{{.PUBLIC}}}
- ../go/pkg/mod/{{{.PUBLIC}}}@v0.0.0-20060102150405-abcedf12345/public.go:9:17: undefined: io.Discard
-
- """
- }]
- }
- public_rollback_mod: {
- StepType: 2
- Name: "public_rollback_mod"
- Order: 19
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- // +build !go1.16
-
- package public
-
- import (
- "fmt"
- "io/ioutil"
- )
-
- func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public.go"
- }
- public_add_buildtag: {
- StepType: 2
- Name: "public_add_buildtag"
- Order: 20
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- // +build go.1.16
-
- package public
-
- import (
- "fmt"
- "io"
- )
-
- func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public_116.go"
- }
- public_fix_commit: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_fix_commit"
- Order: 21
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git add public.go public_116.go go.mod"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git commit -q -m 'Fix public bump to go1.16'"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git push -q origin main"
- ExitCode: 0
- Output: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- ComparisonOutput: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- }]
- }
- gopher_update_fix: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_update_fix"
- Order: 22
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "GOPROXY=direct go get -d {{{.PUBLIC}}}@latest"
- ExitCode: 0
- Output: """
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
-
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- """
- }]
- }
- golist_gopher_3: {
- StepType: 1
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Name: "golist_gopher_3"
- Order: 23
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- }]
- }
- gopher_run_fix: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_run_fix"
- Order: 24
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go run ."
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
-}
-Hash: "38e873864a7ccbdfcc6c5665dcf66289b102f3e1edc415b6a38eca97cefaf28f"
-Delims: ["{{{", "}}}"]
-// ---
-Networks: ["playwithgo_pwg"]
-Delims: ["{{{", "}}}"]
-Defs: {
- script: "script.sh"
- scriptpath: "/home/gopher/script.sh"
-}
-Steps: {
- create_script: {
- Target: "/home/gopher/script.sh"
- Language: "sh"
- Name: string
- StepType: 3
- Source: """
- echo "Hello, world!"
-
- """
- Renderer: {
- RendererType: 1
- }
- Terminal: string
- }
- run_script: {
- DoNotTrim: false
- Name: string
- StepType: 1
- Source: "bash /home/gopher/script.sh"
- InformationOnly: false
- Terminal: string
- }
-}
-Scenarios: {
- go115: {
- Name: string
- Description: "Go 1.15"
- }
-}
-Terminals: {
- term1: {
- Name: string
- Description: "The main terminal"
- Scenarios: {
- go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
- }
- }
- }
-}
-// ---
-Terminals: [{
- Name: "term1"
- Description: "The main terminal"
- Scenarios: {
- go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
- }
+// ---
+Terminals: [{
+ Name: "term1"
+ Description: "The main terminal"
+ Scenarios: {
+ go115: {
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
+ }
}
}]
Scenarios: [{
@@ -15015,7 +13744,7 @@ Steps: {
}]
}
}
-Hash: "24af23fafe43b0df2bd68b991e110ab011c6cd12d51062d13ab12b13628494ce"
+Hash: "271f9cdbe52fe75c83acb8deecf95dc51ec068d641335bba20245003681ce10a"
Delims: ["{{{", "}}}"]
// ---
import "strings"
@@ -15056,7 +13785,6 @@ import "strings"
env: {
DOCKER_HUB_USER: "playwithgopher"
DOCKER_HUB_TOKEN: "${{ secrets.DOCKER_HUB_TOKEN }}"
- PREGUIDE_DEBUG: true
PLAYWITHGODEV_CONTRIBUTOR_USER: "playwithgopher_github"
PLAYWITHGODEV_CONTRIBUTOR_PASSWORD: "${{ secrets.PLAYWITHGODEV_CONTRIBUTOR_PASSWORD }}"
PLAYWITHGOPHER_GITHUB_PAT: "${{ secrets.PLAYWITHGOPHER_GITHUB_PAT }}"
@@ -15066,8 +13794,8 @@ import "strings"
strategy: {
"fail-fast": false
matrix: {
- go_version: ["1.16.3"]
- os: ["ubuntu-18.04"]
+ go_version: ["1.19.1"]
+ os: ["ubuntu-20.04"]
}
}
"runs-on": "${{ matrix.os }}"
@@ -15093,35 +13821,32 @@ import "strings"
}, {
name: "Env setup"
run: "./_scripts/env.sh github"
+ }, {
+ name: "Verify"
+ run: "go mod verify"
+ }, {
+ name: "Tidy"
+ run: "go mod tidy"
+ }, {
+ name: "Run unity tests"
+ run: "go run github.com/cue-sh/unity/cmd/unity test"
}, {
name: "docker-compose build"
run: "./_scripts/dc.sh build"
}, {
name: "Start gitea services"
run: "./_scripts/dc.sh up -d cmd_gitea"
- }, {
- name: "Verify"
- run: "go mod verify"
}, {
name: "Re-generate guides"
run: "_scripts/generateGuides.sh"
- }, {
- name: "Race check re-generating guides"
- run: "go run -race github.com/play-with-go/preguide/cmd/preguide gen -out ../_posts"
- "working-directory": "./guides"
- if: "${{ github.event_name == 'schedule' }}"
+ env: {
+ CGO_ENABLED: "0"
+ PREGUIDE_SKIP_CACHE: "true"
+ PREGUIDE_PROGRESS: "true"
+ }
}, {
name: "Re-generate everything else"
run: "_scripts/generateEverythingElse.sh"
- }, {
- name: "Tidy"
- run: "go mod tidy"
- }, {
- name: "Verify commit is clean"
- run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
- }, {
- name: "Run unity tests"
- run: "go run github.com/cue-sh/unity/cmd/unity test"
}, {
name: "Verify commit is clean"
run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
@@ -15135,50 +13860,6 @@ import "strings"
"working-directory": string
}
}
-}, {
- file: "wip.yml"
- schema: {
- #architecture: "ARM32" | "x64" | "x86"
- name: "WIP"
- #branch: [strings.MinRunes(1)]
- #configuration: string | number | {} | []
- #container: string | {
- image: string
- }
- #defaults: {}
- #env: {}
- #event: "check_run" | "check_suite" | "create" | "delete" | "deployment" | "deployment_status" | "fork" | "gollum" | "issue_comment" | "issues" | "label" | "member" | "milestone" | "page_build" | "project" | "project_card" | "project_column" | "public" | "pull_request" | "pull_request_review" | "pull_request_review_comment" | "push" | "registry_package" | "release" | "status" | "watch" | "repository_dispatch"
- #eventObject: null | {}
- #globs: [strings.MinRunes(1)]
- #machine: "linux" | "macos" | "windows"
- #name: =~"^[_a-zA-Z][a-zA-Z0-9_-]*$"
- #path: [strings.MinRunes(1)]
- #ref: null | {}
- #shell: string | "bash" | "pwsh" | "python" | "sh" | "cmd" | "powershell"
- #types: [_]
- on: {
- pull_request: {
- types: ["opened", "synchronize", "reopened", "edited"]
- }
- }
- #: {
- "working-directory": string
- }
- jobs: {
- wip: {
- env: {
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- }
- "runs-on": "ubuntu-18.04"
- steps: [{
- uses: "myitcv/wip@v1.0.0"
- with: {
- token: "${{ secrets.GITHUB_TOKEN }}"
- }
- }]
- }
- }
- }
}]
#testWorkflow: {
#architecture: "ARM32" | "x64" | "x86"
@@ -15202,7 +13883,6 @@ import "strings"
env: {
DOCKER_HUB_USER: "playwithgopher"
DOCKER_HUB_TOKEN: "${{ secrets.DOCKER_HUB_TOKEN }}"
- PREGUIDE_DEBUG: true
PLAYWITHGODEV_CONTRIBUTOR_USER: "playwithgopher_github"
PLAYWITHGODEV_CONTRIBUTOR_PASSWORD: "${{ secrets.PLAYWITHGODEV_CONTRIBUTOR_PASSWORD }}"
PLAYWITHGOPHER_GITHUB_PAT: "${{ secrets.PLAYWITHGOPHER_GITHUB_PAT }}"
@@ -15215,7 +13895,7 @@ import "strings"
strategy: {
"fail-fast": false
matrix: {
- go_version: ["1.16.3"]
+ go_version: ["1.19.1"]
}
}
"runs-on": "${{ matrix.os }}"
@@ -15241,35 +13921,32 @@ import "strings"
}, {
name: "Env setup"
run: "./_scripts/env.sh github"
+ }, {
+ name: "Verify"
+ run: "go mod verify"
+ }, {
+ name: "Tidy"
+ run: "go mod tidy"
+ }, {
+ name: "Run unity tests"
+ run: "go run github.com/cue-sh/unity/cmd/unity test"
}, {
name: "docker-compose build"
run: "./_scripts/dc.sh build"
}, {
name: "Start gitea services"
run: "./_scripts/dc.sh up -d cmd_gitea"
- }, {
- name: "Verify"
- run: "go mod verify"
}, {
name: "Re-generate guides"
run: "_scripts/generateGuides.sh"
- }, {
- name: "Race check re-generating guides"
- run: "go run -race github.com/play-with-go/preguide/cmd/preguide gen -out ../_posts"
- "working-directory": "./guides"
- if: "${{ github.event_name == 'schedule' }}"
+ env: {
+ CGO_ENABLED: "0"
+ PREGUIDE_SKIP_CACHE: "true"
+ PREGUIDE_PROGRESS: "true"
+ }
}, {
name: "Re-generate everything else"
run: "_scripts/generateEverythingElse.sh"
- }, {
- name: "Tidy"
- run: "go mod tidy"
- }, {
- name: "Verify commit is clean"
- run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
- }, {
- name: "Run unity tests"
- run: "go run github.com/cue-sh/unity/cmd/unity test"
}, {
name: "Verify commit is clean"
run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
@@ -15314,7 +13991,6 @@ test: {
env: {
DOCKER_HUB_USER: "playwithgopher"
DOCKER_HUB_TOKEN: "${{ secrets.DOCKER_HUB_TOKEN }}"
- PREGUIDE_DEBUG: true
PLAYWITHGODEV_CONTRIBUTOR_USER: "playwithgopher_github"
PLAYWITHGODEV_CONTRIBUTOR_PASSWORD: "${{ secrets.PLAYWITHGODEV_CONTRIBUTOR_PASSWORD }}"
PLAYWITHGOPHER_GITHUB_PAT: "${{ secrets.PLAYWITHGOPHER_GITHUB_PAT }}"
@@ -15324,8 +14000,8 @@ test: {
strategy: {
"fail-fast": false
matrix: {
- go_version: ["1.16.3"]
- os: ["ubuntu-18.04"]
+ go_version: ["1.19.1"]
+ os: ["ubuntu-20.04"]
}
}
"runs-on": "${{ matrix.os }}"
@@ -15351,35 +14027,32 @@ test: {
}, {
name: "Env setup"
run: "./_scripts/env.sh github"
+ }, {
+ name: "Verify"
+ run: "go mod verify"
+ }, {
+ name: "Tidy"
+ run: "go mod tidy"
+ }, {
+ name: "Run unity tests"
+ run: "go run github.com/cue-sh/unity/cmd/unity test"
}, {
name: "docker-compose build"
run: "./_scripts/dc.sh build"
}, {
name: "Start gitea services"
run: "./_scripts/dc.sh up -d cmd_gitea"
- }, {
- name: "Verify"
- run: "go mod verify"
}, {
name: "Re-generate guides"
run: "_scripts/generateGuides.sh"
- }, {
- name: "Race check re-generating guides"
- run: "go run -race github.com/play-with-go/preguide/cmd/preguide gen -out ../_posts"
- "working-directory": "./guides"
- if: "${{ github.event_name == 'schedule' }}"
+ env: {
+ CGO_ENABLED: "0"
+ PREGUIDE_SKIP_CACHE: "true"
+ PREGUIDE_PROGRESS: "true"
+ }
}, {
name: "Re-generate everything else"
run: "_scripts/generateEverythingElse.sh"
- }, {
- name: "Tidy"
- run: "go mod tidy"
- }, {
- name: "Verify commit is clean"
- run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
- }, {
- name: "Run unity tests"
- run: "go run github.com/cue-sh/unity/cmd/unity test"
}, {
name: "Verify commit is clean"
run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
@@ -15393,45 +14066,3 @@ test: {
"working-directory": string
}
}
-wip: {
- #architecture: "ARM32" | "x64" | "x86"
- #branch: [strings.MinRunes(1)]
- #configuration: string | number | {} | []
- #container: string | {
- image: string
- }
- #defaults: {}
- #env: {}
- #event: "check_run" | "check_suite" | "create" | "delete" | "deployment" | "deployment_status" | "fork" | "gollum" | "issue_comment" | "issues" | "label" | "member" | "milestone" | "page_build" | "project" | "project_card" | "project_column" | "public" | "pull_request" | "pull_request_review" | "pull_request_review_comment" | "push" | "registry_package" | "release" | "status" | "watch" | "repository_dispatch"
- #eventObject: null | {}
- #globs: [strings.MinRunes(1)]
- #machine: "linux" | "macos" | "windows"
- #name: =~"^[_a-zA-Z][a-zA-Z0-9_-]*$"
- #path: [strings.MinRunes(1)]
- #ref: null | {}
- #shell: string | "bash" | "pwsh" | "python" | "sh" | "cmd" | "powershell"
- #types: [_]
- name: "WIP"
- on: {
- pull_request: {
- types: ["opened", "synchronize", "reopened", "edited"]
- }
- }
- #: {
- "working-directory": string
- }
- jobs: {
- wip: {
- env: {
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- }
- "runs-on": "ubuntu-18.04"
- steps: [{
- uses: "myitcv/wip@v1.0.0"
- with: {
- token: "${{ secrets.GITHUB_TOKEN }}"
- }
- }]
- }
- }
-}
diff --git a/docker/cmd_gitea/Dockerfile b/docker/cmd_gitea/Dockerfile
index 7102413d..a6e3f4a2 100644
--- a/docker/cmd_gitea/Dockerfile
+++ b/docker/cmd_gitea/Dockerfile
@@ -1,11 +1,5 @@
-# syntax = docker/dockerfile@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc
-# SHA256 above is an absolute reference to docker/dockerfile:1.2.1
-
-# The comment regarding the syntax reference is not at the top of the file
-# because the syntax line must be the first in the file.
-
-# golang:1.16
-FROM golang@sha256:f3f90f4d30866c1bdae90012b506bd5e557ce27ccd2510ed30a011c44c1affc8 AS stage1
+# golang:1.19.1
+FROM golang@sha256:2d17ffd12a2cdb25d4a633ad25f8dc29608ed84f31b3b983427d825280427095 AS stage1
ENV GOCACHE=/root/.cache/go/gocache
ENV GOMODCACHE=/root/.cache/go/gomodcache
@@ -17,7 +11,7 @@ COPY go.mod go.sum .
RUN --mount=type=cache,target=/root/.cache/go go build github.com/play-with-go/gitea/cmd/gitea
# buildpack-deps:buster-scm - because for now we need ssh-keyscan
-FROM buildpack-deps@sha256:f010c9887ecea10d052247ef8befb79c2d17ea3f92ab6cb05039caab757fb14e
+FROM buildpack-deps@sha256:07e999f2b4c56d4a9e8e5be86f2e2d865c22e6786e0322f7316bef4a3f65765f
RUN mkdir /runbin
diff --git a/docker/controller/Dockerfile b/docker/controller/Dockerfile
index 55ec0fdb..087a7baf 100644
--- a/docker/controller/Dockerfile
+++ b/docker/controller/Dockerfile
@@ -1,11 +1,5 @@
-# syntax = docker/dockerfile@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc
-# SHA256 above is an absolute reference to docker/dockerfile:1.2.1
-
-# The comment regarding the syntax reference is not at the top of the file
-# because the syntax line must be the first in the file.
-
-# golang:1.16
-FROM golang@sha256:f3f90f4d30866c1bdae90012b506bd5e557ce27ccd2510ed30a011c44c1affc8 AS stage1
+# golang:1.19.1
+FROM golang@sha256:2d17ffd12a2cdb25d4a633ad25f8dc29608ed84f31b3b983427d825280427095 AS stage1
ENV GOCACHE=/root/.cache/go/gocache
ENV GOMODCACHE=/root/.cache/go/gomodcache
@@ -17,8 +11,8 @@ COPY cmd/ ./cmd
RUN --mount=type=cache,target=/root/.cache/go go build -o cmd/controller/controller ./cmd/controller
-# busybox 1.32.0
-FROM busybox@sha256:d366a4665ab44f0648d7a00ae3fae139d55e32f9712c67accd604bb55df9d05a
+# busybox
+FROM busybox@sha256:ad9bd57a3a57cc95515c537b89aaa69d83a6df54c4050fcf2b41ad367bec0cd5
RUN mkdir /runbin
diff --git a/docker/pwd/Dockerfile b/docker/pwd/Dockerfile
index 4817c337..52f31ec6 100644
--- a/docker/pwd/Dockerfile
+++ b/docker/pwd/Dockerfile
@@ -1,11 +1,5 @@
-# syntax = docker/dockerfile@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc
-# SHA256 above is an absolute reference to docker/dockerfile:1.2.1
-
-# The comment regarding the syntax reference is not at the top of the file
-# because the syntax line must be the first in the file.
-
-# golang:1.16
-FROM golang@sha256:f3f90f4d30866c1bdae90012b506bd5e557ce27ccd2510ed30a011c44c1affc8 AS stage1
+# golang:1.19.1
+FROM golang@sha256:2d17ffd12a2cdb25d4a633ad25f8dc29608ed84f31b3b983427d825280427095 AS stage1
ENV GOCACHE=/root/.cache/go/gocache
ENV GOMODCACHE=/root/.cache/go/gomodcache
@@ -16,10 +10,10 @@ COPY go.mod go.sum .
RUN --mount=type=cache,target=/root/.cache/go go build github.com/play-with-docker/play-with-docker
-# golang:1.15.2
+# golang:1.19.1
#
# TODO: move this to a more slimline image that has ssh etc
-FROM golang@sha256:da7ff43658854148b401f24075c0aa390e3b52187ab67cab0043f2b15e754a68
+FROM golang@sha256:2d17ffd12a2cdb25d4a633ad25f8dc29608ed84f31b3b983427d825280427095
RUN mkdir /runbin
diff --git a/docker/site/Dockerfile b/docker/site/Dockerfile
index e22db4ba..1a9d25fc 100644
--- a/docker/site/Dockerfile
+++ b/docker/site/Dockerfile
@@ -1,8 +1,160 @@
-# jekyll/jekyll:3.8
-FROM jekyll/jekyll@sha256:9521c8aae4739fcbc7137ead19f91841b833d671542f13e91ca40280e88d6e34
+FROM ruby:2.7.1-alpine3.11
+COPY docker/site/copy /
+
+#
+# EnvVars
+# Ruby
+#
+
+ENV BUNDLE_HOME=/usr/local/bundle
+ENV BUNDLE_APP_CONFIG=/usr/local/bundle
+ENV BUNDLE_DISABLE_PLATFORM_WARNINGS=true
+ENV BUNDLE_BIN=/usr/local/bundle/bin
+ENV GEM_BIN=/usr/gem/bin
+ENV GEM_HOME=/usr/gem
+ENV RUBYOPT=-W0
+
+#
+# EnvVars
+# Image
+#
+
+ENV JEKYLL_VAR_DIR=/var/jekyll
+ENV JEKYLL_DATA_DIR=/srv/jekyll
+ENV JEKYLL_BIN=/usr/jekyll/bin
+ENV JEKYLL_ENV=development
+
+#
+# EnvVars
+# System
+#
+
+ENV LANG=en_US.UTF-8
+ENV LANGUAGE=en_US:en
+ENV TZ=America/Chicago
+ENV PATH="$JEKYLL_BIN:$PATH"
+ENV LC_ALL=en_US.UTF-8
+ENV LANG=en_US.UTF-8
+ENV LANGUAGE=en_US
+
+#
+# EnvVars
+# User
+#
+
+#
+# EnvVars
+# Main
+#
+
+env VERBOSE=false
+env FORCE_POLLING=false
+env DRAFTS=false
+
+#
+# Packages
+# User
+#
+
+#
+# Packages
+# Dev
+#
+
+RUN apk --no-cache add \
+ zlib-dev \
+ libffi-dev \
+ build-base \
+ libxml2-dev \
+ imagemagick-dev \
+ readline-dev \
+ libxslt-dev \
+ libffi-dev \
+ yaml-dev \
+ zlib-dev \
+ vips-dev \
+ sqlite-dev \
+ cmake
+
+#
+# Packages
+# Main
+#
+
+RUN apk --no-cache add \
+ linux-headers \
+ openjdk8-jre \
+ less \
+ zlib \
+ libxml2 \
+ readline \
+ libxslt \
+ libffi \
+ git \
+ nodejs \
+ tzdata \
+ shadow \
+ bash \
+ su-exec \
+ nodejs-npm \
+ libressl \
+ yarn
+
+#
+# Gems
+# Update
+#
+
+RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc
+RUN unset GEM_HOME && unset GEM_BIN && \
+ yes | gem update --system
+
+#
+# Gems
+# Main
+#
+
+RUN unset GEM_HOME && unset GEM_BIN && yes | gem install --force bundler
+RUN gem install jekyll -v3.8 -- \
+ --use-system-libraries
+
+#
+# Gems
+# User
+#
+
+RUN gem install html-proofer jekyll-reload jekyll-mentions jekyll-coffeescript jekyll-sass-converter jekyll-commonmark jekyll-paginate jekyll-compose jekyll-assets RedCloth kramdown jemoji -- --use-system-libraries
+RUN addgroup -Sg 1000 jekyll
+RUN adduser -Su 1000 -G \
+ jekyll jekyll
+
+#
+# Remove development packages on minimal.
+# And on pages. Gems are unsupported.
+#
+
+RUN mkdir -p $JEKYLL_VAR_DIR
+RUN mkdir -p $JEKYLL_DATA_DIR
+RUN chown -R jekyll:jekyll $JEKYLL_DATA_DIR
+RUN chown -R jekyll:jekyll $JEKYLL_VAR_DIR
+RUN chown -R jekyll:jekyll $BUNDLE_HOME
+RUN rm -rf /home/jekyll/.gem
+RUN rm -rf $BUNDLE_HOME/cache
+RUN rm -rf $GEM_HOME/cache
+RUN rm -rf /root/.gem
+
+# Work around rubygems/rubygems#3572
+RUN mkdir -p /usr/gem/cache/bundle
+RUN chown -R jekyll:jekyll \
+ /usr/gem/cache/bundle
+
+CMD ["jekyll", "--help"]
+ENTRYPOINT ["/usr/jekyll/bin/entrypoint"]
+WORKDIR /srv/jekyll
+VOLUME /srv/jekyll
+EXPOSE 35729
+EXPOSE 4000
RUN gem install jekyll-redirect-from:0.16.0 jekyll-toc:0.16.1
# Overwrite the entrypoint and jekyll with more sensible versions
-COPY docker/site/entrypoint /usr/jekyll/bin/entrypoint
-COPY docker/site/jekyll /usr/jekyll/bin/jekyll
diff --git a/docker/site/copy/usr/jekyll/bin/bundle b/docker/site/copy/usr/jekyll/bin/bundle
new file mode 100755
index 00000000..31a7cb3b
--- /dev/null
+++ b/docker/site/copy/usr/jekyll/bin/bundle
@@ -0,0 +1,34 @@
+#!/bin/bash
+[ "$DEBUG" = "true" ] && set -x
+exe=/usr/local/bin/bundle
+default-gem-permissions
+set -e
+
+#
+# Skip out if we aren't UID=0 because it's Jekyll
+# Don't prevent the user from doing normal bundle stuff
+# this is really rare but can happen during debugs
+#
+if [[ ! -f "Gemfile" ]] || [ "$(id -u)" != "0" ]; then
+ exec $exe "$@"
+fi
+
+if [ "$1" = "install" ] || [ "$1" = "update" ]; then
+ # There is no need to report that we are using check.
+ if [ "$1" = "update" ] || ! su-exec jekyll $exe check 1>/dev/null 2>&1; then
+ if [ ! -f "/updated" ] && connected && [ -f ".apk" ]; then
+ apk add --no-cache --no-progress \
+ $(cat .apk)
+ fi
+
+ su-exec jekyll $exe config jobs 2
+ su-exec jekyll $exe config ignore_messages true
+ su-exec jekyll $exe config build.nokogiri --use-system-libraries
+ su-exec jekyll $exe config disable_version_check true
+ unset DEBUG; su-exec jekyll $exe "$@"
+ su-exec jekyll $exe clean \
+ 2>/dev/null || true
+ fi
+else
+ su-exec jekyll $exe "$@"
+fi
diff --git a/docker/site/copy/usr/jekyll/bin/connected b/docker/site/copy/usr/jekyll/bin/connected
new file mode 100755
index 00000000..9964a7d3
--- /dev/null
+++ b/docker/site/copy/usr/jekyll/bin/connected
@@ -0,0 +1,24 @@
+#!/bin/sh
+[ "$DEBUG" = "true" ] && set -x
+set -e
+
+connected=$JEKYLL_VAR_DIR/connected
+disconnected=$JEKYLL_VAR_DIR/disconnected
+[ -f "$disconnected" ] && [ -f "$connected" ] && rm -f "$disconnected" "$connected"
+{ [ "$CONNECTED" = "false" ] || [ -f "$disconnected" ]; } && exit 1
+{ [ "$CONNECTED" = "true" ] || [ -f "$connected" ]; } && exit 0
+
+#
+# If we aren't connected, or forced as connected, or not
+# connected then we should check with WGet (because of Proxies)
+# whether we are connected to the internet.
+#
+
+url=https://detectportal.firefox.com
+if wget -q --spider "$url" -O /dev/null 2>/dev/null; then
+ su-exec jekyll touch "$connected"
+ exit 0
+else
+ su-exec jekyll touch $disconnected
+ exit 1
+fi
diff --git a/docker/site/copy/usr/jekyll/bin/default-args b/docker/site/copy/usr/jekyll/bin/default-args
new file mode 100755
index 00000000..1d8b64bf
--- /dev/null
+++ b/docker/site/copy/usr/jekyll/bin/default-args
@@ -0,0 +1,28 @@
+#!/usr/bin/env ruby
+require "shellwords"
+
+def to_bool(val)
+ %w(true 1).include?(val) \
+ ? "true" : nil
+end
+
+%w(VERBOSE DRAFTS FORCE_POLLING).each do |v|
+ ENV[v] = to_bool(
+ ENV[v]
+ )
+end
+
+def build?; %w(b build).include?(ARGV[0]); end
+def serve?; %w(s serve server).include?(ARGV[0]); end
+def safe?; ENV["JEKYLL_DOCKER_TAG"] == "pages" || ENV["JEKYLL_DOCKER_NAME"] == "minimal"; end
+def debug?; ENV["VERBOSE"]; end
+
+ARGV.shift and ARGV.unshift("serve") if "s" == ARGV[0]
+ARGV.push("--force_polling") if ENV["FORCE_POLLING"] && (build? || serve?)
+ARGV.unshift(ARGV.shift, "-H", "0.0.0.0") if serve?
+ARGV.push("--drafts") if ENV["DRAFTS"]
+ARGV.push("--verbose") if debug?
+
+$stdout.puts Shellwords.shelljoin(
+ ARGV
+)
diff --git a/docker/site/copy/usr/jekyll/bin/default-gem-permissions b/docker/site/copy/usr/jekyll/bin/default-gem-permissions
new file mode 100755
index 00000000..33e09bd7
--- /dev/null
+++ b/docker/site/copy/usr/jekyll/bin/default-gem-permissions
@@ -0,0 +1,8 @@
+#!/bin/bash
+[ "$DEBUG" = "true" ] && set -x
+set -e
+
+if [ "$(id -u)" = "0" ]; then
+ chown -R jekyll:jekyll "$BUNDLE_HOME"
+ chown -R jekyll:jekyll /usr/gem
+fi
diff --git a/docker/site/entrypoint b/docker/site/copy/usr/jekyll/bin/entrypoint
similarity index 100%
rename from docker/site/entrypoint
rename to docker/site/copy/usr/jekyll/bin/entrypoint
diff --git a/docker/site/copy/usr/jekyll/bin/gem b/docker/site/copy/usr/jekyll/bin/gem
new file mode 100644
index 00000000..62d68682
--- /dev/null
+++ b/docker/site/copy/usr/jekyll/bin/gem
@@ -0,0 +1,7 @@
+#!/bin/bash
+[ "$DEBUG" = "true" ] && set -x
+default-gem-permissions
+exe=/usr/local/bin/gem
+set -e
+
+exec $exe "$@"
diff --git a/docker/site/jekyll b/docker/site/copy/usr/jekyll/bin/jekyll
similarity index 100%
rename from docker/site/jekyll
rename to docker/site/copy/usr/jekyll/bin/jekyll
diff --git a/go.mod b/go.mod
index 16872c4e..fddc0cee 100644
--- a/go.mod
+++ b/go.mod
@@ -1,15 +1,127 @@
module github.com/play-with-go/play-with-go
-go 1.16
+go 1.18
require (
- cuelang.org/go v0.4.0
+ cuelang.org/go v0.4.3
github.com/cue-sh/unity v0.0.0-20210426155349-ff10fe17f32a
github.com/gorilla/securecookie v1.1.1
- github.com/kr/pretty v0.2.1
+ github.com/kr/pretty v0.3.0
github.com/myitcv/docker-compose v0.0.0-20200623052903-c60483a3250f
github.com/play-with-docker/play-with-docker v0.0.3-0.20201025222131-e8486b8100e0
- github.com/play-with-go/gitea v0.0.0-20210723114817-feef4e6b64a7
- github.com/play-with-go/preguide v0.0.2-0.20210723101428-f0437229c60d
+ github.com/play-with-go/gitea v0.0.0-20220916095345-fddafa3403c2
+ github.com/play-with-go/preguide v0.0.2-0.20220916045313-f81d11764005
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
)
+
+require (
+ cloud.google.com/go v0.81.0 // indirect
+ code.gitea.io/sdk/gitea v0.15.1 // indirect
+ docker.io/go-docker v1.0.0 // indirect
+ github.com/BurntSushi/toml v0.4.1 // indirect
+ github.com/Microsoft/go-winio v0.4.5 // indirect
+ github.com/PuerkitoBio/purell v1.1.1 // indirect
+ github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
+ github.com/aws/aws-sdk-go v1.38.23 // indirect
+ github.com/beorn7/perks v1.0.1 // indirect
+ github.com/cespare/xxhash/v2 v2.1.1 // indirect
+ github.com/cockroachdb/apd/v2 v2.0.1 // indirect
+ github.com/containerd/containerd v1.0.0-beta.2 // indirect
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/docker/distribution v2.6.0-rc.1.0.20170726174610-edc3ab29cdff+incompatible // indirect
+ github.com/docker/go-connections v0.3.0 // indirect
+ github.com/docker/go-units v0.3.2 // indirect
+ github.com/emicklei/go-restful v2.4.0+incompatible // indirect
+ github.com/emicklei/go-restful-swagger12 v0.0.0-20170208215640-dcef7f557305 // indirect
+ github.com/emicklei/proto v1.6.15 // indirect
+ github.com/ghodss/yaml v1.0.0 // indirect
+ github.com/go-openapi/jsonpointer v0.19.5 // indirect
+ github.com/go-openapi/jsonreference v0.0.0-20161105162150-36d33bfe519e // indirect
+ github.com/go-openapi/spec v0.0.0-20171105074921-a4fa9574c7aa // indirect
+ github.com/go-openapi/swag v0.19.5 // indirect
+ github.com/gobwas/glob v0.2.3 // indirect
+ github.com/gogo/protobuf v1.2.1 // indirect
+ github.com/gohugoio/hugo v0.86.0 // indirect
+ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
+ github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
+ github.com/golang/protobuf v1.5.2 // indirect
+ github.com/google/btree v1.0.0 // indirect
+ github.com/google/go-github v13.0.1-0.20171014143926-a021c14a5f19+incompatible // indirect
+ github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 // indirect
+ github.com/google/gofuzz v1.0.0 // indirect
+ github.com/google/uuid v1.2.0 // indirect
+ github.com/googleapis/gax-go/v2 v2.0.5 // indirect
+ github.com/googleapis/gnostic v0.1.0 // indirect
+ github.com/gorilla/handlers v1.4.1 // indirect
+ github.com/gorilla/mux v1.8.0 // indirect
+ github.com/gorilla/websocket v1.4.2 // indirect
+ github.com/gregjones/httpcache v0.0.0-20171119193500-2bcd89a1743f // indirect
+ github.com/hashicorp/go-version v1.2.1 // indirect
+ github.com/hashicorp/golang-lru v0.5.1 // indirect
+ github.com/inconshreveable/go-vhost v0.0.0-20160627193104-06d84117953b // indirect
+ github.com/inconshreveable/mousetrap v1.0.0 // indirect
+ github.com/jmespath/go-jmespath v0.4.0 // indirect
+ github.com/json-iterator/go v1.1.10 // indirect
+ github.com/jteeuwen/go-bindata v3.0.7+incompatible // indirect
+ github.com/juju/ratelimit v1.0.1 // indirect
+ github.com/kr/text v0.2.0 // indirect
+ github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect
+ github.com/mattn/go-isatty v0.0.12 // indirect
+ github.com/mattn/go-runewidth v0.0.9 // indirect
+ github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
+ github.com/miekg/dns v1.0.14 // indirect
+ github.com/mitchellh/mapstructure v1.3.3 // indirect
+ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
+ github.com/modern-go/reflect2 v1.0.1 // indirect
+ github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect
+ github.com/niklasfasching/go-org v1.5.0 // indirect
+ github.com/olekukonko/tablewriter v0.0.5 // indirect
+ github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
+ github.com/opencontainers/image-spec v1.0.0 // indirect
+ github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
+ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e // indirect
+ github.com/pkg/errors v0.9.1 // indirect
+ github.com/pmezard/go-difflib v1.0.0 // indirect
+ github.com/prometheus/client_golang v1.7.1 // indirect
+ github.com/prometheus/client_model v0.2.0 // indirect
+ github.com/prometheus/common v0.10.0 // indirect
+ github.com/prometheus/procfs v0.1.3 // indirect
+ github.com/protocolbuffers/txtpbfmt v0.0.0-20201118171849-f6a6b3f636fc // indirect
+ github.com/rogpeppe/go-internal v1.9.0 // indirect
+ github.com/rs/xid v0.0.0-20170604230408-02dd45c33376 // indirect
+ github.com/satori/go.uuid v1.1.1-0.20170321230731-5bf94b69c6b6 // indirect
+ github.com/shirou/gopsutil v2.16.13-0.20170924065440-6e221c482653+incompatible // indirect
+ github.com/spf13/afero v1.6.0 // indirect
+ github.com/spf13/cast v1.3.1 // indirect
+ github.com/spf13/cobra v1.4.0 // indirect
+ github.com/spf13/jwalterweatherman v1.1.0 // indirect
+ github.com/spf13/pflag v1.0.5 // indirect
+ github.com/stretchr/objx v0.2.0 // indirect
+ github.com/stretchr/testify v1.6.1 // indirect
+ github.com/urfave/negroni v0.2.0 // indirect
+ go.opencensus.io v0.23.0 // indirect
+ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
+ golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e // indirect
+ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
+ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect
+ golang.org/x/oauth2 v0.0.0-20210413134643-5e61552d6c78 // indirect
+ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
+ golang.org/x/text v0.3.7 // indirect
+ golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f // indirect
+ google.golang.org/api v0.45.0 // indirect
+ google.golang.org/appengine v1.6.7 // indirect
+ google.golang.org/genproto v0.0.0-20210413151531-c14fb6ef47c3 // indirect
+ google.golang.org/grpc v1.37.0 // indirect
+ google.golang.org/protobuf v1.26.0 // indirect
+ gopkg.in/inf.v0 v0.9.0 // indirect
+ gopkg.in/retry.v1 v1.0.3 // indirect
+ gopkg.in/yaml.v2 v2.4.0 // indirect
+ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
+ honnef.co/go/tools v0.3.3 // indirect
+ k8s.io/api v0.0.0-20171027084545-218912509d74 // indirect
+ k8s.io/apimachinery v0.0.0-20171027084411-18a564baac72 // indirect
+ k8s.io/client-go v5.0.1+incompatible // indirect
+ k8s.io/kube-openapi v0.0.0-20171101183504-39a7bf85c140 // indirect
+ mvdan.cc/dockexec v0.0.0-20200617140021-ca98d4465984 // indirect
+ mvdan.cc/sh/v3 v3.5.1 // indirect
+)
diff --git a/go.sum b/go.sum
index 391d7824..3f57e5c7 100644
--- a/go.sum
+++ b/go.sum
@@ -44,15 +44,16 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
cloud.google.com/go/storage v1.9.0/go.mod h1:m+/etGaqZbylxaNT876QGXqEHp4PR2Rq5GMqICWb9bU=
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
-code.gitea.io/sdk/gitea v0.13.1 h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=
-code.gitea.io/sdk/gitea v0.13.1/go.mod h1:z3uwDV/b9Ls47NGukYM9XhnHtqPh/J+t40lsUrR6JDY=
+code.gitea.io/gitea-vet v0.2.1/go.mod h1:zcNbT/aJEmivCAhfmkHOlT645KNOf9W2KnkLgFjGGfE=
+code.gitea.io/sdk/gitea v0.15.1 h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=
+code.gitea.io/sdk/gitea v0.15.1/go.mod h1:klY2LVI3s3NChzIk/MzMn7G1FHrfU7qd63iSMVoHRBA=
contrib.go.opencensus.io/exporter/aws v0.0.0-20181029163544-2befc13012d0/go.mod h1:uu1P0UCM/6RbsMrgPa98ll8ZcHM858i/AD06a9aLRCA=
contrib.go.opencensus.io/exporter/stackdriver v0.12.1/go.mod h1:iwB6wGarfphGGe/e5CWqyUk/cLzKnWsOKPVW3no6OTw=
contrib.go.opencensus.io/integrations/ocsql v0.1.4/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE=
contrib.go.opencensus.io/resource v0.1.1/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcigGlFvXwEGEnkRLA=
cuelang.org/go v0.3.0-beta.5.0.20210217105737-430c3ddf5331/go.mod h1:Ikvs157igkGV5gFUdYSFa+lWp/CDteVhubPTXyvPRtA=
-cuelang.org/go v0.4.0 h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=
-cuelang.org/go v0.4.0/go.mod h1:tz/edkPi+T37AZcb5GlPY+WJkL6KiDlDVupKwL3vvjs=
+cuelang.org/go v0.4.3 h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=
+cuelang.org/go v0.4.3/go.mod h1:7805vR9H+VoBNdWFdI7jyDR3QLUPp4+naHfbcgp55HI=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
docker.io/go-docker v1.0.0 h1:VdXS/aNYQxyA9wdLD5z8Q8Ro688/hG8HzKxYVEVbE6s=
@@ -83,8 +84,9 @@ github.com/Azure/go-autorest/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRY
github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69/go.mod h1:L1AbZdiDllfyYH5l5OkAaZtk7VkWe89bPJFmnDBNHxg=
-github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/BurntSushi/toml v0.4.1 h1:GaI7EiDXDRfa8VshkTj7Fym7ha+y8/XxIgD2okUIjLw=
+github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/GeertJohan/go.incremental v1.0.0/go.mod h1:6fAjUhbVuX1KcMD3c8TEgVUqmo4seqhv0i0kdATSkM0=
github.com/GeertJohan/go.rice v1.0.0/go.mod h1:eH6gbSOAUv07dQuZVnBmoDP8mgsM1rtixis4Tib9if0=
@@ -138,7 +140,6 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB
github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
@@ -165,8 +166,8 @@ github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3Ee
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
+github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
-github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/cue-sh/unity v0.0.0-20210426155349-ff10fe17f32a h1:dLqsFov6HOjZbfWAZzmWGCjQRWlcXyLtryEMDkryTpo=
github.com/cue-sh/unity v0.0.0-20210426155349-ff10fe17f32a/go.mod h1:xjzRq8F5NZ4zpijdoZycRo1HLGyPil1Bd6ftifpvwlo=
github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E=
@@ -212,8 +213,8 @@ github.com/frankban/quicktest v1.2.2/go.mod h1:Qh/WofXFeiAFII1aEBu529AtJo6Zg2VHs
github.com/frankban/quicktest v1.4.1/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ=
github.com/frankban/quicktest v1.7.2/go.mod h1:jaStnuzAqU1AJdCO0l53JDCJrVDKcS03DbaAcR7Ks/o=
github.com/frankban/quicktest v1.11.2/go.mod h1:K+q6oSqb0W0Ininfk863uOk1lMy69l/P6txr3mVT54s=
-github.com/frankban/quicktest v1.12.0 h1:qlT496aO6ryji0l8Of/hVQCRkqNVyIbJtUZ1zDp6xyw=
github.com/frankban/quicktest v1.12.0/go.mod h1:qLE0fzW0VuyUAJgPU19zByoIr0HtCHN/r/VLSOOIySU=
+github.com/frankban/quicktest v1.14.0 h1:+cqqvzZV87b4adx/5ayVOaYZ2CrvM4ejQvUdBzPPUss=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4=
@@ -297,8 +298,8 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-github v13.0.1-0.20171014143926-a021c14a5f19+incompatible h1:BqvW/QNZtzSStnaHJevBVYCPhqBSrhLgj8SeEUr9iR4=
github.com/google/go-github v13.0.1-0.20171014143926-a021c14a5f19+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 h1:zLTLjkaOFEFIOxY5BWLFLwh+cL8vOBW4XJ2aqLE/Tf0=
@@ -324,14 +325,13 @@ github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
-github.com/google/renameio v1.0.1-0.20210406141108-81588dbe0453/go.mod h1:t/HQoYBZSsWSNK35C6CO/TpPLDVWvxOHboWUAweKUpk=
+github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/wire v0.4.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
-github.com/googleapis/gax-go v2.0.2+incompatible h1:silFMLAnr330+NRuag/VjIGF7TLp/LBrV2CJKFLWEww=
github.com/googleapis/gax-go v2.0.2+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=
@@ -372,8 +372,8 @@ github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerX
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-version v1.2.0 h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=
-github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
+github.com/hashicorp/go-version v1.2.1 h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=
+github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=
@@ -417,8 +417,9 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-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/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
+github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
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=
@@ -506,10 +507,10 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
github.com/play-with-docker/play-with-docker v0.0.3-0.20201025222131-e8486b8100e0 h1:R8o6egG3l0QWEibAbqvvadfPpTMDONbBYyElKaDo3e0=
github.com/play-with-docker/play-with-docker v0.0.3-0.20201025222131-e8486b8100e0/go.mod h1:fQEYtvon2ocbbFpyki/m+Bg2xqVS1YsRj1ylGnhmpm4=
-github.com/play-with-go/gitea v0.0.0-20210723114817-feef4e6b64a7 h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=
-github.com/play-with-go/gitea v0.0.0-20210723114817-feef4e6b64a7/go.mod h1:MQSNhektHwc/HMmWC0MyeFUQfOmx6ajuXaJL9eixpeo=
-github.com/play-with-go/preguide v0.0.2-0.20210723101428-f0437229c60d h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=
-github.com/play-with-go/preguide v0.0.2-0.20210723101428-f0437229c60d/go.mod h1:TYmCfXVJ7SP6PszCnI8WUs5cTX79sr+62ebpZvfW8tU=
+github.com/play-with-go/gitea v0.0.0-20220916095345-fddafa3403c2 h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=
+github.com/play-with-go/gitea v0.0.0-20220916095345-fddafa3403c2/go.mod h1:mfBUaCtcOXcYQ4GQRc5VbD2a2ia7gFme1pc+1qzwi6M=
+github.com/play-with-go/preguide v0.0.2-0.20220916045313-f81d11764005 h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=
+github.com/play-with-go/preguide v0.0.2-0.20220916045313-f81d11764005/go.mod h1:OiZEQ1+V6HA/Wh4koKxDn8EIFPWTpcylWyzKJ9CTIGY=
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
@@ -543,15 +544,17 @@ github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6So
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.6.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
+github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.6.2-0.20200830194709-1115b6af0369/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
-github.com/rogpeppe/go-internal v1.7.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
-github.com/rogpeppe/go-internal v1.8.1-0.20210329131435-cca5496d7a87 h1:Eeg4+XQYCx219tsb9p1rXivIAkDbYJVQ/lDM8zofrgA=
github.com/rogpeppe/go-internal v1.8.1-0.20210329131435-cca5496d7a87/go.mod h1:L4QfvkzI0fGW0flk8aFZphEzj75oG/adPJ81x8UfGIY=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rs/xid v0.0.0-20170604230408-02dd45c33376 h1:pisBoZ1sLLFc+g7EZflpvatXVqmQKv8EjPP8/radknQ=
github.com/rs/xid v0.0.0-20170604230408-02dd45c33376/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/russross/blackfriday v1.5.3-0.20200218234912-41c5fccfd6f6/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
+github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/sanity-io/litter v1.5.0/go.mod h1:5Z71SvaYy5kcGtyglXOC9rrUi3c1E8CamFWjQsazTh0=
@@ -576,8 +579,9 @@ github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU
github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
-github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M=
github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo=
+github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=
+github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g=
github.com/spf13/fsync v0.9.0/go.mod h1:fNtJEfG3HiltN3y4cPOz6MLjos9+2pIEqLIgszqhp/0=
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
@@ -640,8 +644,9 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -654,6 +659,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20210126221216-84987778548c/go.mod h1:I6l2HNBLBZEcrOoCpyKLdY2lHoRZ8lI4x60KMCQDft4=
+golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e h1:qyrTQ++p1afMkO4DPEeLGq/3oTsdlvdH4vqZUBWzUKM=
+golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
@@ -680,8 +687,9 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.4.1 h1:Kvvh58BN8Y9/lBi7hTekvtMpm07eUZ0ck5pRHpsMWrY=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -725,8 +733,9 @@ golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v
golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
+golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=
+golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -805,11 +814,11 @@ golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210412220455-f1c623a9e750/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
+golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -817,8 +826,9 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -878,8 +888,9 @@ golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
+golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f h1:OKYpQQVE3DKSc3r3zHVzq46vq5YH7x8xpR3/k9ixmUg=
+golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -1006,7 +1017,6 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/inf.v0 v0.9.0 h1:3zYtXIO92bvsdS3ggAdA8Gb4Azj0YU+TVY1uGYNFA8o=
gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
@@ -1026,8 +1036,9 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
+gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
@@ -1036,8 +1047,9 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
-honnef.co/go/tools v0.1.2 h1:SMdYLJl312RXuxXziCCHhRsp/tvct9cGKey0yv95tZM=
honnef.co/go/tools v0.1.2/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
+honnef.co/go/tools v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA=
+honnef.co/go/tools v0.3.3/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw=
k8s.io/api v0.0.0-20171027084545-218912509d74 h1:CYism0UbF96TF8s8sYrKagsJn3oqR456q/ER/cELIuA=
k8s.io/api v0.0.0-20171027084545-218912509d74/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA=
k8s.io/apimachinery v0.0.0-20171027084411-18a564baac72 h1:pPbfmsjOvePqojmf5AhR0o7bxZTCxE0nkDakanV50CM=
@@ -1048,9 +1060,8 @@ k8s.io/kube-openapi v0.0.0-20171101183504-39a7bf85c140 h1:j1Zez+Xb4OWvCdROqeq8sP
k8s.io/kube-openapi v0.0.0-20171101183504-39a7bf85c140/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc=
mvdan.cc/dockexec v0.0.0-20200617140021-ca98d4465984 h1:lMqEIdODy4qAPQrG6FYaInOHAtMWRsCuzO01pRE+zyg=
mvdan.cc/dockexec v0.0.0-20200617140021-ca98d4465984/go.mod h1:C1W8la9DALPMHdKQYDHeBMWniCfaFyy63I794VmgFiU=
-mvdan.cc/editorconfig v0.2.0/go.mod h1:lvnnD3BNdBYkhq+B4uBuFFKatfp02eB6HixDvEz91C0=
-mvdan.cc/sh/v3 v3.3.0 h1:ujzElMnry63f4I5sjPFxzo6xia+gwsHZM0yyauuyZ6k=
-mvdan.cc/sh/v3 v3.3.0/go.mod h1:dh3avhLDhJJ/MJKzbak6FYn+DJKUWk7Fb6Dh5mGdv6Y=
+mvdan.cc/sh/v3 v3.5.1 h1:hmP3UOw4f+EYexsJjFxvU38+kn+V/s2CclXHanIBkmQ=
+mvdan.cc/sh/v3 v3.5.1/go.mod h1:1JcoyAKm1lZw/2bZje/iYKWicU/KMd0rsyJeKHnsK4E=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
diff --git a/guide.cue b/guide.cue
index 942ae4fa..1724314a 100644
--- a/guide.cue
+++ b/guide.cue
@@ -10,10 +10,12 @@ Networks: *["playwithgo_pwg"] | [...string]
Delims: ["{{{", "}}}"]
-_#installGo: "playwithgo/installgo1.15.8@sha256:0e480b658f50b85b8eb40c426022d572709a93f6e0a7fe65475bea50ad172c5f"
-_#go115LatestVersion: "go1.15.8"
-_#go115LatestImage: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
-_#go116LatestImage: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+_#dockerCommit: "c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
+
+_#installGo: "playwithgo/installgo1.15.15:\(_#dockerCommit)"
+_#go115LatestVersion: "go1.15.15"
+_#go115LatestImage: "playwithgo/go1.15.15:\(_#dockerCommit)"
+_#go116LatestImage: "playwithgo/go1.16.15:\(_#dockerCommit)"
_#golangToolsLatest: "v0.0.0-20201105220310-78b158585360"
diff --git a/guides/2018-10-19-go-fundamentals/go115_en_log.txt b/guides/2018-10-19-go-fundamentals/go115_en_log.txt
index a40ca1ad..8c250267 100644
--- a/guides/2018-10-19-go-fundamentals/go115_en_log.txt
+++ b/guides/2018-10-19-go-fundamentals/go115_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ pwd
/home/gopher
$ mkdir /home/gopher/greetings
@@ -465,7 +465,7 @@ $ go test
greetings_test.go:15: Hello("Gladys") = "Hail, %v! Well met!", , want match for `\bGladys\b`,
FAIL
exit status 1
-FAIL {{{.GREETINGS}}} 0.002s
+FAIL {{{.GREETINGS}}} 0.001s
$ cat < /home/gopher/greetings/greetings.go
package greetings
@@ -534,7 +534,7 @@ func randomFormat() string {
EOD
$ go test
PASS
-ok {{{.GREETINGS}}} 0.002s
+ok {{{.GREETINGS}}} 0.001s
$ cd /home/gopher/hello
$ go list -f '{{.Target}}'
/home/gopher/go/bin/hello
diff --git a/guides/2018-10-19-go-fundamentals/out/gen_out.cue b/guides/2018-10-19-go-fundamentals/out/gen_out.cue
index 46ce4e4f..ebb67b0b 100644
--- a/guides/2018-10-19-go-fundamentals/out/gen_out.cue
+++ b/guides/2018-10-19-go-fundamentals/out/gen_out.cue
@@ -16,24 +16,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -62,8 +63,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -80,8 +81,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -92,26 +93,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -122,11 +117,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "GREETINGS", "HELLO"]
@@ -136,7 +132,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -156,17 +152,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
pwd_home: {
@@ -1734,7 +1724,7 @@ Steps: {
greetings_test.go:15: Hello("Gladys") = "Hail, %v! Well met!", , want match for `\\bGladys\\b`,
FAIL
exit status 1
- FAIL\t{{{.GREETINGS}}}\t0.002s
+ FAIL\t{{{.GREETINGS}}}\t0.001s
"""
ComparisonOutput: """
@@ -1904,7 +1894,7 @@ Steps: {
ExitCode: 0
Output: """
PASS
- ok \t{{{.GREETINGS}}}\t0.002s
+ ok \t{{{.GREETINGS}}}\t0.001s
"""
ComparisonOutput: """
@@ -2008,5 +1998,5 @@ Steps: {
}]
}
}
-Hash: "a529c687b99b1dd600ccd0f90eaab6b76d6414c9f4bff308b3f42bd194030057"
+Hash: "4030ef2161a08fd4057fffd4499e5b683247d45a04169c7cf11892d42c9f2138"
Delims: ["{{{", "}}}"]
diff --git a/guides/2019-10-15-get-started-with-go/go115_en_log.txt b/guides/2019-10-15-get-started-with-go/go115_en_log.txt
index d81d82af..0b39106b 100644
--- a/guides/2019-10-15-get-started-with-go/go115_en_log.txt
+++ b/guides/2019-10-15-get-started-with-go/go115_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ pwd
/home/gopher
$ mkdir /home/gopher/hello
diff --git a/guides/2019-10-15-get-started-with-go/out/gen_out.cue b/guides/2019-10-15-get-started-with-go/out/gen_out.cue
index 1915d9f4..da1e6609 100644
--- a/guides/2019-10-15-get-started-with-go/out/gen_out.cue
+++ b/guides/2019-10-15-get-started-with-go/out/gen_out.cue
@@ -5,7 +5,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -25,17 +25,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
pwd_home: {
@@ -223,5 +217,5 @@ Steps: {
}]
}
}
-Hash: "9dda4746d66e1b956de380e29f4cb60a9dffb7327a2766c965c0d5eec4b8c015"
+Hash: "13b62f3b7d87bd98ecc52b27beabea85d4a954d86f0a1ff3ac75aed4b213b07f"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-08-13-installing-go/go115_en_log.txt b/guides/2020-08-13-installing-go/go115_en_log.txt
index 8c2a60fe..d59919ce 100644
--- a/guides/2020-08-13-installing-go/go115_en_log.txt
+++ b/guides/2020-08-13-installing-go/go115_en_log.txt
@@ -1,11 +1,11 @@
$ pwd
/home/gopher
-$ wget -q https://golang.org/dl/go1.15.8.linux-amd64.tar.gz
-$ sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz
+$ wget -q https://golang.org/dl/go1.15.15.linux-$GOARCH.tar.gz
+$ sudo tar -C /usr/local -xzf go1.15.15.linux-$GOARCH.tar.gz
$ echo export PATH="/usr/local/go/bin:$PATH" >>$HOME/.profile
$ source $HOME/.profile
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ go env
GO111MODULE=""
GOARCH="amd64"
@@ -40,7 +40,7 @@ CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
-GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build -gno-record-gcc-switches"
+GOGCCFLAGS="fake_gcc_flags"
$ go env GOBIN
$ go env -w GOBIN=/path/to/my/gobin
diff --git a/guides/2020-08-13-installing-go/guide.cue b/guides/2020-08-13-installing-go/guide.cue
index efde86f8..ac8c5dc5 100644
--- a/guides/2020-08-13-installing-go/guide.cue
+++ b/guides/2020-08-13-installing-go/guide.cue
@@ -27,13 +27,13 @@ Steps: start_dir: preguide.#Command & {
Steps: download_go: preguide.#Command & {
Source: """
- wget -q https://golang.org/dl/\(_#go115LatestVersion).linux-amd64.tar.gz
+ wget -q https://golang.org/dl/\(_#go115LatestVersion).linux-$GOARCH.tar.gz
"""
}
Steps: install_go: preguide.#Command & {
Source: """
- sudo tar -C /usr/local -xzf \(_#go115LatestVersion).linux-amd64.tar.gz
+ sudo tar -C /usr/local -xzf \(_#go115LatestVersion).linux-$GOARCH.tar.gz
"""
}
diff --git a/guides/2020-08-13-installing-go/out/gen_out.cue b/guides/2020-08-13-installing-go/out/gen_out.cue
index f7e15f27..0b71de82 100644
--- a/guides/2020-08-13-installing-go/out/gen_out.cue
+++ b/guides/2020-08-13-installing-go/out/gen_out.cue
@@ -5,7 +5,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/installgo1.15.8@sha256:0e480b658f50b85b8eb40c426022d572709a93f6e0a7fe65475bea50ad172c5f"
+ Image: "playwithgo/installgo1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -47,7 +47,7 @@ Steps: {
Terminal: "term1"
Stmts: [{
Negated: false
- CmdStr: "wget -q https://golang.org/dl/go1.15.8.linux-amd64.tar.gz"
+ CmdStr: "wget -q https://golang.org/dl/go1.15.15.linux-$GOARCH.tar.gz"
ExitCode: 0
Output: ""
ComparisonOutput: ""
@@ -62,7 +62,7 @@ Steps: {
Terminal: "term1"
Stmts: [{
Negated: false
- CmdStr: "sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz"
+ CmdStr: "sudo tar -C /usr/local -xzf go1.15.15.linux-$GOARCH.tar.gz"
ExitCode: 0
Output: ""
ComparisonOutput: ""
@@ -106,17 +106,11 @@ Steps: {
Order: 5
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
go_env: {
@@ -164,7 +158,7 @@ Steps: {
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
- GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build -gno-record-gcc-switches"
+ GOGCCFLAGS="fake_gcc_flags"
"""
ComparisonOutput: """
@@ -201,7 +195,7 @@ Steps: {
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
- GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build -gno-record-gcc-switches"
+ GOGCCFLAGS="fake_gcc_flags"
"""
}]
@@ -454,5 +448,5 @@ Steps: {
}]
}
}
-Hash: "6233def428c210d66fda91571d6ed0b2900f55c0846606ecafbcc4aac862f42d"
+Hash: "57f9241df49785e337140bd0aa692834aac59089f3b266546b0f3ac12cc7cddc"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-09-01-basic-go-modules-example/out/gen_out.cue b/guides/2020-09-01-basic-go-modules-example/out/gen_out.cue
index 59588d17..1f5d2780 100644
--- a/guides/2020-09-01-basic-go-modules-example/out/gen_out.cue
+++ b/guides/2020-09-01-basic-go-modules-example/out/gen_out.cue
@@ -12,24 +12,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -58,8 +59,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -76,8 +77,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -88,26 +89,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -118,11 +113,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "REPO1"]
@@ -132,7 +128,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -354,5 +350,5 @@ Steps: {
}]
}
}
-Hash: "b67bad6fb13ab938004c6ae17f99e6c2441aaf2904c915fa89a06ed0db7eecfe"
+Hash: "703d7b8f9690e147301b8824a58f1fcaadf55bc2cad6ae498ef6ef33db2bf706"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-10-07-intro-to-play-with-go-dev/out/gen_out.cue b/guides/2020-10-07-intro-to-play-with-go-dev/out/gen_out.cue
index 1c22b2a4..349ce99d 100644
--- a/guides/2020-10-07-intro-to-play-with-go-dev/out/gen_out.cue
+++ b/guides/2020-10-07-intro-to-play-with-go-dev/out/gen_out.cue
@@ -12,24 +12,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -58,8 +59,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -76,8 +77,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -88,26 +89,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -118,11 +113,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "REPO1"]
@@ -132,7 +128,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -358,5 +354,5 @@ Steps: {
}]
}
}
-Hash: "a2da9814549afb7151dd018b75531ba75d5ba39aa1cfbd572bd6068956a5b645"
+Hash: "b53dcd3de8b90157ae825182f021b1c7087125438c18e54e2bc618d1e214588a"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-11-05-tools-as-dependencies/go115_en_log.txt b/guides/2020-11-05-tools-as-dependencies/go115_en_log.txt
index e02266bb..d5b0edfd 100644
--- a/guides/2020-11-05-tools-as-dependencies/go115_en_log.txt
+++ b/guides/2020-11-05-tools-as-dependencies/go115_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ mkdir painkiller
$ cd painkiller
$ go mod init painkiller
@@ -83,8 +83,8 @@ EOD
$ go get golang.org/x/tools/cmd/stringer@v0.0.0-20201105220310-78b158585360
go: downloading golang.org/x/tools v0.0.0-20201105220310-78b158585360
go: found golang.org/x/tools/cmd/stringer in golang.org/x/tools v0.0.0-20201105220310-78b158585360
-go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/mod v0.3.0
+go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
$ cat go.mod
module painkiller
diff --git a/guides/2020-11-05-tools-as-dependencies/out/gen_out.cue b/guides/2020-11-05-tools-as-dependencies/out/gen_out.cue
index b41f7a7f..d9e40a1c 100644
--- a/guides/2020-11-05-tools-as-dependencies/out/gen_out.cue
+++ b/guides/2020-11-05-tools-as-dependencies/out/gen_out.cue
@@ -12,24 +12,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -58,8 +59,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -76,8 +77,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -88,26 +89,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -118,11 +113,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PAINKILLER"]
@@ -132,7 +128,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -152,17 +148,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
painkiller_go_mod_init: {
@@ -415,8 +405,8 @@ Steps: {
Output: """
go: downloading golang.org/x/tools v0.0.0-20201105220310-78b158585360
go: found golang.org/x/tools/cmd/stringer in golang.org/x/tools v0.0.0-20201105220310-78b158585360
- go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/mod v0.3.0
+ go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
"""
ComparisonOutput: """
@@ -799,5 +789,5 @@ Steps: {
}]
}
}
-Hash: "8c19cba404ed9e40fee3d0032abdb02348ae414fe3effc22225a0eeb6fd2fb5d"
+Hash: "422eaf5b740efdf4c0016fabc28e2438e057a7108260db3be9edd4787ca4a0ca"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-11-08-retract-module-versions/go116_en_log.txt b/guides/2020-11-08-retract-module-versions/go116_en_log.txt
index 9bf307ba..7341c366 100644
--- a/guides/2020-11-08-retract-module-versions/go116_en_log.txt
+++ b/guides/2020-11-08-retract-module-versions/go116_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.16 linux/amd64
+go version go1.16.15 linux/amd64
$ mkdir /home/gopher/proverb
$ cd /home/gopher/proverb
$ git init -q
@@ -124,7 +124,8 @@ $ go list -m -versions -retracted {{{.PROVERB}}}
$ go get {{{.PROVERB}}}@v0.2.0
go: warning: {{{.PROVERB}}}@v0.2.0: retracted by module author: Go proverb was totally wrong
go: to switch to the latest unretracted version, run:
- go get {{{.PROVERB}}}@latestgo get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
+ go get {{{.PROVERB}}}@latest
+go get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
$ go run .
Concurrency is parallelism.
$ go list -m -u all
@@ -191,12 +192,14 @@ $ go get {{{.PROVERB}}}@v1.0.0
go: downloading {{{.PROVERB}}} v1.0.0
go: warning: {{{.PROVERB}}}@v1.0.0: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- go get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
+ go get {{{.PROVERB}}}@latest
+go get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
$ go get {{{.PROVERB}}}@v1.0.1
go: downloading {{{.PROVERB}}} v1.0.1
go: warning: {{{.PROVERB}}}@v1.0.1: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- go get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
+ go get {{{.PROVERB}}}@latest
+go get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
$ go get {{{.PROVERB}}}@v0.4.0
go: downloading {{{.PROVERB}}} v0.4.0
go get: downgraded {{{.PROVERB}}} v1.0.1 => v0.4.0
diff --git a/guides/2020-11-08-retract-module-versions/out/gen_out.cue b/guides/2020-11-08-retract-module-versions/out/gen_out.cue
index f8a94752..50430f21 100644
--- a/guides/2020-11-08-retract-module-versions/out/gen_out.cue
+++ b/guides/2020-11-08-retract-module-versions/out/gen_out.cue
@@ -12,24 +12,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -58,8 +59,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -76,8 +77,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -88,26 +89,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -118,11 +113,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PROVERB"]
@@ -132,7 +128,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -152,17 +148,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.16 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.16 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.16.15 linux/amd64"
+ ComparisonOutput: "go version go1.16.15 linux/amd64"
}]
}
proverb_create: {
@@ -874,12 +864,14 @@ Steps: {
Output: """
go: warning: {{{.PROVERB}}}@v0.2.0: retracted by module author: Go proverb was totally wrong
go: to switch to the latest unretracted version, run:
- \tgo get {{{.PROVERB}}}@latestgo get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
"""
ComparisonOutput: """
- \tgo get {{{.PROVERB}}}@latestgo get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: downgraded {{{.PROVERB}}} v0.3.0 => v0.2.0
go: to switch to the latest unretracted version, run:
go: warning: {{{.PROVERB}}}@v0.2.0: retracted by module author: Go proverb was totally wrong
"""
@@ -1256,12 +1248,14 @@ Steps: {
go: downloading {{{.PROVERB}}} v1.0.0
go: warning: {{{.PROVERB}}}@v1.0.0: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
"""
ComparisonOutput: """
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v0.3.0 => v1.0.0
go: downloading {{{.PROVERB}}} v1.0.0
go: to switch to the latest unretracted version, run:
go: warning: {{{.PROVERB}}}@v1.0.0: retracted by module author: Published v1 too early
@@ -1274,12 +1268,14 @@ Steps: {
go: downloading {{{.PROVERB}}} v1.0.1
go: warning: {{{.PROVERB}}}@v1.0.1: retracted by module author: Published v1 too early
go: to switch to the latest unretracted version, run:
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
"""
ComparisonOutput: """
- \tgo get {{{.PROVERB}}}@latestgo get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
+ \tgo get {{{.PROVERB}}}@latest
+ go get: upgraded {{{.PROVERB}}} v1.0.0 => v1.0.1
go: downloading {{{.PROVERB}}} v1.0.1
go: to switch to the latest unretracted version, run:
go: warning: {{{.PROVERB}}}@v1.0.1: retracted by module author: Published v1 too early
@@ -1421,5 +1417,5 @@ Steps: {
}]
}
}
-Hash: "7e36395c5d69009d1b9102c0e8d21c076cf6a7ffeede7f67b2902178c5aad31e"
+Hash: "e8dd0d207479237a2ad5c4bae3807603adb72649141e4ff82a2a6c8b09ccade1"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-11-09-installing-go-programs-directly/go116_en_log.txt b/guides/2020-11-09-installing-go-programs-directly/go116_en_log.txt
index d84ec4b9..a6aaf7e8 100644
--- a/guides/2020-11-09-installing-go-programs-directly/go116_en_log.txt
+++ b/guides/2020-11-09-installing-go-programs-directly/go116_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.16 linux/amd64
+go version go1.16.15 linux/amd64
$ go get filippo.io/mkcert@v1.4.2
go: downloading filippo.io/mkcert v1.4.2
go: downloading golang.org/x/net v0.0.0-20190620200207-3b0461eec859
@@ -16,7 +16,7 @@ $ which mkcert
$ mkcert -version
v1.4.2
$ go version -m $(which mkcert)
-/home/gopher/go/bin/mkcert: go1.16
+/home/gopher/go/bin/mkcert: go1.16.15
path filippo.io/mkcert
mod filippo.io/mkcert v1.4.2 h1:7mWofpFS4gzQS5bhE3KYBwzfceIPy2KJ4tMT31aPNeY=
dep golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
diff --git a/guides/2020-11-09-installing-go-programs-directly/out/gen_out.cue b/guides/2020-11-09-installing-go-programs-directly/out/gen_out.cue
index 3ce66993..0f6cc071 100644
--- a/guides/2020-11-09-installing-go-programs-directly/out/gen_out.cue
+++ b/guides/2020-11-09-installing-go-programs-directly/out/gen_out.cue
@@ -5,7 +5,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -25,17 +25,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.16 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.16 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.16.15 linux/amd64"
+ ComparisonOutput: "go version go1.16.15 linux/amd64"
}]
}
go115_mkcert_get: {
@@ -157,7 +151,7 @@ Steps: {
CmdStr: "go version -m $(which mkcert)"
ExitCode: 0
Output: """
- /home/gopher/go/bin/mkcert: go1.16
+ /home/gopher/go/bin/mkcert: go1.16.15
\tpath\tfilippo.io/mkcert
\tmod\tfilippo.io/mkcert\tv1.4.2\th1:7mWofpFS4gzQS5bhE3KYBwzfceIPy2KJ4tMT31aPNeY=
\tdep\tgolang.org/x/net\tv0.0.0-20190620200207-3b0461eec859\th1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
@@ -166,7 +160,7 @@ Steps: {
"""
ComparisonOutput: """
- /home/gopher/go/bin/mkcert: go1.16
+ /home/gopher/go/bin/mkcert: go1.16.15
\tpath\tfilippo.io/mkcert
\tmod\tfilippo.io/mkcert\tv1.4.2\th1:7mWofpFS4gzQS5bhE3KYBwzfceIPy2KJ4tMT31aPNeY=
\tdep\tgolang.org/x/net\tv0.0.0-20190620200207-3b0461eec859\th1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
@@ -177,5 +171,5 @@ Steps: {
}]
}
}
-Hash: "147a1593fda589cc932377b1522660a5151741357de69b7416d78a17b80e4d64"
+Hash: "c82a16030f644b76c51e45f0ce0b71c14b3cf34798230d29b0c90526d8522d1c"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-11-09-using-staticcheck/go115_en_log.txt b/guides/2020-11-09-using-staticcheck/go115_en_log.txt
index c777c99e..92a476cc 100644
--- a/guides/2020-11-09-using-staticcheck/go115_en_log.txt
+++ b/guides/2020-11-09-using-staticcheck/go115_en_log.txt
@@ -1,11 +1,11 @@
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ (cd $(mktemp -d); GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck@v0.0.1-2020.1.6)
go: downloading honnef.co/go/tools v0.0.1-2020.1.6
go: found honnef.co/go/tools/cmd/staticcheck in honnef.co/go/tools v0.0.1-2020.1.6
go: downloading golang.org/x/tools v0.0.0-20200410194907-79a7a3126eef
-go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading github.com/BurntSushi/toml v0.3.1
+go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
$ which staticcheck
/home/gopher/go/bin/staticcheck
$ staticcheck -version
diff --git a/guides/2020-11-09-using-staticcheck/out/gen_out.cue b/guides/2020-11-09-using-staticcheck/out/gen_out.cue
index a18a1309..32653e7a 100644
--- a/guides/2020-11-09-using-staticcheck/out/gen_out.cue
+++ b/guides/2020-11-09-using-staticcheck/out/gen_out.cue
@@ -5,7 +5,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -25,17 +25,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
staticcheck_install: {
@@ -53,8 +47,8 @@ Steps: {
go: downloading honnef.co/go/tools v0.0.1-2020.1.6
go: found honnef.co/go/tools/cmd/staticcheck in honnef.co/go/tools v0.0.1-2020.1.6
go: downloading golang.org/x/tools v0.0.0-20200410194907-79a7a3126eef
- go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading github.com/BurntSushi/toml v0.3.1
+ go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
"""
ComparisonOutput: """
@@ -916,5 +910,5 @@ Steps: {
}]
}
}
-Hash: "3fe2d351775751fe4a3f807d62ae62aacd124f6e1af2be7e3348f3e9689ff771"
+Hash: "66396cad683065b32470e992e2b449c499702986cff334556cdab46668d107d5"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-11-12-working-with-private-modules/go115_en_log.txt b/guides/2020-11-12-working-with-private-modules/go115_en_log.txt
index f67e257a..7974e9ac 100644
--- a/guides/2020-11-12-working-with-private-modules/go115_en_log.txt
+++ b/guides/2020-11-12-working-with-private-modules/go115_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ mkdir /home/gopher/public
$ cd /home/gopher/public
$ go mod init {{{.PUBLIC}}}
@@ -93,7 +93,7 @@ go: {{{.PUBLIC}}} upgrade => v0.0.0-20060102150405-abcedf12345
$ go list -m -f {{.Version}} {{{.PUBLIC}}}
v0.0.0-20060102150405-abcedf12345
$ go get {{{.PRIVATE}}}
-go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 410 Gone
+go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 404 Not Found
server response:
not found: module {{{.PRIVATE}}}: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
fatal: could not read Username for 'https://gopher.live': terminal prompts disabled
@@ -102,7 +102,7 @@ go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{
$ go env -w GOPROXY=
$ go get {{{.PRIVATE}}}
go: downloading {{{.PRIVATE}}} v0.0.0-20060102150405-abcedf12345
-go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 410 Gone
+go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 404 Not Found
server response:
not found: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
fatal: could not read Username for 'https://gopher.live': terminal prompts disabled
diff --git a/guides/2020-11-12-working-with-private-modules/out/gen_out.cue b/guides/2020-11-12-working-with-private-modules/out/gen_out.cue
index b797a074..a7cff069 100644
--- a/guides/2020-11-12-working-with-private-modules/out/gen_out.cue
+++ b/guides/2020-11-12-working-with-private-modules/out/gen_out.cue
@@ -16,24 +16,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -62,8 +63,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -80,8 +81,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -92,26 +93,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -122,11 +117,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PUBLIC", "PRIVATE"]
@@ -136,7 +132,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -156,17 +152,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
public_init: {
@@ -632,7 +622,7 @@ Steps: {
CmdStr: "go get {{{.PRIVATE}}}"
ExitCode: 1
Output: """
- go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 410 Gone
+ go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 404 Not Found
\tserver response:
\tnot found: module {{{.PRIVATE}}}: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\t\tfatal: could not read Username for 'https://gopher.live': terminal prompts disabled
@@ -647,7 +637,7 @@ Steps: {
\tIf this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
\tnot found: module {{{.PRIVATE}}}: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\tserver response:
- go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 410 Gone
+ go get {{{.PRIVATE}}}: module {{{.PRIVATE}}}: reading https://proxy.golang.org/{{{.PRIVATE}}}/@v/list: 404 Not Found
"""
}]
}
@@ -679,7 +669,7 @@ Steps: {
ExitCode: 1
Output: """
go: downloading {{{.PRIVATE}}} v0.0.0-20060102150405-abcedf12345
- go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 410 Gone
+ go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 404 Not Found
\tserver response:
\tnot found: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\t\tfatal: could not read Username for 'https://gopher.live': terminal prompts disabled
@@ -694,7 +684,7 @@ Steps: {
\tIf this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
\tnot found: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/0123456789abcdef: exit status 128:
\tserver response:
- go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 410 Gone
+ go get {{{.PRIVATE}}}: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: verifying module: {{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: reading https://sum.golang.org/lookup/{{{.PRIVATE}}}@v0.0.0-20060102150405-abcedf12345: 404 Not Found
go: downloading {{{.PRIVATE}}} v0.0.0-20060102150405-abcedf12345
"""
}]
@@ -884,5 +874,5 @@ Steps: {
}]
}
}
-Hash: "aaa78631d54a6531fe605332ac5253049f0eebe7ec3582404a2042038060fba8"
+Hash: "5aeb0e6f8ca108e4c4267463519d57c906181a6c92b666c64fd9ad55336cfc6a"
Delims: ["{{{", "}}}"]
diff --git a/guides/2020-11-19-major-version-repository-structure/go115_en_log.txt b/guides/2020-11-19-major-version-repository-structure/go115_en_log.txt
index d4f81be7..2c6c7dcf 100644
--- a/guides/2020-11-19-major-version-repository-structure/go115_en_log.txt
+++ b/guides/2020-11-19-major-version-repository-structure/go115_en_log.txt
@@ -1,5 +1,5 @@
$ go version
-go version go1.15.8 linux/amd64
+go version go1.15.15 linux/amd64
$ mkdir /home/gopher/branch
$ cd /home/gopher/branch
$ go mod init {{{.BRANCH}}}
diff --git a/guides/2020-11-19-major-version-repository-structure/out/gen_out.cue b/guides/2020-11-19-major-version-repository-structure/out/gen_out.cue
index a9d88f92..42b6ec29 100644
--- a/guides/2020-11-19-major-version-repository-structure/out/gen_out.cue
+++ b/guides/2020-11-19-major-version-repository-structure/out/gen_out.cue
@@ -16,24 +16,25 @@ Presteps: [{
}
Version: """
{
+ "GoVersion": "go1.19.1",
"Path": "github.com/play-with-go/gitea/cmd/gitea",
"Main": {
"Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
+ "Version": "v0.0.0-20220916095345-fddafa3403c2",
+ "Sum": "h1:hNi/ACPKXTIEOV6hn0HfelzIqwkaLWQXKSElGCi8xKE=",
"Replace": null
},
"Deps": [
{
"Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
+ "Version": "v0.15.1",
+ "Sum": "h1:WJreC7YYuxbn0UDaPuWIe/mtiNKTvLN8MLkaw71yx/M=",
"Replace": null
},
{
"Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
+ "Version": "v0.4.3",
+ "Sum": "h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=",
"Replace": null
},
{
@@ -62,8 +63,8 @@ Presteps: [{
},
{
"Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
+ "Version": "v1.2.1",
+ "Sum": "h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=",
"Replace": null
},
{
@@ -80,8 +81,8 @@ Presteps: [{
},
{
"Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
+ "Version": "v0.0.2-0.20220916045313-f81d11764005",
+ "Sum": "h1:TozvtuERGrcqQhYM4thrishUY+QONu76GMskVpgQHBA=",
"Replace": null
},
{
@@ -92,26 +93,20 @@ Presteps: [{
},
{
"Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
+ "Version": "v0.0.0-20210921155107-089bfa567519",
+ "Sum": "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
"Replace": null
},
{
"Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
+ "Version": "v0.0.0-20211015210444-4f30a5c0130f",
+ "Sum": "h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=",
"Replace": null
},
{
"Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
+ "Version": "v0.3.7",
+ "Sum": "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
"Replace": null
},
{
@@ -122,11 +117,12 @@ Presteps: [{
},
{
"Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
+ "Version": "v3.0.0-20210107192922-496545a6307b",
+ "Sum": "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
"Replace": null
}
- ]
+ ],
+ "Settings": null
}
"""
Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "BRANCH", "SUBDIR"]
@@ -136,7 +132,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -156,17 +152,11 @@ Steps: {
Order: 0
Terminal: "term1"
Stmts: [{
- Negated: false
- CmdStr: "go version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
+ Negated: false
+ CmdStr: "go version"
+ ExitCode: 0
+ Output: "go version go1.15.15 linux/amd64"
+ ComparisonOutput: "go version go1.15.15 linux/amd64"
}]
}
branch_init: {
@@ -806,5 +796,5 @@ Steps: {
}]
}
}
-Hash: "58eef5fe9a3b886acc1a5cacc5eb73c55a1f0777fb12d769d1449e6573fa182b"
+Hash: "7dece9cb34390b221d2e98f2faa720ebb2fa859489ba010a8f63e3016d5121fb"
Delims: ["{{{", "}}}"]
diff --git a/guides/2021-05-02-build-flags-backwards-compatibility/en.markdown b/guides/2021-05-02-build-flags-backwards-compatibility/en.markdown
deleted file mode 100644
index 71990f45..00000000
--- a/guides/2021-05-02-build-flags-backwards-compatibility/en.markdown
+++ /dev/null
@@ -1,162 +0,0 @@
----
-layout: post
-title: "Using build flags for backwards compatibility"
-excerpt: "How to leverage go build flags to avoid breaking downstream projects "
-difficulty: Intermediate
-category: Next steps
----
-
-_By [Marcos Nils](https://twitter.com/marcosnils), [Docker Captain](https://www.docker.com/captains/marcos-lilljedahl), Hashicorp Ambassador, Go developer, and co-creator of `play-with-go.dev`._
-
-Sometimes, when a new `go` version is released, it also ships with a bunch of changes and really interesting features in the standard library.
-At the time of this article, [go 1.16](https://golang.org/doc/go1.16) has been released around two months ago which introduces some changes and
-new features into the [core library](https://golang.org/doc/go1.16#library) like the new `io.FS` interface, the `go:embed` directive amongst others.
-
-As a module author, how could I introduce these new features and at the same time provide some guarantees that
-my module can still support the last N releases of go?
-
-This guide explains how to deal with situations where you want to use new features of recent versions of `go`
-and at the same time you don't want to force downstream dependats to upgrade. In this case we'll be using
-conditional compilation through build tags in a real life scenario by using 1.16's new io.FS whilst retaining compatibility for users of `go` 1.15.
-
-Here's a high level overview of the steps you'll accomplish following this guide:
-
-- Create a `{{{ .public }}}` module that contains and exports a `{{{ .public_func }}}` function
-- Create a `{{{ .gopher }}}` module that uses the `{{{ .public }}}`module
-- Bump the `{{{ .public }}}` module to use `go` 1.16 features without any considerations
-- Try updating the `{{{ .gopher }}}` module and show the observed errors
-- Fix the `{{{ .public }}}` module by adding required buid tags.
-
-
-### A simple go 1.15 program using ioutil.Discard
-
-Verifying that we're using `go` 1.15 version:
-
-{{{ step "go115version" }}}
-
-Now, we'll also check that we have `go` 1.16 installed as well:
-
-{{{ step "go116version" }}}
-
-
-We'll start by setting `go` 1.15 as the default working version:
-
-{{{ step "go115default" }}}
-
-Start by a new `public` module:
-
-{{{ step "public_init" }}}
-
-Now, we'll upload a simple `go` program that uses 1.15 `ioutil.Discard` in a public function:
-
-Create an initial version of the `{{{ .public_func }}}` in `{{{ .public_go }}}`:
-
-{{{ step "public_go_initial" }}}
-
-Commit and push this initial version:
-
-{{{ step "public_initial_commit" }}}
-
-### The `{{{ .gopher }}}` module
-
-Now create a `{{{ .gopher }}}` module to try out the `{{{ .public }}}` module. Unlike
-the `{{{ .public }}}` module, you will not publish the `{{{ .gopher }}}` module; it
-will be local only:
-
-{{{ step "gopher_init" }}}
-
-Create an initial version of a `main` package that uses the previous public module, in `{{{ .gopher_go }}}`:
-
-{{{ step "gopher_go_initial" }}}
-
-
-Get the initial version of the `{{{.gopher}}}` module:
-
-{{{ step "gopher_get" }}}
-
-Now, we'll run the `{{{ .gopher }}}` module `main` package:
-
-{{{ step "gopher_run" }}}
-
-
-### Bumping the `{{{ .public }}}` dependency to `go` 1.16
-
-`Go` 1.16 has been released, and as good developers we want to refactor our
-code so it uses the new `io.Discard` variable instead of the deprecated `ioutil` one.
-
-
-First, we set our `go` version to 1.16:
-
-{{{ step "go116default" }}}
-
-Now, we change our original `{{{ .public }}}` module to use the new variable.
-
-{{{ step "public_bump_discard"}}}
-
-
-Now we're good to release a new version of our `{{{ .public }}}` module
-using the `go` 1.16 new package:
-
-{{{ step "public_bump_commit"}}}
-
-
-Let's go back to our `{{{ .gopher }}}` module in `go` 1.15, fetch the latest
-version of the `{{{ .public }}}` dependecy and see what happens when we try and
-run again:
-
-{{{ step "go115default1" }}}
-
-{{{ step "gopher_update" }}}
-
-{{{ step "gopher_run_fail" }}}
-
-As you can see, when trying to run our `{{{ .gopher }}}` project using the
-latest `{{{.public}}}`, we got an error because in our case, we're still using
-`go` 1.15 in the gopher project which doesn't support the new `io.Discard`
-package.
-
-How do we handle these situations where we shouldn't force our clients to update?
-The right approach to tackle this is by using [build constraints](https://pkg.go.dev/go/build#hdr-Build_Constraints) so our `{{{ .public }}}`
-clients can build their project regardless of the `go` version they're using
-
-
-### Adding `build` tags to our `{{{ .public }}}` project
-
-Let's go ahead and modify our `{{{ .public }}}` project so it now uses the
-`// +build 1.16` tag.
-
-First we rollback the changes to our original file to keep using the `ioutil.Discard`
-pacage for `go` < 1.16 clients
-
-{{{ step "public_rollback_mod" }}}
-
-Additionally, we create a new file which has the correct build tag, so
-newer clients can make use of the new package
-
-{{{ step "public_add_buildtag" }}}
-
-Let's now publish our fixed module
-
-{{{ step "public_fix_commit"}}}
-
-
-Now, we can go ahead and update our `{{{ .gopher }}}` without problems with the
-benefit that `go` 1.16 clients and future clients will be able to use make
-use of the newer `go` features and packages.
-
-{{{ step "gopher_update_fix" }}}
-
-{{{ step "gopher_run_fix" }}}
-
-
-### Conclusion
-
-This guide serves as an example on how to leverage on [build constraints](https://pkg.go.dev/go/build#hdr-Build_Constraints)
-to provide a backwards compatbile module to your clients. Build constraints are a very
-powerful pattern to achieve other tasks in `go`. We encourage the reader to check the official docs
-for further examples.
-
-As a next step you might like to consider:
-
-* [Wokring with private modules](/working-with-private-modules_go115_en/)
-* [Retract module versions](/retract-module-versions_go116_en/)
diff --git a/guides/2021-05-02-build-flags-backwards-compatibility/go115_en_log.txt b/guides/2021-05-02-build-flags-backwards-compatibility/go115_en_log.txt
deleted file mode 100644
index f21ff76b..00000000
--- a/guides/2021-05-02-build-flags-backwards-compatibility/go115_en_log.txt
+++ /dev/null
@@ -1,122 +0,0 @@
-$ go115 version
-go version go1.15.8 linux/amd64
-$ go116 version
-go version go1.16.3 linux/amd64
-$ alias go=go115
-$ mkdir /home/gopher/public
-$ cd /home/gopher/public
-$ go mod init {{{.PUBLIC}}}
-go: creating new go.mod: module {{{.PUBLIC}}}
-$ git init -q
-$ git remote add origin https://{{{.PUBLIC}}}.git
-$ cat < /home/gopher/public/public.go
-package public
-
-import (
- "fmt"
- "io/ioutil"
-)
-
-func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
-}
-EOD
-$ git add public.go go.mod
-$ git commit -q -m 'Initial commit of public module'
-$ git push -q origin main
-remote: . Processing 1 references
-remote: Processed 1 references in total
-$ [ "$(git status --porcelain)" == "" ] || (git status && false)
-$ mkdir /home/gopher/gopher
-$ cd /home/gopher/gopher
-$ go mod init gopher
-go: creating new go.mod: module gopher
-$ cat < /home/gopher/gopher/gopher.go
-package main
-
-import (
-
-"{{{.PUBLIC}}}"
-)
-
-func main() {
- public.DoSomething()
-}
-
-EOD
-$ go get -d {{{.PUBLIC}}}@latest
-go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-$ go list -m -f {{.Version}} {{{.PUBLIC}}}
-v0.0.0-20060102150405-abcedf12345
-$ go run .
-$ alias go=go116
-$ cat < /home/gopher/public/public.go
-package public
-
-import (
- "fmt"
- "io"
-)
-
-func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
-}
-EOD
-$ cd /home/gopher/public
-$ git add public.go go.mod
-$ git commit -q -m 'Bump public to go1.16'
-$ git push -q origin main
-remote: . Processing 1 references
-remote: Processed 1 references in total
-$ alias go=go115
-$ cd /home/gopher/gopher
-$ GOPROXY=direct go get -d {{{.PUBLIC}}}@latest
-go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-$ go list -m -f {{.Version}} {{{.PUBLIC}}}
-v0.0.0-20060102150405-abcedf12345
-$ go run .
-# {{{.PUBLIC}}}
-../go/pkg/mod/{{{.PUBLIC}}}@v0.0.0-20060102150405-abcedf12345/public.go:9:17: undefined: io.Discard
-$ cat < /home/gopher/public/public.go
-// +build !go1.16
-
-package public
-
-import (
- "fmt"
- "io/ioutil"
-)
-
-func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
-}
-EOD
-$ cat < /home/gopher/public/public_116.go
-// +build go.1.16
-
-package public
-
-import (
- "fmt"
- "io"
-)
-
-func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
-}
-EOD
-$ cd /home/gopher/public
-$ git add public.go public_116.go go.mod
-$ git commit -q -m 'Fix public bump to go1.16'
-$ git push -q origin main
-remote: . Processing 1 references
-remote: Processed 1 references in total
-$ cd /home/gopher/gopher
-$ GOPROXY=direct go get -d {{{.PUBLIC}}}@latest
-go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-$ go list -m -f {{.Version}} {{{.PUBLIC}}}
-v0.0.0-20060102150405-abcedf12345
-$ go run .
diff --git a/guides/2021-05-02-build-flags-backwards-compatibility/guide.cue b/guides/2021-05-02-build-flags-backwards-compatibility/guide.cue
deleted file mode 100644
index c6dbc594..00000000
--- a/guides/2021-05-02-build-flags-backwards-compatibility/guide.cue
+++ /dev/null
@@ -1,271 +0,0 @@
-package guide
-
-import (
- "github.com/play-with-go/gitea"
- "github.com/play-with-go/preguide"
-)
-
-Presteps: [gitea.#PrestepNewUser & {
- Args: {
- Repos: [
- {Var: "PUBLIC", Pattern: "public"},
- ]
- }
-}]
-
-Defs: {
- _#commonDefs
- go115: "go115"
- go116: "go116"
- public: "public"
- public_vcs: "https://\(public_mod).git"
- public_mod: "{{{.PUBLIC}}}"
- public_dir: "/home/gopher/\(public)"
- public_go: "\(public).go"
- public_go116: "\(public)_116.go"
- public_func: "DoSomething()"
- gopher: "gopher"
- gopher_vcs: "https://\(gopher_mod).git"
- gopher_mod: gopher
- gopher_dir: "/home/gopher/\(gopher)"
- gopher_go: "\(gopher).go"
- go_help_env: "\(_#commonDefs.cmdgo.help) env"
- go_help_modprivate: "\(_#commonDefs.cmdgo.help) module-private"
-}
-
-Scenarios: go115: preguide.#Scenario & {
- Description: "Go 1.15"
-}
-
-Terminals: term1: preguide.#Terminal & {
- Description: "The main terminal"
- Scenarios: go115: Image: "playwithgo/go1.15_1.16@sha256:38ee32afdd785e5f1d9e63033ce5d64cbd098207ed6506669105db97c2dbe9a1"
-}
-
-Steps: go115version: preguide.#Command & {
- Source: """
- \(Defs.go115) version
- """
-}
-
-Steps: go116version: preguide.#Command & {
- Source: """
- \(Defs.go116) version
- """
-}
-
-Steps: go115default: preguide.#Command & {
- Source: """
- alias go=\(Defs.go115)
- """
-}
-
-Steps: public_init: preguide.#Command & {
- Source: """
- mkdir \(Defs.public_dir)
- cd \(Defs.public_dir)
- \(Defs.cmdgo.modinit) \(Defs.public_mod)
- \(Defs.git.init)
- \(Defs.git.remote) add origin \(Defs.public_vcs)
- """
-}
-
-Steps: public_go_initial: preguide.#Upload & {
- Target: "\(Defs.public_dir)/\(Defs.public_go)"
- Source: #"""
-package \#(Defs.public)
-
-import (
- "fmt"
- "io/ioutil"
-)
-
-func \#(Defs.public_func) {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
-}
-"""#
-}
-
-Steps: public_initial_commit: preguide.#Command & {
- Source: """
-\(Defs.git.add) \(Defs.public_go) go.mod
-\(Defs.git.commit) -m 'Initial commit of \(Defs.public) module'
-\(Defs.git.push) origin main
-"""
-}
-
-Steps: public_check_initial_porcelain: preguide.#Command & {
- InformationOnly: true
- Source: """
- [ "$(git status --porcelain)" == "" ] || (git status && false)
- """
-}
-
-Steps: gopher_init: preguide.#Command & {
- Source: """
-mkdir \(Defs.gopher_dir)
-cd \(Defs.gopher_dir)
-\(Defs.cmdgo.modinit) \(Defs.gopher)
-"""
-}
-
-Steps: gopher_go_initial: preguide.#Upload & {
- Target: "\(Defs.gopher_dir)/\(Defs.gopher_go)"
- Source: #"""
-package main
-
-import (
-
-"\#(Defs.public_mod)"
-)
-
-func main() {
- \#(Defs.public).\#(Defs.public_func)
-}
-
-"""#
-}
-
-Steps: gopher_get: preguide.#Command & {
- Source: """
-\(Defs.cmdgo.get) -d \(Defs.public_mod)@latest
-"""
-}
-
-Steps: golist_gopher_1: preguide.#Command & {
- InformationOnly: true
- RandomReplace: "v0.0.0-\(_#StablePsuedoversionSuffix)"
- Source: """
- go list -m -f {{.Version}} \(Defs.public_mod)
- """
-}
-
-Steps: gopher_run: preguide.#Command & {
- Source: """
-\(Defs.cmdgo.run) .
-"""
-}
-
-Steps: go116default: preguide.#Command & {
- Source: """
-alias go=\(Defs.go116)
-"""
-}
-
-Steps: public_bump_discard: preguide.#Upload & {
- Target: "\(Defs.public_dir)/\(Defs.public_go)"
- Source: #"""
-package \#(Defs.public)
-
-import (
- "fmt"
- "io"
-)
-
-func \#(Defs.public_func) {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
-}
-"""#
-}
-
-Steps: public_bump_commit: preguide.#Command & {
- Source: """
-cd \(Defs.public_dir)
-\(Defs.git.add) \(Defs.public_go) go.mod
-\(Defs.git.commit) -m 'Bump \(Defs.public) to go1.16'
-\(Defs.git.push) origin main
-"""
-}
-
-Steps: go115default1: preguide.#Command & {
- Source: """
- alias go=\(Defs.go115)
- """
-}
-
-Steps: gopher_update: preguide.#Command & {
- Source: """
-cd \(Defs.gopher_dir)
-GOPROXY=direct \(Defs.cmdgo.get) -d \(Defs.public_mod)@latest
-"""
-}
-
-Steps: golist_gopher_2: preguide.#Command & {
- InformationOnly: true
- RandomReplace: "v0.0.0-\(_#StablePsuedoversionSuffix)"
- Source: """
- go list -m -f {{.Version}} \(Defs.public_mod)
- """
-}
-
-Steps: gopher_run_fail: preguide.#Command & {
- Source: """
-! \(Defs.cmdgo.run) .
-"""
-}
-
-Steps: public_rollback_mod: preguide.#Upload & {
- Target: "\(Defs.public_dir)/\(Defs.public_go)"
- Source: #"""
-// +build !go1.16
-
-package \#(Defs.public)
-
-import (
- "fmt"
- "io/ioutil"
-)
-
-func \#(Defs.public_func) {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
-}
-"""#
-}
-
-Steps: public_add_buildtag: preguide.#Upload & {
- Target: "\(Defs.public_dir)/\(Defs.public_go116)"
- Source: #"""
-// +build go.1.16
-
-package \#(Defs.public)
-
-import (
- "fmt"
- "io"
-)
-
-func \#(Defs.public_func) {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
-}
-"""#
-}
-
-Steps: public_fix_commit: preguide.#Command & {
- Source: """
-cd \(Defs.public_dir)
-\(Defs.git.add) \(Defs.public_go) \(Defs.public_go116) go.mod
-\(Defs.git.commit) -m 'Fix \(Defs.public) bump to go1.16'
-\(Defs.git.push) origin main
-"""
-}
-
-Steps: gopher_update_fix: preguide.#Command & {
- Source: """
-cd \(Defs.gopher_dir)
-GOPROXY=direct \(Defs.cmdgo.get) -d \(Defs.public_mod)@latest
-"""
-}
-
-Steps: golist_gopher_3: preguide.#Command & {
- InformationOnly: true
- RandomReplace: "v0.0.0-\(_#StablePsuedoversionSuffix)"
- Source: """
- go list -m -f {{.Version}} \(Defs.public_mod)
- """
-}
-
-Steps: gopher_run_fix: preguide.#Command & {
- Source: """
-\(Defs.cmdgo.run) .
-"""
-}
diff --git a/guides/2021-05-02-build-flags-backwards-compatibility/out/gen_out.cue b/guides/2021-05-02-build-flags-backwards-compatibility/out/gen_out.cue
deleted file mode 100644
index ffa601cd..00000000
--- a/guides/2021-05-02-build-flags-backwards-compatibility/out/gen_out.cue
+++ /dev/null
@@ -1,766 +0,0 @@
-package out
-
-Presteps: [{
- Package: "github.com/play-with-go/gitea"
- Path: "/newuser"
- Args: {
- Repos: [{
- Pattern: "public"
- Private: false
- Var: "PUBLIC"
- }]
- }
- Version: """
- {
- "Path": "github.com/play-with-go/gitea/cmd/gitea",
- "Main": {
- "Path": "github.com/play-with-go/gitea",
- "Version": "v0.0.0-20210723114817-feef4e6b64a7",
- "Sum": "h1:sEr3hyAUMVVfDG6xmHdzwSKHOL8ZpI5DJYQvbMtpZks=",
- "Replace": null
- },
- "Deps": [
- {
- "Path": "code.gitea.io/sdk/gitea",
- "Version": "v0.13.1",
- "Sum": "h1:Y7bpH2iO6Q0KhhMJfjP/LZ0AmiYITeRQlCD8b0oYqhk=",
- "Replace": null
- },
- {
- "Path": "cuelang.org/go",
- "Version": "v0.4.0",
- "Sum": "h1:GLJblw6m2WGGCA3k1v6Wbk9gTOt2qto48ahO2MmSd6I=",
- "Replace": null
- },
- {
- "Path": "github.com/cockroachdb/apd/v2",
- "Version": "v2.0.1",
- "Sum": "h1:y1Rh3tEU89D+7Tgbw+lp52T6p/GJLpDmNvr10UWqLTE=",
- "Replace": null
- },
- {
- "Path": "github.com/emicklei/proto",
- "Version": "v1.6.15",
- "Sum": "h1:XbpwxmuOPrdES97FrSfpyy67SSCV/wBIKXqgJzh6hNw=",
- "Replace": null
- },
- {
- "Path": "github.com/golang/glog",
- "Version": "v0.0.0-20160126235308-23def4e6c14b",
- "Sum": "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=",
- "Replace": null
- },
- {
- "Path": "github.com/google/uuid",
- "Version": "v1.2.0",
- "Sum": "h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=",
- "Replace": null
- },
- {
- "Path": "github.com/hashicorp/go-version",
- "Version": "v1.2.0",
- "Sum": "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
- "Replace": null
- },
- {
- "Path": "github.com/mpvl/unique",
- "Version": "v0.0.0-20150818121801-cbe035fff7de",
- "Sum": "h1:D5x39vF5KCwKQaw+OC9ZPiLVHXz3UFw2+psEX+gYcto=",
- "Replace": null
- },
- {
- "Path": "github.com/pkg/errors",
- "Version": "v0.9.1",
- "Sum": "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=",
- "Replace": null
- },
- {
- "Path": "github.com/play-with-go/preguide",
- "Version": "v0.0.2-0.20210723101428-f0437229c60d",
- "Sum": "h1:298lqYRTgb0AnzWRhXMFuAwNtoR7L60aTCNmWOyz4Gw=",
- "Replace": null
- },
- {
- "Path": "github.com/protocolbuffers/txtpbfmt",
- "Version": "v0.0.0-20201118171849-f6a6b3f636fc",
- "Sum": "h1:gSVONBi2HWMFXCa9jFdYvYk7IwW/mTLxWOF7rXS4LO0=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/crypto",
- "Version": "v0.0.0-20200622213623-75b288015ac9",
- "Sum": "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/net",
- "Version": "v0.0.0-20210316092652-d523dce5a7f4",
- "Sum": "h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/text",
- "Version": "v0.3.6",
- "Sum": "h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=",
- "Replace": null
- },
- {
- "Path": "golang.org/x/xerrors",
- "Version": "v0.0.0-20200804184101-5ec99f83aff1",
- "Sum": "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
- "Replace": null
- },
- {
- "Path": "gopkg.in/retry.v1",
- "Version": "v1.0.3",
- "Sum": "h1:a9CArYczAVv6Qs6VGoLMio99GEs7kY9UzSF9+LD+iGs=",
- "Replace": null
- },
- {
- "Path": "gopkg.in/yaml.v3",
- "Version": "v3.0.0-20200313102051-9f266ea9e77c",
- "Sum": "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=",
- "Replace": null
- }
- ]
- }
- """
- Variables: ["GITEA_USERNAME", "GITEA_PRIV_KEY", "GITEA_PUB_KEY", "GITEA_KEYSCAN", "PUBLIC"]
-}]
-Terminals: [{
- Name: "term1"
- Description: "The main terminal"
- Scenarios: {
- go115: {
- Image: "playwithgo/go1.15_1.16@sha256:38ee32afdd785e5f1d9e63033ce5d64cbd098207ed6506669105db97c2dbe9a1"
- }
- }
-}]
-Scenarios: [{
- Name: "go115"
- Description: "Go 1.15"
-}]
-Networks: ["playwithgo_pwg"]
-Env: []
-FilenameComment: false
-Steps: {
- go115version: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go115version"
- Order: 0
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go115 version"
- ExitCode: 0
- Output: """
- go version go1.15.8 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.15.8 linux/amd64
-
- """
- }]
- }
- go116version: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go116version"
- Order: 1
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go116 version"
- ExitCode: 0
- Output: """
- go version go1.16.3 linux/amd64
-
- """
- ComparisonOutput: """
- go version go1.16.3 linux/amd64
-
- """
- }]
- }
- go115default: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go115default"
- Order: 2
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "alias go=go115"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- public_init: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_init"
- Order: 3
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "mkdir /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "cd /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "go mod init {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- go: creating new go.mod: module {{{.PUBLIC}}}
-
- """
- ComparisonOutput: """
- go: creating new go.mod: module {{{.PUBLIC}}}
-
- """
- }, {
- Negated: false
- CmdStr: "git init -q"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git remote add origin https://{{{.PUBLIC}}}.git"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- public_go_initial: {
- StepType: 2
- Name: "public_go_initial"
- Order: 4
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- package public
-
- import (
- "fmt"
- "io/ioutil"
- )
-
- func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public.go"
- }
- public_initial_commit: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_initial_commit"
- Order: 5
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "git add public.go go.mod"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git commit -q -m 'Initial commit of public module'"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git push -q origin main"
- ExitCode: 0
- Output: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- ComparisonOutput: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- }]
- }
- public_check_initial_porcelain: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: true
- Name: "public_check_initial_porcelain"
- Order: 6
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "[ \"$(git status --porcelain)\" == \"\" ] || (git status && false)"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- gopher_init: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_init"
- Order: 7
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "mkdir /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "cd /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "go mod init gopher"
- ExitCode: 0
- Output: """
- go: creating new go.mod: module gopher
-
- """
- ComparisonOutput: """
- go: creating new go.mod: module gopher
-
- """
- }]
- }
- gopher_go_initial: {
- StepType: 2
- Name: "gopher_go_initial"
- Order: 8
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- package main
-
- import (
-
- "{{{.PUBLIC}}}"
- )
-
- func main() {
- public.DoSomething()
- }
-
- """
- Target: "/home/gopher/gopher/gopher.go"
- }
- gopher_get: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_get"
- Order: 9
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go get -d {{{.PUBLIC}}}@latest"
- ExitCode: 0
- Output: """
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
-
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- """
- }]
- }
- golist_gopher_1: {
- StepType: 1
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Name: "golist_gopher_1"
- Order: 10
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- }]
- }
- gopher_run: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_run"
- Order: 11
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go run ."
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- go116default: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go116default"
- Order: 12
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "alias go=go116"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- public_bump_discard: {
- StepType: 2
- Name: "public_bump_discard"
- Order: 13
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- package public
-
- import (
- "fmt"
- "io"
- )
-
- func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public.go"
- }
- public_bump_commit: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_bump_commit"
- Order: 14
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git add public.go go.mod"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git commit -q -m 'Bump public to go1.16'"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git push -q origin main"
- ExitCode: 0
- Output: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- ComparisonOutput: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- }]
- }
- go115default1: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "go115default1"
- Order: 15
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "alias go=go115"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
- gopher_update: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_update"
- Order: 16
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "GOPROXY=direct go get -d {{{.PUBLIC}}}@latest"
- ExitCode: 0
- Output: """
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
-
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- """
- }]
- }
- golist_gopher_2: {
- StepType: 1
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Name: "golist_gopher_2"
- Order: 17
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- }]
- }
- gopher_run_fail: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_run_fail"
- Order: 18
- Terminal: "term1"
- Stmts: [{
- Negated: true
- CmdStr: "go run ."
- ExitCode: 2
- Output: """
- # {{{.PUBLIC}}}
- ../go/pkg/mod/{{{.PUBLIC}}}@v0.0.0-20060102150405-abcedf12345/public.go:9:17: undefined: io.Discard
-
- """
- ComparisonOutput: """
- # {{{.PUBLIC}}}
- ../go/pkg/mod/{{{.PUBLIC}}}@v0.0.0-20060102150405-abcedf12345/public.go:9:17: undefined: io.Discard
-
- """
- }]
- }
- public_rollback_mod: {
- StepType: 2
- Name: "public_rollback_mod"
- Order: 19
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- // +build !go1.16
-
- package public
-
- import (
- "fmt"
- "io/ioutil"
- )
-
- func DoSomething() {
- fmt.Fprintf(ioutil.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public.go"
- }
- public_add_buildtag: {
- StepType: 2
- Name: "public_add_buildtag"
- Order: 20
- Terminal: "term1"
- Language: "go"
- Renderer: {
- RendererType: 1
- }
- Source: """
- // +build go.1.16
-
- package public
-
- import (
- "fmt"
- "io"
- )
-
- func DoSomething() {
- fmt.Fprintf(io.Discard, "This doesn't print anything")
- }
- """
- Target: "/home/gopher/public/public_116.go"
- }
- public_fix_commit: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "public_fix_commit"
- Order: 21
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/public"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git add public.go public_116.go go.mod"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git commit -q -m 'Fix public bump to go1.16'"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "git push -q origin main"
- ExitCode: 0
- Output: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- ComparisonOutput: """
- remote: . Processing 1 references
- remote: Processed 1 references in total
-
- """
- }]
- }
- gopher_update_fix: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_update_fix"
- Order: 22
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "cd /home/gopher/gopher"
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }, {
- Negated: false
- CmdStr: "GOPROXY=direct go get -d {{{.PUBLIC}}}@latest"
- ExitCode: 0
- Output: """
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
-
- go: downloading {{{.PUBLIC}}} v0.0.0-20060102150405-abcedf12345
- go: {{{.PUBLIC}}} latest => v0.0.0-20060102150405-abcedf12345
- """
- }]
- }
- golist_gopher_3: {
- StepType: 1
- RandomReplace: "v0.0.0-20060102150405-abcedf12345"
- DoNotTrim: false
- InformationOnly: true
- Name: "golist_gopher_3"
- Order: 23
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go list -m -f {{.Version}} {{{.PUBLIC}}}"
- ExitCode: 0
- Output: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- ComparisonOutput: """
- v0.0.0-20060102150405-abcedf12345
-
- """
- }]
- }
- gopher_run_fix: {
- StepType: 1
- DoNotTrim: false
- InformationOnly: false
- Name: "gopher_run_fix"
- Order: 24
- Terminal: "term1"
- Stmts: [{
- Negated: false
- CmdStr: "go run ."
- ExitCode: 0
- Output: ""
- ComparisonOutput: ""
- }]
- }
-}
-Hash: "38e873864a7ccbdfcc6c5665dcf66289b102f3e1edc415b6a38eca97cefaf28f"
-Delims: ["{{{", "}}}"]
diff --git a/guides/2021-05-06-gosheffield-demo/out/gen_out.cue b/guides/2021-05-06-gosheffield-demo/out/gen_out.cue
index 0fdf80c5..dda6d0e5 100644
--- a/guides/2021-05-06-gosheffield-demo/out/gen_out.cue
+++ b/guides/2021-05-06-gosheffield-demo/out/gen_out.cue
@@ -5,7 +5,7 @@ Terminals: [{
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -54,5 +54,5 @@ Steps: {
}]
}
}
-Hash: "24af23fafe43b0df2bd68b991e110ab011c6cd12d51062d13ab12b13628494ce"
+Hash: "271f9cdbe52fe75c83acb8deecf95dc51ec068d641335bba20245003681ce10a"
Delims: ["{{{", "}}}"]
diff --git a/guides/gen_guide_structures.cue b/guides/gen_guide_structures.cue
index ecf7bd13..3f2bff0d 100644
--- a/guides/gen_guide_structures.cue
+++ b/guides/gen_guide_structures.cue
@@ -7,36 +7,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
- }
- }
- }]
- Scenarios: [{
- Name: "go115"
- Description: "Go 1.15"
- }]
- Networks: ["playwithgo_pwg"]
- Env: []
-}
-"2021-05-02-build-flags-backwards-compatibility": {
- Delims: ["{{{", "}}}"]
- Presteps: [{
- Package: "github.com/play-with-go/gitea"
- Path: "/newuser"
- Args: {
- Repos: [{
- Pattern: "public"
- Private: false
- Var: "PUBLIC"
- }]
- }
- }]
- Terminals: [{
- Name: "term1"
- Description: "The main terminal"
- Scenarios: {
- go115: {
- Image: "playwithgo/go1.15_1.16@sha256:38ee32afdd785e5f1d9e63033ce5d64cbd098207ed6506669105db97c2dbe9a1"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -69,7 +40,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -102,7 +73,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -120,7 +91,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -138,7 +109,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -167,7 +138,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go116: {
- Image: "playwithgo/go1.16@sha256:3ae1950433998a2be8c8ce3b1cb6479e6541f1e32443447a24085cfe09e2c391"
+ Image: "playwithgo/go1.16.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -196,7 +167,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -225,7 +196,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -254,7 +225,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -272,7 +243,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/installgo1.15.8@sha256:0e480b658f50b85b8eb40c426022d572709a93f6e0a7fe65475bea50ad172c5f"
+ Image: "playwithgo/installgo1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -290,7 +261,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
@@ -323,7 +294,7 @@ package guides
Description: "The main terminal"
Scenarios: {
go115: {
- Image: "playwithgo/go1.15.8@sha256:7640da09d1555c4dddbba7f1b96051af2816e6542005176b749f38865ee0454c"
+ Image: "playwithgo/go1.15.15:c14f40c289a17ef3817d7f82ea3ea2cfc3297713"
}
}
}]
diff --git a/guides/guides.go b/guides/guides.go
index f4031035..7ce8d345 100644
--- a/guides/guides.go
+++ b/guides/guides.go
@@ -2,6 +2,7 @@
// this source code is governed by a BSD-style license that can be found in the
// LICENSE file.
+//go:build guides
// +build guides
package guide
diff --git a/internal/ci/workflows.cue b/internal/ci/workflows.cue
index 747bb44a..f020ded2 100644
--- a/internal/ci/workflows.cue
+++ b/internal/ci/workflows.cue
@@ -5,17 +5,15 @@ import "github.com/SchemaStore/schemastore/src/schemas/json"
#workflows: [...{file: string, schema: json.#Workflow}]
#workflows: [
{file: "test.yml", schema: test},
- {file: "wip.yml", schema: wip},
]
-_#latestUbuntu: "ubuntu-18.04"
-_#latestGo: "1.16.3"
+_#latestUbuntu: "ubuntu-20.04"
+_#latestGo: "1.19.1"
#testWorkflow: json.#Workflow & {
env: {
DOCKER_HUB_USER: "playwithgopher"
DOCKER_HUB_TOKEN: "${{ secrets.DOCKER_HUB_TOKEN }}"
- PREGUIDE_DEBUG: true
PLAYWITHGODEV_CONTRIBUTOR_USER: "playwithgopher_github"
PLAYWITHGODEV_CONTRIBUTOR_PASSWORD: "${{ secrets.PLAYWITHGODEV_CONTRIBUTOR_PASSWORD }}"
PLAYWITHGOPHER_GITHUB_PAT: "${{ secrets.PLAYWITHGOPHER_GITHUB_PAT }}"
@@ -56,43 +54,38 @@ _#latestGo: "1.16.3"
name: "Env setup"
run: "./_scripts/env.sh github"
},
- {
- name: "docker-compose build"
- run: "./_scripts/dc.sh build"
- },
- {
- name: "Start gitea services"
- run: "./_scripts/dc.sh up -d cmd_gitea"
- },
{
name: "Verify"
run: "go mod verify"
},
{
- name: "Re-generate guides"
- run: "_scripts/generateGuides.sh"
+ name: "Tidy"
+ run: "go mod tidy"
},
{
- name: "Race check re-generating guides"
- run: "go run -race github.com/play-with-go/preguide/cmd/preguide gen -out ../_posts"
- "working-directory": "./guides"
- if: "${{ github.event_name == 'schedule' }}"
+ name: "Run unity tests"
+ run: "go run github.com/cue-sh/unity/cmd/unity test"
},
{
- name: "Re-generate everything else"
- run: "_scripts/generateEverythingElse.sh"
+ name: "docker-compose build"
+ run: "./_scripts/dc.sh build"
},
{
- name: "Tidy"
- run: "go mod tidy"
+ name: "Start gitea services"
+ run: "./_scripts/dc.sh up -d cmd_gitea"
},
{
- name: "Verify commit is clean"
- run: "test -z \"$(git status --porcelain)\" || (git status; git diff; false)"
+ name: "Re-generate guides"
+ run: "_scripts/generateGuides.sh"
+ env: {
+ CGO_ENABLED: "0"
+ PREGUIDE_SKIP_CACHE: "true"
+ PREGUIDE_PROGRESS: "true"
+ }
},
{
- name: "Run unity tests"
- run: "go run github.com/cue-sh/unity/cmd/unity test"
+ name: "Re-generate everything else"
+ run: "_scripts/generateEverythingElse.sh"
},
{
name: "Verify commit is clean"
@@ -119,24 +112,3 @@ test: {
}
jobs: test: strategy: matrix: os: [_#latestUbuntu]
}
-
-wip: json.#Workflow & {
- name: "WIP"
- on: {
- pull_request: {
- types: ["opened", "synchronize", "reopened", "edited"]
- }
- }
- jobs: wip: {
- env: {
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- }
- "runs-on": _#latestUbuntu
- steps: [{
- uses: "myitcv/wip@v1.0.0"
- with: {
- token: "${{ secrets.GITHUB_TOKEN }}"
- }
- }]
- }
-}