Skip to content

Commit

Permalink
Bump go to 1.21.
Browse files Browse the repository at this point in the history
Update all dependencies.
Update github.com/mattn/go-sqlite3 to v1.14.19 for fixing mattn/go-sqlite3#1164.

Switch to alpine 1.19.
  • Loading branch information
woblerr committed Feb 26, 2024
1 parent 1cbe389 commit d60ff42
Show file tree
Hide file tree
Showing 253 changed files with 75,534 additions and 33,105 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -13,10 +13,10 @@ jobs:
build_platforms: "linux/amd64,linux/arm64"
app_name: "gpbackman"
steps:
- name: Set up go 1.20
- name: Set up go 1.21
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
id: go
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -112,10 +112,10 @@ jobs:
env:
goreleaser_version: "v1.20.0"
steps:
- name: Set up go 1.20
- name: Set up go 1.21
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
id: go

- name: Checkout
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
@@ -1,8 +1,6 @@
ARG REPO_BUILD_TAG="unknown"

# Pin alpine 3.18.
# See https://github.com/mattn/go-sqlite3/issues/1164#issuecomment-1848677118
FROM golang:1.20-alpine3.18 AS builder
FROM golang:1.21-alpine3.19 AS builder
ARG REPO_BUILD_TAG
COPY . /build
WORKDIR /build
Expand All @@ -12,7 +10,7 @@ RUN apk add --no-cache --update build-base \
-ldflags "-X main.version=${REPO_BUILD_TAG}" \
-o gpbackman gpbackman.go

FROM alpine:3.18
FROM alpine:3.19
ARG REPO_BUILD_TAG
ENV TZ="Etc/UTC" \
GPBACKMAN_USER="gpbackman" \
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/conf/Dockerfile.s3_plugin
@@ -1,6 +1,6 @@
ARG S3_PLUGIN_VERSION="1.10.1"

FROM golang:1.20-alpine AS s3_plugin-builder
FROM golang:1.21-alpine3.19 AS s3_plugin-builder
ARG S3_PLUGIN_VERSION
RUN apk add --no-cache --update build-base bash perl \
&& wget https://github.com/greenplum-db/gpbackup-s3-plugin/archive/refs/tags/${S3_PLUGIN_VERSION}.tar.gz -O /tmp/gpbackup-s3-plugin-${S3_PLUGIN_VERSION}.tar.gz \
Expand Down
35 changes: 18 additions & 17 deletions go.mod
@@ -1,13 +1,13 @@
module github.com/woblerr/gpbackman

go 1.20
go 1.21

require (
github.com/greenplum-db/gp-common-go-libs v1.0.12
github.com/greenplum-db/gpbackup v0.0.0-20230711125400-c1132cc78e89
github.com/greenplum-db/gp-common-go-libs v1.0.15
github.com/greenplum-db/gpbackup v0.0.0-20240215213028-2782cd0fbd9b
github.com/jedib0t/go-pretty v4.3.0+incompatible
github.com/nightlyone/lockfile v1.0.0
github.com/spf13/cobra v1.7.0
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
gopkg.in/yaml.v2 v2.4.0
)
Expand All @@ -17,30 +17,31 @@ require (
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/blang/vfs v1.0.0 // indirect
github.com/go-openapi/errors v0.20.3 // indirect
github.com/go-openapi/strfmt v0.21.7 // indirect
github.com/go-openapi/errors v0.21.0 // indirect
github.com/go-openapi/strfmt v0.22.0 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.14.0 // indirect
github.com/jackc/pgconn v1.14.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
github.com/jackc/pgtype v1.14.2 // indirect
github.com/jackc/pgx/v4 v4.18.1 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-sqlite3 v1.14.19 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/onsi/gomega v1.27.2 // indirect
github.com/onsi/gomega v1.27.10 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
go.mongodb.org/mongo-driver v1.11.3 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
go.mongodb.org/mongo-driver v1.14.0 // indirect
golang.org/x/crypto v0.20.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
104 changes: 51 additions & 53 deletions go.sum

Large diffs are not rendered by default.

52 changes: 33 additions & 19 deletions vendor/github.com/go-openapi/errors/.golangci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions vendor/github.com/go-openapi/errors/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions vendor/github.com/go-openapi/errors/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion vendor/github.com/go-openapi/errors/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

92 changes: 47 additions & 45 deletions vendor/github.com/go-openapi/strfmt/.golangci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions vendor/github.com/go-openapi/strfmt/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d60ff42

Please sign in to comment.