From 4f54ae5e63edb6db00b9160cdb858a60156b159b Mon Sep 17 00:00:00 2001 From: xntrik Date: Mon, 6 Feb 2023 15:57:26 +0800 Subject: [PATCH] ci: updating golang --- .github/workflows/hcltm-pre-release.yml | 4 +- .github/workflows/hcltm-release.yml | 4 +- .github/workflows/hcltm-testvet.yml | 2 +- Dockerfile | 2 +- go.mod | 74 ++++++++++++++++++++----- go.sum | 1 - 6 files changed, 66 insertions(+), 21 deletions(-) diff --git a/.github/workflows/hcltm-pre-release.yml b/.github/workflows/hcltm-pre-release.yml index 73fcabc..3567ecb 100644 --- a/.github/workflows/hcltm-pre-release.yml +++ b/.github/workflows/hcltm-pre-release.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '1.16' + go-version: '1.19' - name: Bootstrap run: make bootstrap - name: Test @@ -37,7 +37,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '1.16' + go-version: '1.19' - name: Bootstrap run: make bootstrap - name: Package diff --git a/.github/workflows/hcltm-release.yml b/.github/workflows/hcltm-release.yml index 8813fd1..23418db 100644 --- a/.github/workflows/hcltm-release.yml +++ b/.github/workflows/hcltm-release.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '1.16' + go-version: '1.19' - name: Bootstrap run: make bootstrap - name: Test @@ -39,7 +39,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '1.16' + go-version: '1.19' - name: Bootstrap run: make bootstrap - name: Package diff --git a/.github/workflows/hcltm-testvet.yml b/.github/workflows/hcltm-testvet.yml index f191a4b..73029ed 100644 --- a/.github/workflows/hcltm-testvet.yml +++ b/.github/workflows/hcltm-testvet.yml @@ -11,7 +11,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '1.16' + go-version: '1.19' - name: Vet run: make vet - name: Test diff --git a/Dockerfile b/Dockerfile index 9a479d3..2b329fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.16.2-alpine AS builder +FROM golang:1.19.5-alpine AS builder MAINTAINER Christian Frichot RUN apk update diff --git a/go.mod b/go.mod index c26ce15..60b5351 100644 --- a/go.mod +++ b/go.mod @@ -1,42 +1,88 @@ module github.com/xntrik/hcltm -go 1.16 +go 1.19 require ( github.com/AlecAivazis/survey/v2 v2.3.2 - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/agext/levenshtein v1.2.3 // indirect - github.com/alecthomas/chroma v0.9.4 // indirect - github.com/armon/go-radix v1.0.0 // indirect - github.com/aws/aws-sdk-go v1.44.194 // indirect github.com/charmbracelet/glamour v0.3.0 github.com/davecgh/go-spew v1.1.1 - github.com/fatih/color v1.13.0 // indirect github.com/goccy/go-graphviz v0.0.10-0.20210902085156-412c9a300e00 github.com/google/go-cmp v0.5.6 - github.com/google/uuid v1.3.0 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-getter v1.6.2 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/hcl/v2 v2.10.1 github.com/hashicorp/terraform-json v0.13.0 - github.com/imdario/mergo v0.3.12 // indirect github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 github.com/marqeta/go-dfd v0.1.0 + github.com/mitchellh/cli v1.1.2 + github.com/ryanuber/columnize v2.1.2+incompatible + github.com/zclconf/go-cty v1.9.1 + gonum.org/v1/gonum v0.9.3 +) + +require ( + cloud.google.com/go v0.45.1 // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver v1.5.0 // indirect + github.com/Masterminds/sprig v2.22.0+incompatible // indirect + github.com/agext/levenshtein v1.2.3 // indirect + github.com/alecthomas/chroma v0.9.4 // indirect + github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/armon/go-radix v1.0.0 // indirect + github.com/aws/aws-sdk-go v1.44.194 // indirect + github.com/aymerick/douceur v0.2.0 // indirect + github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect + github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/dlclark/regexp2 v1.4.0 // indirect + github.com/fatih/color v1.13.0 // indirect + github.com/fogleman/gg v1.3.0 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/golang/protobuf v1.3.4 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/googleapis/gax-go/v2 v2.0.5 // indirect + github.com/gorilla/css v1.0.0 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/golang-lru v0.5.1 // indirect + github.com/huandu/xstrings v1.3.2 // indirect + github.com/imdario/mergo v0.3.12 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/klauspost/compress v1.11.2 // indirect + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-colorable v0.1.11 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/mattn/go-runewidth v0.0.13 // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect github.com/microcosm-cc/bluemonday v1.0.16 // indirect - github.com/mitchellh/cli v1.1.2 + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/go-homedir v1.0.0 // indirect + github.com/mitchellh/go-testing-interface v1.0.0 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/muesli/reflow v0.3.0 // indirect github.com/muesli/termenv v0.9.0 // indirect + github.com/olekukonko/tablewriter v0.0.5 // indirect + github.com/pkg/errors v0.9.1 // indirect github.com/posener/complete v1.2.3 // indirect - github.com/ryanuber/columnize v2.1.2+incompatible - github.com/zclconf/go-cty v1.9.1 + github.com/rivo/uniseg v0.2.0 // indirect + github.com/ulikunitz/xz v0.5.8 // indirect + github.com/yuin/goldmark v1.4.13 // indirect + github.com/yuin/goldmark-emoji v1.0.1 // indirect + go.opencensus.io v0.22.0 // indirect + golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d // indirect - gonum.org/v1/gonum v0.9.3 + golang.org/x/net v0.1.0 // indirect + golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect + golang.org/x/sys v0.1.0 // indirect + golang.org/x/term v0.1.0 // indirect + golang.org/x/text v0.4.0 // indirect + google.golang.org/api v0.9.0 // indirect + google.golang.org/appengine v1.6.5 // indirect + google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 // indirect + google.golang.org/grpc v1.21.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index bd056c1..0dc1081 100644 --- a/go.sum +++ b/go.sum @@ -34,7 +34,6 @@ github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721/go.mod h1:QO9JBo github.com/alecthomas/kong v0.2.4/go.mod h1:kQOmtJgV+Lb4aj+I2LEn40cbtawdWJ9Y8QLq+lElKxE= github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= -github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0= github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=