Skip to content

Commit

Permalink
Merge branch 'main' into safer-re-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
finnag committed Aug 11, 2023
2 parents cf33681 + a12823e commit 9634103
Show file tree
Hide file tree
Showing 13 changed files with 60 additions and 95 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ version: 2
jobs:
e2e:
docker:
- image: cimg/go:1.20 # If you update this, update it in the Makefile too
- image: cimg/go:1.21 # If you update this, update it in the Makefile too
environment:
# This version of TF will be downloaded before Atlantis is started.
# We do this instead of setting --default-tf-version because setting
# that flag starts the download asynchronously so we'd have a race
# condition.
# renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
TERRAFORM_VERSION: 1.5.4
TERRAFORM_VERSION: 1.5.5
steps:
- checkout
- run: make build-service
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/lint-required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ on:
paths-ignore:
- '**.go'
- 'go.*'
- '.github/workflows/linter.yml'
- '.github/workflows/lint.yml'
- '.github/workflows/lint-required.yml'
- '.golangci.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -28,17 +30,3 @@ jobs:
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required"'

revive:
if: github.event.pull_request.draft == false
name: runner / revive
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required"'

errcheck:
if: github.event.pull_request.draft == false
name: runner / errcheck
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required"'
34 changes: 2 additions & 32 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
paths:
- '**.go'
- 'go.*'
- '.github/workflows/linter.yml'
- '.github/workflows/lint.yml'
- '.golangci.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -28,35 +29,4 @@ jobs:
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tool_name: golangci-lint

# Use revive via golangci-lint binary with "warning" level.
revive:
if: github.event.pull_request.draft == false
name: runner / revive
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: revive
uses: reviewdog/action-golangci-lint@v2
with:
golangci_lint_flags: "--disable-all -E revive"
tool_name: revive # Change reporter name.
level: warning # GitHub Status Check won't become failure with this level.

# You can add more and more supported linters with different config.
errcheck:
if: github.event.pull_request.draft == false
name: runner / errcheck
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: errcheck
uses: reviewdog/action-golangci-lint@v2
with:
golangci_lint_flags: "--disable-all -E errcheck"
tool_name: errcheck
level: info
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
linters:
enable:
- deadcode
- errcheck
- gochecknoinits
# We don't use goconst because it gives false positives in the tests.
Expand All @@ -11,10 +10,10 @@ linters:
- gosimple
- ineffassign
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
- vet
- vetshadow
run:
timeout: 10m
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.0
18.17.1
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# syntax=docker/dockerfile:1
# what distro is the image being built for
ARG ALPINE_TAG=3.18.2
ARG ALPINE_TAG=3.18.3
ARG DEBIAN_TAG=12.1-slim

# Stage 1: build artifact and download deps

FROM golang:1.20.7-alpine AS builder
FROM golang:1.21.0-alpine AS builder

ARG ATLANTIS_VERSION=dev
ENV ATLANTIS_VERSION=${ATLANTIS_VERSION}
Expand Down Expand Up @@ -121,7 +121,7 @@ RUN case ${TARGETPLATFORM} in \

# install terraform binaries
# renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
ENV DEFAULT_TERRAFORM_VERSION=1.5.4
ENV DEFAULT_TERRAFORM_VERSION=1.5.5

# In the official Atlantis image, we only have the latest of each Terraform version.
# Each binary is about 80 MB so we limit it to the 4 latest minor releases or fewer
Expand Down
2 changes: 1 addition & 1 deletion e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/runatlantis/atlantis/e2e

go 1.20
go 1.21

require (
github.com/google/go-github/v53 v53.2.0
Expand Down
1 change: 1 addition & 0 deletions e2e/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-github/v53 v53.2.0 h1:wvz3FyF53v4BK+AsnvCmeNhf8AkTaeh2SoYu/XUvTtI=
github.com/google/go-github/v53 v53.2.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
Expand Down
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module github.com/runatlantis/atlantis

go 1.20
go 1.21

require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/alicebob/miniredis/v2 v2.30.4
github.com/alicebob/miniredis/v2 v2.30.5
github.com/bradleyfalzon/ghinstallation/v2 v2.6.0
github.com/briandowns/spinner v1.23.0
github.com/cactus/go-statsd-client/v5 v5.1.0
github.com/go-ozzo/ozzo-validation v3.6.0+incompatible
github.com/go-playground/validator/v10 v10.14.1
github.com/go-playground/validator/v10 v10.15.0
github.com/go-test/deep v1.1.0
github.com/golang-jwt/jwt/v5 v5.0.0
github.com/google/go-github/v53 v53.2.0
Expand All @@ -20,8 +20,8 @@ require (
github.com/hashicorp/go-getter/v2 v2.2.1
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-version v1.6.0
github.com/hashicorp/golang-lru/v2 v2.0.4
github.com/hashicorp/terraform-config-inspect v0.0.0-20230614215431-f32df32a01cd
github.com/hashicorp/golang-lru/v2 v2.0.5
github.com/hashicorp/terraform-config-inspect v0.0.0-20230808231734-f15f31bf62b3
github.com/kr/pretty v0.3.1
github.com/mcdafydd/go-azuredevops v0.12.1
github.com/microcosm-cc/bluemonday v1.0.25
Expand All @@ -42,11 +42,11 @@ require (
github.com/uber-go/tally/v4 v4.1.7
github.com/urfave/negroni/v3 v3.0.0
github.com/warrensbox/terraform-switcher v0.1.1-0.20221027055942-201c8e92e997
github.com/xanzy/go-gitlab v0.89.0
github.com/xanzy/go-gitlab v0.90.0
go.etcd.io/bbolt v1.3.7
go.uber.org/zap v1.25.0
golang.org/x/term v0.10.0
golang.org/x/text v0.11.0
golang.org/x/term v0.11.0
golang.org/x/text v0.12.0
gopkg.in/yaml.v2 v2.4.0
)

Expand Down Expand Up @@ -124,7 +124,7 @@ require (
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.30.0 // indirect
Expand Down
Loading

0 comments on commit 9634103

Please sign in to comment.