Skip to content

Commit

Permalink
Update Go to v1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Aug 18, 2024
1 parent 88a5df9 commit ce1e54d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19
1.22
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM golang:1.19-alpine3.16 AS build-env
FROM golang:1.22-alpine3.20 AS build-env
RUN apk --no-cache add make git

# A workaround for a permission issue of git.
# Since UIDs are different between host and container,
# the .git directory is untrusted by default.
# We need to allow it explicitly.
# https://github.com/actions/checkout/issues/760
RUN git config --global --add safe.directory /work

WORKDIR /work

COPY go.mod go.sum ./
Expand All @@ -8,6 +16,6 @@ RUN go mod download
COPY . .
RUN make build

FROM alpine:3.16
FROM alpine:3.20
RUN apk --no-cache add ca-certificates && update-ca-certificates
COPY --from=build-env /work/bin/myaws /usr/local/bin/myaws
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ brew install minamijoyo/myaws/myaws

or

If you have Go 1.19+ development environment:
If you have Go 1.22+ development environment:

```bash
$ go install github.com/minamijoyo/myaws@latest
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/minamijoyo/myaws

go 1.19
go 1.22

require (
github.com/aws/aws-sdk-go v1.38.39
Expand Down

0 comments on commit ce1e54d

Please sign in to comment.