drop public submodule replace directive (#24045)
* drop public submodule replace directive During development of the public/ submodule, a replace directive remained that was both unnecessary and harmful as discussed in https://community.mattermost.com/private-core/pl/w77sh7igwpfb9ecj5o4jjjbbyo. Remove that, and bump the explicit dependency (even though we use go.work) to v0.0.6 so the import paths match (e.g. `mattermost` vs `mattermost-server`). * make modules-tidy * consistently setup-go-work * fix build-api-spec * fix mmctl test template * fix workflow copy/paste typo
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
949a7875cd
Коммит
6c821c8b13
4
.github/workflows/mmctl-test-template.yml
поставляемый
4
.github/workflows/mmctl-test-template.yml
поставляемый
@@ -30,6 +30,10 @@ jobs:
|
|||||||
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.go-version }}
|
go-version: ${{ env.go-version }}
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: |
|
||||||
|
cd server
|
||||||
|
make setup-go-work
|
||||||
- name: Run docker compose
|
- name: Run docker compose
|
||||||
run: |
|
run: |
|
||||||
cd server/build
|
cd server/build
|
||||||
|
|||||||
29
.github/workflows/server-ci-template.yml
поставляемый
29
.github/workflows/server-ci-template.yml
поставляемый
@@ -47,6 +47,8 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Run go mod tidy
|
- name: Run go mod tidy
|
||||||
run: make modules-tidy
|
run: make modules-tidy
|
||||||
- name: Check modules
|
- name: Check modules
|
||||||
@@ -67,7 +69,7 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
- name: Setup go.work
|
- name: Run setup-go-work
|
||||||
run: make setup-go-work
|
run: make setup-go-work
|
||||||
- name: Run golangci
|
- name: Run golangci
|
||||||
run: make golangci-lint
|
run: make golangci-lint
|
||||||
@@ -87,6 +89,8 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Run make-gen-serialized
|
- name: Run make-gen-serialized
|
||||||
run: make gen-serialized
|
run: make gen-serialized
|
||||||
- name: Check serialized
|
- name: Check serialized
|
||||||
@@ -107,10 +111,10 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
- name: Reset config
|
|
||||||
run: make config-reset
|
|
||||||
- name: Run setup-go-work
|
- name: Run setup-go-work
|
||||||
run: make setup-go-work
|
run: make setup-go-work
|
||||||
|
- name: Reset config
|
||||||
|
run: make config-reset
|
||||||
- name: Run plugin-checker
|
- name: Run plugin-checker
|
||||||
run: make plugin-checker
|
run: make plugin-checker
|
||||||
- name: Run mattermost-vet
|
- name: Run mattermost-vet
|
||||||
@@ -131,6 +135,9 @@ jobs:
|
|||||||
build-api-spec:
|
build-api-spec:
|
||||||
name: Build API specification
|
name: Build API specification
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: server
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout mattermost project
|
- name: Checkout mattermost project
|
||||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||||
@@ -141,9 +148,11 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Checkout mattermost-api-reference
|
- name: Checkout mattermost-api-reference
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ../..
|
||||||
git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-api-reference.git
|
git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-api-reference.git
|
||||||
cd mattermost-api-reference
|
cd mattermost-api-reference
|
||||||
echo "Trying to checkout the same branch on mattermost-api-reference as mattermost"
|
echo "Trying to checkout the same branch on mattermost-api-reference as mattermost"
|
||||||
@@ -181,6 +190,8 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Generate store layers
|
- name: Generate store layers
|
||||||
run: make store-layers
|
run: make store-layers
|
||||||
- name: Check generated code
|
- name: Check generated code
|
||||||
@@ -201,6 +212,8 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Generate app layers
|
- name: Generate app layers
|
||||||
run: make app-layers
|
run: make app-layers
|
||||||
- name: Check generated code
|
- name: Check generated code
|
||||||
@@ -208,6 +221,9 @@ jobs:
|
|||||||
check-mmctl-docs:
|
check-mmctl-docs:
|
||||||
name: Check mmctl docs
|
name: Check mmctl docs
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: server
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout mattermost-server
|
- name: Checkout mattermost-server
|
||||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||||
@@ -218,10 +234,11 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Check docs
|
- name: Check docs
|
||||||
run: |
|
run: |
|
||||||
echo "Making sure docs are updated"
|
echo "Making sure docs are updated"
|
||||||
cd server
|
|
||||||
make mmctl-docs
|
make mmctl-docs
|
||||||
if [[ -n $(git status --porcelain) ]]; then echo "Please update the mmctl docs using make mmctl-docs"; exit 1; fi
|
if [[ -n $(git status --porcelain) ]]; then echo "Please update the mmctl docs using make mmctl-docs"; exit 1; fi
|
||||||
test-postgres-binary:
|
test-postgres-binary:
|
||||||
@@ -281,6 +298,8 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
server/go.sum
|
server/go.sum
|
||||||
server/public/go.sum
|
server/public/go.sum
|
||||||
|
- name: Run setup-go-work
|
||||||
|
run: make setup-go-work
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make config-reset
|
make config-reset
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ require (
|
|||||||
github.com/mattermost/gziphandler v0.0.1
|
github.com/mattermost/gziphandler v0.0.1
|
||||||
github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d
|
github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d
|
||||||
github.com/mattermost/logr/v2 v2.0.16
|
github.com/mattermost/logr/v2 v2.0.16
|
||||||
github.com/mattermost/mattermost/server/public v0.0.4
|
github.com/mattermost/mattermost/server/public v0.0.6
|
||||||
github.com/mattermost/morph v1.0.5-0.20230511171014-e76e25978d56
|
github.com/mattermost/morph v1.0.5-0.20230511171014-e76e25978d56
|
||||||
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0
|
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0
|
||||||
github.com/mattermost/squirrel v0.2.0
|
github.com/mattermost/squirrel v0.2.0
|
||||||
@@ -246,5 +246,3 @@ exclude (
|
|||||||
github.com/dyatlov/go-opengraph v0.0.0-20210112100619-dae8665a5b09
|
github.com/dyatlov/go-opengraph v0.0.0-20210112100619-dae8665a5b09
|
||||||
github.com/willf/bitset v1.2.0
|
github.com/willf/bitset v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/mattermost/mattermost/server/public => ./public
|
|
||||||
|
|||||||
@@ -509,6 +509,8 @@ github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d h1:/RJ/UV7M5c7L2TQ
|
|||||||
github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d/go.mod h1:HLbgMEI5K131jpxGazJ97AxfPDt31osq36YS1oxFQPQ=
|
github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d/go.mod h1:HLbgMEI5K131jpxGazJ97AxfPDt31osq36YS1oxFQPQ=
|
||||||
github.com/mattermost/logr/v2 v2.0.16 h1:jnePX4cPskC3WDFvUardh/xZfxNdsFXbEERJQ1kUEDE=
|
github.com/mattermost/logr/v2 v2.0.16 h1:jnePX4cPskC3WDFvUardh/xZfxNdsFXbEERJQ1kUEDE=
|
||||||
github.com/mattermost/logr/v2 v2.0.16/go.mod h1:1dm/YhTpozsqANXxo5Pi5zYLBsal2xY0pX+JZNbzYJY=
|
github.com/mattermost/logr/v2 v2.0.16/go.mod h1:1dm/YhTpozsqANXxo5Pi5zYLBsal2xY0pX+JZNbzYJY=
|
||||||
|
github.com/mattermost/mattermost/server/public v0.0.6 h1:FUaJ+P36E3Tt12Umdm8p1h7sZNUeObDk3p3aFTaBkCo=
|
||||||
|
github.com/mattermost/mattermost/server/public v0.0.6/go.mod h1:Y7Ht1haGGrsuYzX73HhpSe2VnbGLuZj2/tsQslHd2/M=
|
||||||
github.com/mattermost/morph v1.0.5-0.20230511171014-e76e25978d56 h1:SjFYbWvmuf73d/KaYlnHosPpB3/k38ebr1WWw9X5XKc=
|
github.com/mattermost/morph v1.0.5-0.20230511171014-e76e25978d56 h1:SjFYbWvmuf73d/KaYlnHosPpB3/k38ebr1WWw9X5XKc=
|
||||||
github.com/mattermost/morph v1.0.5-0.20230511171014-e76e25978d56/go.mod h1:gD+EaqX2UMyyuzmF4PFh4r33XneQ8Nzi+0E8nXjMa3A=
|
github.com/mattermost/morph v1.0.5-0.20230511171014-e76e25978d56/go.mod h1:gD+EaqX2UMyyuzmF4PFh4r33XneQ8Nzi+0E8nXjMa3A=
|
||||||
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0 h1:G9tL6JXRBMzjuD1kkBtcnd42kUiT6QDwxfFYu7adM6o=
|
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0 h1:G9tL6JXRBMzjuD1kkBtcnd42kUiT6QDwxfFYu7adM6o=
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user