Skip to content

Commit

Permalink
chore(deps): bump golang from 1.18.4 to 1.19.2 (#745)
Browse files Browse the repository at this point in the history
Not updating the "go 1.18" in go.mod files until upstream does this.
This is to make it possible to build other distributions with Go 1.18
that include Sumo components.
For example, a customer of Sumo might want to build their own distro
but they want to use Go 1.18.
  • Loading branch information
dependabot[bot] authored Oct 19, 2022
1 parent 071e5be commit b9af532
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This release introduces the following breaking changes:
- fix(sumologicexporter): do not crash if server returns unknown length response [#718]
- fix(k8sprocessor): fix metadata enrichment [#724]
- fix(k8sprocessor): keep pod's services information up to date [#710]
- chore(deps): bump golang from 1.18.4 to 1.19.2 [#745]
- chore(deps): bump go-boringcrypto to 1.18.7b7 [#746]
- chore: upgrade OpenTelemetry Contrib Core to v0.62.0 [#769]

Expand All @@ -43,6 +44,7 @@ This release introduces the following breaking changes:
[#713]: https://github.com/SumoLogic/sumologic-otel-collector/pull/713
[#718]: https://github.com/SumoLogic/sumologic-otel-collector/pull/718
[#724]: https://github.com/SumoLogic/sumologic-otel-collector/pull/724
[#745]: https://github.com/SumoLogic/sumologic-otel-collector/pull/745
[#746]: https://github.com/SumoLogic/sumologic-otel-collector/pull/746
[#769]: https://github.com/SumoLogic/sumologic-otel-collector/pull/769
[#693]: https://github.com/SumoLogic/sumologic-otel-collector/pull/693
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_dev
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt update && apt install -y systemd
# h stands for dereference of symbolic links
RUN tar czhf journalctl.tar.gz /bin/journalctl $(ldd /bin/journalctl | grep -oP "\/.*? ")

FROM golang:1.18.4
FROM golang:1.19.2
ARG BUILD_TAG=latest
ENV TAG $BUILD_TAG
ARG USER_UID=10001
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.4-alpine as builder
FROM golang:1.19.2-alpine as builder
ADD . /src
WORKDIR /src/otelcolbuilder/
ENV CGO_ENABLED=0
Expand Down
5 changes: 2 additions & 3 deletions pkg/scripts_test/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sumologic_scripts_tests

import (
"io/ioutil"
"os"

"gopkg.in/yaml.v2"
Expand All @@ -24,7 +23,7 @@ type sumologicExtension struct {
func getConfig(path string) (config, error) {
var conf config

yamlFile, err := ioutil.ReadFile(path)
yamlFile, err := os.ReadFile(path)
if err != nil {
return config{}, err
}
Expand All @@ -43,7 +42,7 @@ func saveConfig(path string, conf config) error {
return err
}

err = ioutil.WriteFile(path, out, os.ModePerm)
err = os.WriteFile(path, out, os.ModePerm)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/timestamp_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.18
// +build go1.18
//go:build go1.19
// +build go1.19

package sumologic_tests

Expand Down

0 comments on commit b9af532

Please sign in to comment.