From e887a7bbab95628c6b90b55c54d4395b94393ad2 Mon Sep 17 00:00:00 2001 From: Almenon Date: Sat, 20 Jan 2024 21:26:51 -0800 Subject: [PATCH 01/14] test latest go versions --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 5d381c75..82c9d77c 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - golang-version: [1.13, 1.14, 1.15, 1.16, 1.17] + golang-version: [1.17, 1.18, 1.19, 1.20, 1.21] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 From e7afb03c3f955e464d46419118094c7d80657554 Mon Sep 17 00:00:00 2001 From: Almenon Date: Sat, 20 Jan 2024 21:30:38 -0800 Subject: [PATCH 02/14] Update README.md updated go versions and reference to circleci --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f83c4b6b..b2743d7b 100644 --- a/README.md +++ b/README.md @@ -191,11 +191,11 @@ You can install this tool locally to checkout what kinds of config it will gener Recommended: Install any version via go install: ```bash -go install github.com/transcend-io/terragrunt-atlantis-config@v1.16.0 +go install github.com/transcend-io/terragrunt-atlantis-config@v1.21.0 ``` -This module officially supports golang versions v1.13, v1.14, v1.15, and v1.16, tested on CircleCI with each build -This module also officially supports both Windows and Nix-based file formats, tested on CircleCI with each build +This module officially supports golang versions v1.17, v1.18, v1.19, v1.20, and v1.21, tested on Github with each build. +This module also officially supports both Windows and Nix-based file formats, tested on Github with each build. Usage Examples (see below sections for all options): From 19132219474fececaf5f8b9b9dbd5dfac7f0ab67 Mon Sep 17 00:00:00 2001 From: Almenon Date: Sun, 21 Jan 2024 05:31:00 +0000 Subject: [PATCH 03/14] [Chore] Update Contributors SVG --- CONTRIBUTORS.svg | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index b356c3c2..b8813609 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -25,120 +25,126 @@ + + + Almenon + + + fbad - + IndraGunawan - + mmalecki - + tufitko - + - + arthur-lecle... - + bencmbrook - + chkelly - + raizyr - + GenPage - + emedvedev - + gmaghera - + gmpify - + shemul - + maitreya-sou... - + m0ps - + mhennecke - + dennislapche... - + jgravois - + scream314 - + tafkam From a625a5e20f4f66d00d4fc62539380f8d3c9f22d6 Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 21:42:13 -0800 Subject: [PATCH 04/14] doublecheck right version is being used. also remove old versions --- .github/workflows/run_tests.yml | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 82c9d77c..349dfc44 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - golang-version: [1.17, 1.18, 1.19, 1.20, 1.21] + golang-version: [1.20, 1.21] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 @@ -21,4 +21,5 @@ jobs: restore-keys: | ${{ matrix.os }}-${{ matrix.golang-version }}-go- - run: mkdir cmd/test_artifacts + - run: go version - run: go test -v ./... diff --git a/README.md b/README.md index b2743d7b..3b4a6ea2 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ Recommended: Install any version via go install: go install github.com/transcend-io/terragrunt-atlantis-config@v1.21.0 ``` -This module officially supports golang versions v1.17, v1.18, v1.19, v1.20, and v1.21, tested on Github with each build. +This module officially supports golang versions v1.20, and v1.21, tested on Github with each build. This module also officially supports both Windows and Nix-based file formats, tested on Github with each build. Usage Examples (see below sections for all options): From e181a3ac8ac94cca3f4eda6fce35559d8013956d Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 21:42:54 -0800 Subject: [PATCH 05/14] update gitignore for vscode --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5fe9ea0d..3ce03543 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,17 @@ ############################## ########### Custom ########### ############################## -.vscode/ build test_artifacts # IDEs +.vscode/ .vscode *.sublime-* .idea .editorconfig .swp +*.code-workspace # OS files *.DS_Store From 52c62d6bf1e50910f1e7caf082bf7cf739e5c130 Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 21:47:06 -0800 Subject: [PATCH 06/14] update to latest checkout --- .github/workflows/container-build.yml | 4 ++-- .github/workflows/contributors.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/run_tests.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/container-build.yml b/.github/workflows/container-build.yml index a2567f1e..b4fb4f8f 100644 --- a/.github/workflows/container-build.yml +++ b/.github/workflows/container-build.yml @@ -26,11 +26,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest SHA for this branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: github.event_name != 'workflow_dispatch' - name: Checkout the specified tag - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: github.event_name == 'workflow_dispatch' with: ref: ${{ github.event.inputs.tag }} diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 0e1d8a24..933521f0 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -7,7 +7,7 @@ jobs: contributors: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: wow-actions/contributors-list@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad2c1290..ddf63868 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - run: go install github.com/laher/goxc@latest # Checkout code - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Install golang deps, using a cache - uses: actions/cache@v2 diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 349dfc44..e14dc36a 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -9,7 +9,7 @@ jobs: golang-version: [1.20, 1.21] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup golang v${{ matrix.golang-version }} uses: actions/setup-go@v2 with: From 8f32d51a04504cccf7803eae40b40c535cee4883 Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 21:48:37 -0800 Subject: [PATCH 07/14] fix go versions --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index e14dc36a..ecc78504 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - golang-version: [1.20, 1.21] + golang-version: ['1.20', '1.21'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From bf7396da8908a48fdc91de319559ca08d5095fa8 Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 22:01:50 -0800 Subject: [PATCH 08/14] update go version to v1.21 --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ddf63868..477a99f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: # Install golang - uses: actions/setup-go@v2 with: - go-version: '^1.16' + go-version: '^1.21' # Install external go modules before cloning - run: go install github.com/laher/goxc@latest @@ -26,9 +26,9 @@ jobs: - uses: actions/cache@v2 with: path: ~/go/pkg/mod - key: ubuntu-latest-1.16-go-${{ hashFiles('**/go.sum') }} + key: ubuntu-latest-1.21-go-${{ hashFiles('**/go.sum') }} restore-keys: | - ubuntu-latest-1.16-go- + ubuntu-latest-1.21-go- # build binaries for all supported environments - run: sudo apt update && sudo apt install -y make From 39e40030d3d6f0cb24061a49393d744eec215cfe Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 22:04:03 -0800 Subject: [PATCH 09/14] fix quote marks --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index ecc78504..14e5b75d 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -13,7 +13,7 @@ jobs: - name: Setup golang v${{ matrix.golang-version }} uses: actions/setup-go@v2 with: - go-version: "^${{ matrix.golang-version }}" + go-version: '^${{ matrix.golang-version }}' - uses: actions/cache@v2 with: path: ~/go/pkg/mod From 8bc8be53952dccf51a3f3497d77af957bf6e4d1a Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 22:10:49 -0800 Subject: [PATCH 10/14] tidy go mod --- go.mod | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++---- go.sum | 3 -- 2 files changed, 98 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 822d6eee..11cfbdd1 100644 --- a/go.mod +++ b/go.mod @@ -1,23 +1,114 @@ module github.com/transcend-io/terragrunt-atlantis-config -go 1.16 +go 1.21 require ( - github.com/bmatcuk/doublestar v1.3.1 // indirect github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 - github.com/go-errors/errors v1.1.1 // indirect github.com/gruntwork-io/terragrunt v0.36.6 github.com/hashicorp/go-getter v1.5.11 github.com/hashicorp/hcl/v2 v2.11.1 github.com/hashicorp/terraform-config-inspect v0.0.0-20210625153042-09f34846faab - github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c // indirect - github.com/imdario/mergo v0.3.12 // indirect - github.com/mattn/go-zglob v0.0.2 // indirect github.com/sirupsen/logrus v1.6.0 github.com/spf13/cobra v0.0.5 github.com/stretchr/testify v1.7.0 - github.com/urfave/cli v1.22.4 // indirect github.com/zclconf/go-cty v1.8.3 golang.org/x/sync v0.0.0-20210220032951-036812b2e83c +) + +require ( + cloud.google.com/go v0.93.3 // indirect + cloud.google.com/go/storage v1.16.0 // indirect + filippo.io/age v1.0.0-beta7 // indirect + github.com/Azure/azure-sdk-for-go v52.5.0+incompatible // indirect + github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest v0.11.18 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect + github.com/Azure/go-autorest/autorest/azure/auth v0.5.7 // indirect + github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 // indirect + github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect + github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect + github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect + github.com/Azure/go-autorest/logger v0.2.1 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect + github.com/agext/levenshtein v1.2.3 // indirect + github.com/apparentlymart/go-cidr v1.1.0 // indirect + github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/aws/aws-sdk-go v1.41.7 // indirect + github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect + github.com/blang/semver v3.5.1+incompatible // indirect + github.com/bmatcuk/doublestar v1.3.1 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect + github.com/creack/pty v1.1.11 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dimchansky/utfbom v1.1.1 // indirect + github.com/fatih/color v1.9.0 // indirect + github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect + github.com/go-errors/errors v1.1.1 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/go-cmp v0.5.6 // indirect + github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf // indirect + github.com/google/uuid v1.2.0 // indirect + github.com/googleapis/gax-go/v2 v2.0.5 // indirect + github.com/goware/prefixer v0.0.0-20160118172347-395022866408 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-retryablehttp v0.6.7 // indirect + github.com/hashicorp/go-rootcerts v1.0.2 // indirect + github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/go-sockaddr v1.0.2 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect + github.com/hashicorp/go-version v1.3.0 // indirect + github.com/hashicorp/hcl v1.0.1-vault // indirect + github.com/hashicorp/terraform v0.15.3 // indirect + github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect + github.com/hashicorp/vault/api v1.0.5-0.20210210214158-405eced08457 // indirect + github.com/hashicorp/vault/sdk v0.1.14-0.20210322210658-b52b8b8c1264 // indirect + github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c // indirect + github.com/imdario/mergo v0.3.12 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/klauspost/compress v1.13.4 // indirect + github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect + github.com/lib/pq v1.8.0 // indirect + github.com/mattn/go-colorable v0.1.7 // indirect + github.com/mattn/go-isatty v0.0.12 // indirect + github.com/mattn/go-zglob v0.0.2 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect + github.com/mitchellh/mapstructure v1.3.3 // indirect + github.com/pierrec/lz4 v2.5.2+incompatible // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/russross/blackfriday/v2 v2.0.1 // indirect + github.com/ryanuber/go-glob v1.0.0 // indirect + github.com/sergi/go-diff v1.1.0 // indirect + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/ulikunitz/xz v0.5.10 // indirect + github.com/urfave/cli v1.22.4 // indirect + github.com/zclconf/go-cty-yaml v1.0.2 // indirect + go.mozilla.org/gopgagent v0.0.0-20170926210634-4d7ea76ff71a // indirect + go.mozilla.org/sops/v3 v3.7.0 // indirect + go.opencensus.io v0.23.0 // indirect + golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect + golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect + golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect + golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect + golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf // indirect + golang.org/x/text v0.3.7 // indirect + golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect + google.golang.org/api v0.54.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 // indirect + google.golang.org/grpc v1.40.0 // indirect + google.golang.org/protobuf v1.27.1 // indirect gopkg.in/ini.v1 v1.57.0 // indirect + gopkg.in/square/go-jose.v2 v2.5.1 // indirect + gopkg.in/urfave/cli.v1 v1.20.0 // indirect + gopkg.in/yaml.v2 v2.3.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107172259-749611fa9fcc // indirect ) diff --git a/go.sum b/go.sum index 2318af4a..ba87397e 100644 --- a/go.sum +++ b/go.sum @@ -170,7 +170,6 @@ github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:o github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I= github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-shquot v0.0.1/go.mod h1:lw58XsE5IgUXZ9h0cxnypdx31p9mPFIVEQ9P3c7MlrU= -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= @@ -252,7 +251,6 @@ github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7 github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM= @@ -809,7 +807,6 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= -github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= From 960d1d6251cd1055b78b6520384602500b0ecb5d Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 22:11:36 -0800 Subject: [PATCH 11/14] update go version --- Makefile | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5fc66944..678fc8c3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=1.16.0 +VERSION=1.21.0 PATH_BUILD=build/ FILE_COMMAND=terragrunt-atlantis-config FILE_ARCH=darwin_amd64 diff --git a/main.go b/main.go index 1cb3942d..5b226c55 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import "github.com/transcend-io/terragrunt-atlantis-config/cmd" // This variable is set at build time using -ldflags parameters. // But we still set a default here for those using plain `go get` downloads // For more info, see: http://stackoverflow.com/a/11355611/483528 -var VERSION string = "1.16.0" +var VERSION string = "1.21.0" func main() { cmd.Execute(VERSION) From 235fdbe45450591233e4df9615d9746b4da45c88 Mon Sep 17 00:00:00 2001 From: almenon Date: Sat, 20 Jan 2024 22:16:22 -0800 Subject: [PATCH 12/14] remove cache. v4 includes cache --- .github/workflows/release.yml | 10 +--------- .github/workflows/run_tests.yml | 8 +------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 477a99f5..ff0ab2d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: steps: # Install golang - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v4 with: go-version: '^1.21' @@ -21,14 +21,6 @@ jobs: # Checkout code - uses: actions/checkout@v4 - - # Install golang deps, using a cache - - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ubuntu-latest-1.21-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ubuntu-latest-1.21-go- # build binaries for all supported environments - run: sudo apt update && sudo apt install -y make diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 14e5b75d..c19ae883 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -11,15 +11,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup golang v${{ matrix.golang-version }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: '^${{ matrix.golang-version }}' - - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ matrix.os }}-${{ matrix.golang-version }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ matrix.os }}-${{ matrix.golang-version }}-go- - run: mkdir cmd/test_artifacts - run: go version - run: go test -v ./... From 8f3d6f2cd9c878e55a8828643245814f837683ab Mon Sep 17 00:00:00 2001 From: almenon Date: Sun, 21 Jan 2024 10:26:57 -0800 Subject: [PATCH 13/14] fix regex windows filesystem is case-insensitive. This fixes running tests when using VSCode test-runner on Windows. --- cmd/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/generate.go b/cmd/generate.go index 0836f3e8..1837c35f 100644 --- a/cmd/generate.go +++ b/cmd/generate.go @@ -193,7 +193,7 @@ func getDependencies(path string, terragruntOptions *options.TerragruntOptions) } // Check if the path begins with a drive letter, denoting Windows - isWindowsPath, err := regexp.MatchString(`^[A-Z]:`, parsedSource) + isWindowsPath, err := regexp.MatchString(`^[A-Za-z]:`, parsedSource) if err != nil { return nil, err } From f6b146a92df08e8ddc119026dbb6b28086f31a0f Mon Sep 17 00:00:00 2001 From: almenon Date: Sun, 21 Jan 2024 10:28:49 -0800 Subject: [PATCH 14/14] remove 1.20 some weird bug where github CI always uses 1.21, so no point --- .github/workflows/run_tests.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index c19ae883..52920e02 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - golang-version: ['1.20', '1.21'] + golang-version: ['1.21'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 3b4a6ea2..3a8ced68 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ Recommended: Install any version via go install: go install github.com/transcend-io/terragrunt-atlantis-config@v1.21.0 ``` -This module officially supports golang versions v1.20, and v1.21, tested on Github with each build. +This module officially supports golang version v1.21, tested on Github with each build. This module also officially supports both Windows and Nix-based file formats, tested on Github with each build. Usage Examples (see below sections for all options):