Skip to content

Commit

Permalink
upgrade to Go 1.24
Browse files Browse the repository at this point in the history
Upgrades Go to 1.24 for connectors that are written in Go.
  • Loading branch information
williamhbaker committed Feb 19, 2025
1 parent 516aca4 commit 29b237e
Show file tree
Hide file tree
Showing 54 changed files with 56 additions and 58 deletions.
8 changes: 3 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/estuary/connectors

go 1.22.4

toolchain go1.22.5
go 1.24.0

require (
cloud.google.com/go v0.115.0
Expand Down Expand Up @@ -56,6 +54,7 @@ require (
github.com/mitchellh/mapstructure v1.5.0
github.com/pinecone-io/go-pinecone v1.1.1
github.com/pkg/sftp v1.13.6
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
github.com/segmentio/encoding v0.4.0
github.com/senseyeio/duration v0.0.0-20180430131211-7c2a214ada46
github.com/sijms/go-ora/v2 v2.8.19
Expand All @@ -79,6 +78,7 @@ require (
google.golang.org/genproto v0.0.0-20240610135401-a8a62080eff3
google.golang.org/grpc v1.65.0
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
vitess.io/vitess v0.15.3
)

Expand Down Expand Up @@ -199,7 +199,6 @@ require (
github.com/pingcap/errors v0.11.5-0.20240311024730-e056997136bb // indirect
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.19.1 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.54.0 // indirect
Expand Down Expand Up @@ -249,7 +248,6 @@ require (
gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect
gopkg.in/jcmturner/gokrb5.v6 v6.1.1 // indirect
gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gotest.tools/gotestsum v1.8.2 // indirect
k8s.io/apimachinery v0.23.17 // indirect
nhooyr.io/websocket v1.8.7 // indirect
Expand Down
2 changes: 1 addition & 1 deletion materialize-azure-fabric-warehouse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-bigquery/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-databricks/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-dynamodb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-firebolt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-gcs-csv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-gcs-parquet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-google-pubsub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-google-sheets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

RUN apt-get update \
&& apt-get install -y curl ca-certificates pkg-config cmake g++ libssl-dev libsasl2-dev \
Expand Down
2 changes: 1 addition & 1 deletion materialize-mongodb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-motherduck/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-mysql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-pinecone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-redshift/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-s3-csv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-s3-iceberg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN poetry install

# Go build stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as gobuilder
FROM --platform=linux/amd64 golang:1.24-bullseye as gobuilder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-s3-parquet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-slack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-snowflake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-sqlite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-sqlserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-starburst/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM --platform=linux/amd64 golang:1.22-bullseye as builder
FROM --platform=linux/amd64 golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion materialize-webhook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-alpaca/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-azure-blob-storage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-bigquery-batch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-dropbox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-dynamodb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-firestore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-gcs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-google-drive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-google-pubsub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-hello-world/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-http-file/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
2 changes: 1 addition & 1 deletion source-http-ingest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

RUN apt-get update \
&& apt-get install -y curl ca-certificates pkg-config cmake g++ protobuf-compiler \
Expand Down
2 changes: 1 addition & 1 deletion source-kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

RUN apt-get update \
&& apt-get install -y curl ca-certificates pkg-config cmake g++ libssl-dev libsasl2-dev \
Expand Down
2 changes: 1 addition & 1 deletion source-kinesis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/estuary/base-image:v1

# Build Stage
################################################################################
FROM golang:1.22-bullseye as builder
FROM golang:1.24-bullseye as builder

WORKDIR /builder

Expand Down
Loading

0 comments on commit 29b237e

Please sign in to comment.