Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to go 1.22 #1152

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22.0"
- name: Build Instrumentor Image
uses: docker/build-push-action@v5
with:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22.0"
- name: Test common module
working-directory: ./common
run: |
Expand All @@ -95,7 +95,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22.0"
- name: Test procdiscovery module
working-directory: ./procdiscovery
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "~1.21.2"
go-version: "~1.22"
check-latest: true
- name: Set up Helm
uses: azure/setup-helm@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-mod-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22"
- name: run make go-mod-tidy
run: make go-mod-tidy
- name: Check clean repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22"

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-api-crds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22"
- name: install controller-gen
run: make controller-gen
- name: Check API CRDs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-collector-ocb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.22"
- name: Generate collector with ocb
working-directory: ./collector
run: "make genodigoscol"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.21 as builder
FROM --platform=$BUILDPLATFORM golang:1.22 as builder
ARG SERVICE_NAME

# Copyy local modules required by the build
Expand Down
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/keyval-dev/odigos/api

go 1.21
go 1.22

require (
github.com/keyval-dev/odigos/common v0.0.0
Expand Down
4 changes: 1 addition & 3 deletions autoscaler/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/keyval-dev/odigos/autoscaler

go 1.21.0

toolchain go1.22.0
go 1.22.0

require (
github.com/ghodss/yaml v1.0.0
Expand Down
2 changes: 1 addition & 1 deletion cli/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/keyval-dev/odigos/cli

go 1.21
go 1.22

require (
github.com/google/uuid v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion collector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-bullseye AS builder
FROM golang:1.22-bullseye AS builder
COPY . /go/src/
WORKDIR /go/src/
RUN make build-odigoscol
Expand Down
2 changes: 1 addition & 1 deletion common/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/keyval-dev/odigos/common

go 1.21
go 1.22

require (
go.opentelemetry.io/otel/trace v1.24.0
Expand Down
2 changes: 1 addition & 1 deletion destinations/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/keyval-dev/odigos/destinations

go 1.21
go 1.22

require (
github.com/keyval-dev/odigos/common v1.0.48
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY frontend//webapp .
RUN yarn build


FROM golang:1.21 AS backend
FROM golang:1.22 AS backend
WORKDIR /app
COPY . .
COPY --from=builder /webapp/out frontend/webapp/out
Expand Down
2 changes: 1 addition & 1 deletion frontend/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/keyval-dev/odigos/frontend

go 1.21
go 1.22

require (
github.com/gin-contrib/cors v1.4.0
Expand Down
8 changes: 3 additions & 5 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
go 1.21.0

toolchain go1.21.3
go 1.22.0

use (
./api
./autoscaler
./cli
./collector/odigosotelcol
./common
./destinations
./frontend
./instrumentor
./odiglet
./scheduler
./collector/odigosotelcol
./procdiscovery
./scheduler
)
4 changes: 1 addition & 3 deletions instrumentor/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/keyval-dev/odigos/instrumentor

go 1.21.0

toolchain go1.21.5
go 1.22.0

require (
github.com/go-logr/logr v1.4.1
Expand Down
2 changes: 1 addition & 1 deletion odiglet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARG DOTNET_OTEL_VERSION=v0.7.0
ADD https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/download/$DOTNET_OTEL_VERSION/opentelemetry-dotnet-instrumentation-linux-musl.zip .
RUN unzip opentelemetry-dotnet-instrumentation-linux-musl.zip && rm opentelemetry-dotnet-instrumentation-linux-musl.zip

FROM --platform=$BUILDPLATFORM keyval/odiglet-base:v1.3 as builder
FROM --platform=$BUILDPLATFORM keyval/odiglet-base:v1.4 as builder
WORKDIR /go/src/github.com/keyval-dev/odigos
# Copyy local modules required by the build
COPY api/ api/
Expand Down
2 changes: 1 addition & 1 deletion odiglet/base.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.6-bullseye as builder
FROM golang:1.22.2-bullseye as builder

# fury is our registry for linux packages
RUN echo "deb [trusted=yes] https://apt.fury.io/cli/ * *" > /etc/apt/sources.list.d/fury-cli.list
Expand Down
2 changes: 1 addition & 1 deletion odiglet/debug.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARG DOTNET_OTEL_VERSION=v0.7.0
ADD https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/download/$DOTNET_OTEL_VERSION/opentelemetry-dotnet-instrumentation-linux-musl.zip .
RUN unzip opentelemetry-dotnet-instrumentation-linux-musl.zip && rm opentelemetry-dotnet-instrumentation-linux-musl.zip

FROM keyval/odiglet-base:v1.0 as builder
FROM keyval/odiglet-base:v1.4 as builder
WORKDIR /go/src/github.com/keyval-dev/odigos
COPY . .
WORKDIR ./odiglet/
Expand Down
4 changes: 1 addition & 3 deletions odiglet/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/keyval-dev/odigos/odiglet

go 1.21.0

toolchain go1.21.3
go 1.22.0

require (
github.com/fntlnz/mountinfo v1.0.1
Expand Down
4 changes: 1 addition & 3 deletions procdiscovery/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/keyval-dev/odigos/procdiscovery

go 1.21.0

toolchain go1.21.3
go 1.22.0

require github.com/keyval-dev/odigos/common v1.0.48

Expand Down
4 changes: 1 addition & 3 deletions scheduler/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/keyval-dev/odigos/scheduler

go 1.21.0

toolchain go1.22.0
go 1.22.0

require (
github.com/go-logr/zapr v1.3.0
Expand Down
Loading