From da4bf0d7838696eefb32b11db1efa778f64d1d38 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Thu, 4 Jul 2024 18:58:42 +0300 Subject: [PATCH] Sync (and update) go version go.mod had a later version than the one used inside the role, which caused the deb packaging to fail. Updated all of them to latest. --- data/ansible/roles/go/defaults/main.yaml | 4 ++-- data/docker/integration/Dockerfile | 2 +- docs/installation.rst | 4 ++-- go.mod | 2 +- packages/copr.fedorainfracloud.org/cgrates.spec | 2 +- packages/redhat_fedora/cgrates.spec | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/ansible/roles/go/defaults/main.yaml b/data/ansible/roles/go/defaults/main.yaml index 682a4bd32..39428773e 100644 --- a/data/ansible/roles/go/defaults/main.yaml +++ b/data/ansible/roles/go/defaults/main.yaml @@ -1,8 +1,8 @@ --- -go_version: 1.22.3 +go_version: 1.22.5 go_platform: linux go_arch: amd64 go_tarball: go{{ go_version }}.{{ go_platform }}-{{ go_arch }}.tar.gz go_download_url: https://dl.google.com/go/{{ go_tarball }} -go_checksum: 8920ea521bad8f6b7bc377b4824982e011c19af27df88a815e3586ea895f1b36 +go_checksum: 904b924d435eaea086515bc63235b192ea441bd8c9b198c507e85009e6e4c7f0 install_go: true diff --git a/data/docker/integration/Dockerfile b/data/docker/integration/Dockerfile index ecb2a3c41..a4fb34057 100644 --- a/data/docker/integration/Dockerfile +++ b/data/docker/integration/Dockerfile @@ -74,7 +74,7 @@ RUN apt-get clean && \ RUN touch /logs/mariadb.log /logs/mariadb_script.log /logs/rabbitmq.log RUN chmod 777 /logs/mariadb.log /logs/mariadb_script.log /logs/rabbitmq.log -RUN wget -O go.tgz "https://storage.googleapis.com/golang/go1.22.3.linux-amd64.tar.gz" --progress=dot:giga +RUN wget -O go.tgz "https://storage.googleapis.com/golang/go1.22.5.linux-amd64.tar.gz" --progress=dot:giga RUN tar -C /usr/local -xzf go.tgz RUN rm go.tgz diff --git a/docs/installation.rst b/docs/installation.rst index 891a2d3fa..f99388639 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -145,8 +145,8 @@ To install the latest Go version at the time of writing this documentation, run: # sudo dnf install -y wget tar for .rpm distros sudo rm -rf /usr/local/go cd /tmp - wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz - sudo tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz + wget https://go.dev/dl/go1.22.5.linux-amd64.tar.gz + sudo tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin Installation: diff --git a/go.mod b/go.mod index 363a6f1cc..0401b4a86 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cgrates/cgrates -go 1.22.4 +go 1.22.5 // replace github.com/cgrates/radigo => ../radigo diff --git a/packages/copr.fedorainfracloud.org/cgrates.spec b/packages/copr.fedorainfracloud.org/cgrates.spec index 00e221c9a..97ecd463f 100644 --- a/packages/copr.fedorainfracloud.org/cgrates.spec +++ b/packages/copr.fedorainfracloud.org/cgrates.spec @@ -1,6 +1,6 @@ # Define global variables %global version 0.11.0~dev -%global go_version 1.22.3 +%global go_version 1.22.5 # Define system paths %define debug_package %{nil} diff --git a/packages/redhat_fedora/cgrates.spec b/packages/redhat_fedora/cgrates.spec index c85de8a70..fd2d6fda3 100644 --- a/packages/redhat_fedora/cgrates.spec +++ b/packages/redhat_fedora/cgrates.spec @@ -1,6 +1,6 @@ # Define global variables %global version 0.11.0~dev -%global go_version 1.22.3 +%global go_version 1.22.5 %global git_commit %(echo $gitLastCommit) %global releaseTag %(echo $rpmTag)