MM-60387: Bump Go version to 1.22 (#28118)
https://mattermost.atlassian.net/browse/MM-60387 ```release-note updated Go version to 1.22 ``` --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
92793928bc
Коммит
7086a8792a
2
.github/workflows/codeql-analysis.yml
поставляемый
2
.github/workflows/codeql-analysis.yml
поставляемый
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Setup go
|
- name: Setup go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.21'
|
go-version: '1.22'
|
||||||
if: ${{ matrix.language == 'go' }}
|
if: ${{ matrix.language == 'go' }}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
7
.github/workflows/migration.yml
поставляемый
7
.github/workflows/migration.yml
поставляемый
@@ -7,7 +7,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
COMPOSE_PROJECT_NAME: ghactions
|
COMPOSE_PROJECT_NAME: ghactions
|
||||||
BUILD_IMAGE: mattermost/mattermost-build-server:1.21.8
|
|
||||||
TEST_IMAGE: migration-test-image
|
TEST_IMAGE: migration-test-image
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -15,6 +14,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout mattermost project
|
- name: Checkout mattermost project
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
- name: Calculate Golang Version
|
||||||
|
id: go
|
||||||
|
working-directory: ./server
|
||||||
|
run: echo GO_VERSION=$(cat .go-version) >> "${GITHUB_OUTPUT}"
|
||||||
- name: Run docker compose
|
- name: Run docker compose
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
@@ -29,6 +32,8 @@ jobs:
|
|||||||
docker exec ${COMPOSE_PROJECT_NAME}-mysql-1 sh -c "mysql -u root -pmostest -e \"ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'mostest';\""
|
docker exec ${COMPOSE_PROJECT_NAME}-mysql-1 sh -c "mysql -u root -pmostest -e \"ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'mostest';\""
|
||||||
docker restart ${COMPOSE_PROJECT_NAME}-mysql-1 && sleep 10
|
docker restart ${COMPOSE_PROJECT_NAME}-mysql-1 && sleep 10
|
||||||
- name: Build test image
|
- name: Build test image
|
||||||
|
env:
|
||||||
|
BUILD_IMAGE: mattermostdevelopment/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }}
|
||||||
run: |
|
run: |
|
||||||
echo -e "FROM $BUILD_IMAGE\n\nRUN apt update && \
|
echo -e "FROM $BUILD_IMAGE\n\nRUN apt update && \
|
||||||
apt remove -y pgloader && \
|
apt remove -y pgloader && \
|
||||||
|
|||||||
3
.github/workflows/mmctl-test-template.yml
поставляемый
3
.github/workflows/mmctl-test-template.yml
поставляемый
@@ -21,7 +21,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
COMPOSE_PROJECT_NAME: ghactions
|
COMPOSE_PROJECT_NAME: ghactions
|
||||||
BUILD_IMAGE: mattermost/mattermost-build-server:1.21.8
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout mattermost project
|
- name: Checkout mattermost project
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
@@ -50,6 +49,8 @@ jobs:
|
|||||||
docker compose --ansi never exec -T minio sh -c 'mkdir -p /data/mattermost-test';
|
docker compose --ansi never exec -T minio sh -c 'mkdir -p /data/mattermost-test';
|
||||||
docker compose --ansi never ps
|
docker compose --ansi never ps
|
||||||
- name: Run mmctl Tests
|
- name: Run mmctl Tests
|
||||||
|
env:
|
||||||
|
BUILD_IMAGE: mattermostdevelopment/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }}
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.ref_name }} == 'master' ]]; then
|
if [[ ${{ github.ref_name }} == 'master' ]]; then
|
||||||
export TESTFLAGS="-timeout 90m -race"
|
export TESTFLAGS="-timeout 90m -race"
|
||||||
|
|||||||
2
.github/workflows/server-test-template.yml
поставляемый
2
.github/workflows/server-test-template.yml
поставляемый
@@ -42,7 +42,7 @@ jobs:
|
|||||||
docker compose --ansi never ps
|
docker compose --ansi never ps
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
env:
|
env:
|
||||||
BUILD_IMAGE: mattermost/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }}
|
BUILD_IMAGE: mattermostdevelopment/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }}
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.ref_name }} == 'master' ]]; then
|
if [[ ${{ github.ref_name }} == 'master' ]]; then
|
||||||
export RACE_MODE="-race"
|
export RACE_MODE="-race"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.21.8
|
1.22.6
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.21.8-bullseye@sha256:81d98548f08e22a59c5c0be814acc0997f3dfd3313487adcf4e1d3d962af3a43
|
FROM golang:1.22.6-bullseye@sha256:0838740c99e64dde1916553b004bdb1bc321823be83bde3d2a1563882eaab7e6
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y make git apt-transport-https ca-certificates curl software-properties-common build-essential zip xmlsec1 jq pgloader
|
RUN apt-get update && apt-get install -y make git apt-transport-https ca-certificates curl software-properties-common build-essential zip xmlsec1 jq pgloader
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
module github.com/mattermost/mattermost/server/v8
|
module github.com/mattermost/mattermost/server/v8
|
||||||
|
|
||||||
go 1.21.0
|
go 1.22.0
|
||||||
|
|
||||||
toolchain go1.21.8
|
toolchain go1.22.6
|
||||||
|
|
||||||
require (
|
require (
|
||||||
code.sajari.com/docconv/v2 v2.0.0-pre.4
|
code.sajari.com/docconv/v2 v2.0.0-pre.4
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
module github.com/mattermost/mattermost/server/public
|
module github.com/mattermost/mattermost/server/public
|
||||||
|
|
||||||
go 1.21
|
go 1.22
|
||||||
|
|
||||||
toolchain go1.21.8
|
toolchain go1.22.6
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/blang/semver/v4 v4.0.0
|
github.com/blang/semver/v4 v4.0.0
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user