Skip to content

Commit

Permalink
Update module go to 1.19 (#657)
Browse files Browse the repository at this point in the history
* Update module go to 1.19

* bump remaining references for go 1.18 -> 1.19

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeff McCoy <[email protected]>
  • Loading branch information
renovate[bot] and jeff-mccoy authored Aug 6, 2022
1 parent dc6820f commit 34706d8
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: "Dependency: Install Golang"
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: "Dependency: Install Docker Buildx"
id: buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: "Dependency: Install Golang"
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: "Dependency: Install Docker Buildx"
id: buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: "Dependency: Install Golang"
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: "Dependency: Install Docker Buildx"
id: buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: "Dependency: Install Golang"
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: "Dependency: Install Docker Buildx"
id: buildx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zarf-schema-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: "Dependency: Install Golang"
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: "Checkout Repo"
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion docs/3-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mv ./path/to/downloaded/{ZARF_FILE} /usr/local/bin/zarf

### Building the CLI from scratch

If you want to build the CLI from scratch, you can do that too! Our local builds depend on [Go 1.18.x](https://golang.org/doc/install) and are built using [make](https://www.gnu.org/software/make/).
If you want to build the CLI from scratch, you can do that too! Our local builds depend on [Go 1.19.x](https://golang.org/doc/install) and are built using [make](https://www.gnu.org/software/make/).

```bash
git clone [email protected]:defenseunicorns/zarf.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you want to built the CLI from scratch, you can easily do that! In order to b

1. The Zarf repository cloned down:
- `git clone [email protected]:defenseunicorns/zarf.git`
2. Have Go 1.18.x installed on your PATH (instructions can be found [here](https://go.dev/doc/install))
2. Have Go 1.19.x installed on your PATH (instructions can be found [here](https://go.dev/doc/install))
3. `make` utility installed on your PATH (instructions to install w/ Homebrew can be found [here](https://formulae.brew.sh/formula/make))

:::
Expand Down
2 changes: 1 addition & 1 deletion docs/6-developer-guide/2-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The tests in this directory are also able to be run locally!

Running the tests locally have the same prerequisites as running and building Zarf:

1. GoLang >= `1.18.x`
1. GoLang >= `1.19.x`
2. Make
3. Any clean K8s cluster (local or remote) or Linux with sudo if you want to do the Zarf-installed K3s cluster

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/defenseunicorns/zarf

go 1.18
go 1.19

require (
github.com/AlecAivazis/survey/v2 v2.3.5
Expand Down
2 changes: 1 addition & 1 deletion src/test/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The tests in this directory are also able to be run locally!

### Dependencies
Running the tests locally have the same prerequisites as running and building Zarf:
1. GoLang >= `1.18.x`
1. GoLang >= `1.19.x`
2. Make
3. Access to a K8s cluster to test against or Linux with root priv if `APPLIANCE_MODE=true`
4. (for the `k3s` cluster only) Linux with root privileges
Expand Down
4 changes: 2 additions & 2 deletions src/test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func TestMain(m *testing.M) {
// Work from the root directory of the project
os.Chdir("../../../")

// K3d use the intern package, which requires this to be set in go 1.18
os.Setenv("ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH", "go1.18")
// K3d use the intern package, which requires this to be set in go 1.19
os.Setenv("ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH", "go1.19")

retCode, err := doAllTheThings(m)
if err != nil {
Expand Down

0 comments on commit 34706d8

Please sign in to comment.