Skip to content

Commit

Permalink
Update go to v1.21.4 (#2923)
Browse files Browse the repository at this point in the history
- **Chores**
- Updated Golang version from 1.21.3 to 1.21.4 across multiple
Dockerfiles, improving the Golang environment and tooling.
- Enhanced cache management in CircleCI configuration files for better
system caching behavior.
  • Loading branch information
hdkshingala authored Nov 10, 2023
1 parent 43fe9fa commit 63940ce
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ commands:
- restore_cache:
name: Restore ASDF cache
keys:
- aperture-asdf-cache-v11-{{ checksum "~/month" }}-<<
- aperture-asdf-cache-v12-{{ checksum "~/month" }}-<<
parameters.cache_name >>-{{ checksum ".tool-versions" }}-{{
checksum "go.mod" }}
- aperture-asdf-cache-v11-{{ checksum "~/month" }}-<<
- aperture-asdf-cache-v12-{{ checksum "~/month" }}-<<
parameters.cache_name >>-
- run:
name: Copy tool-versions in HOME dir
Expand All @@ -111,7 +111,7 @@ commands:
- save_cache:
name: Save ASDF cache
key:
aperture-asdf-cache-v11-{{ checksum "~/month" }}-<<
aperture-asdf-cache-v12-{{ checksum "~/month" }}-<<
parameters.cache_name >>-{{ checksum ".tool-versions" }}-{{ checksum
"go.mod" }}
paths:
Expand Down
16 changes: 8 additions & 8 deletions .circleci/continue-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ executors:
- image: cimg/base:2022.07
go-cimg-executor:
docker:
- image: cimg/go:1.21.3
- image: cimg/go:1.21.4
user: root
python-cimg-executor:
docker:
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:
- restore_cache:
name: Restore daily cache
keys:
- aperture-v9-daily-cache-{{ checksum "~/day" }}
- aperture-v10-daily-cache-{{ checksum "~/day" }}
- run: &install_opsninja
name: Install opsninja and its dependencies
command: |
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:
fi
- save_cache:
name: Save daily cache
key: aperture-v9-daily-cache-{{ checksum "~/day" }}
key: aperture-v10-daily-cache-{{ checksum "~/day" }}
paths:
- ../.cache/go-build
- ../.cache/golangci-lint
Expand Down Expand Up @@ -1104,7 +1104,7 @@ jobs:
- restore_cache:
name: Restore go cache
keys:
- aperture-v2-go-cache-upload-policies
- aperture-v3-go-cache-upload-policies
- run:
name: Apply Policy
working_directory: .
Expand All @@ -1113,7 +1113,7 @@ jobs:
--controller << parameters.controller-endpoint >> --api-key ${CONTROLLER_API_KEY} --project-name latest-dev -f -s
- save_cache:
name: Save go cache
key: aperture-v2-go-cache-upload-policies
key: aperture-v3-go-cache-upload-policies
paths:
- ../.cache/go-build
- ./blueprints/vendor
Expand Down Expand Up @@ -1529,10 +1529,10 @@ commands:
- restore_cache:
name: Restore ASDF cache
keys:
- aperture-asdf-cache-v11-{{ checksum "~/month" }}-<<
- aperture-asdf-cache-v12-{{ checksum "~/month" }}-<<
parameters.cache_name >>-{{ checksum ".tool-versions" }}-{{
checksum "tools/go/go.mod" }}
- aperture-asdf-cache-v11-{{ checksum "~/month" }}-<<
- aperture-asdf-cache-v12-{{ checksum "~/month" }}-<<
parameters.cache_name >>-
- run:
name: Copy tool-versions in HOME dir
Expand All @@ -1554,7 +1554,7 @@ commands:
- save_cache:
name: Save ASDF cache
key:
aperture-asdf-cache-v11-{{ checksum "~/month" }}-<<
aperture-asdf-cache-v12-{{ checksum "~/month" }}-<<
parameters.cache_name >>-{{ checksum ".tool-versions" }}-{{ checksum
"tools/go/go.mod" }}
paths:
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pre-commit 3.3.1
bats 1.9.0
python 3.11.4
gcloud 429.0.0
golang 1.21.3
golang 1.21.4
golangci-lint 1.55.0
grpcurl 1.8.7
mockery 2.26.1
Expand Down
6 changes: 3 additions & 3 deletions cmd/aperture-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.21.3-bullseye AS builder
FROM golang:1.21.4-bullseye AS builder

WORKDIR /src
COPY --link . .
Expand All @@ -15,8 +15,8 @@ ARG APERTURECTL_BUILD_FLAGS
ENV APERTURECTL_BUILD_FLAGS=${APERTURECTL_BUILD_FLAGS}

RUN --mount=type=cache,target=/go/pkg/ \
--mount=type=cache,target=/root/.cache/go-build/,id=agent-1.21.3,sharing=private \
--mount=type=cache,target=/root/.aperturectl,id=agent-1.21.3,sharing=private \
--mount=type=cache,target=/root/.cache/go-build/,id=agent-1.21.4,sharing=private \
--mount=type=cache,target=/root/.aperturectl,id=agent-1.21.4,sharing=private \
/bin/bash -c \
'set -eu; \
go mod download; \
Expand Down
6 changes: 3 additions & 3 deletions cmd/aperture-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.21.3-bullseye AS builder
FROM golang:1.21.4-bullseye AS builder

WORKDIR /src
COPY --link . .
Expand All @@ -15,8 +15,8 @@ ARG APERTURECTL_BUILD_FLAGS
ENV APERTURECTL_BUILD_FLAGS=${APERTURECTL_BUILD_FLAGS}

RUN --mount=type=cache,target=/go/pkg/ \
--mount=type=cache,target=/root/.cache/go-build/,id=controller-1.21.3,sharing=private \
--mount=type=cache,target=/root/.aperturectl,id=controller-1.21.3,sharing=private \
--mount=type=cache,target=/root/.cache/go-build/,id=controller-1.21.4,sharing=private \
--mount=type=cache,target=/root/.aperturectl,id=controller-1.21.4,sharing=private \
/bin/bash -c \
'go mod download; \
./scripts/build_aperturectl.sh ./cmd/aperturectl; \
Expand Down
2 changes: 1 addition & 1 deletion operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.21.3-bullseye AS builder
FROM golang:1.21.4-bullseye AS builder

WORKDIR /src
COPY --link . .
Expand Down
2 changes: 1 addition & 1 deletion playground/resources/demo-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.21.3-bullseye AS builder
FROM golang:1.21.4-bullseye AS builder

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion playground/resources/graphql-demo-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.21.3-bullseye AS builder
FROM golang:1.21.4-bullseye AS builder

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion sdks/aperture-go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.21.3 AS builder
FROM golang:1.21.4 AS builder

WORKDIR /src
COPY --link . .
Expand Down

0 comments on commit 63940ce

Please sign in to comment.