1
0
mirror of https://github.com/SmartHoneybee/ubiquitous-memory synced 2025-10-24 07:13:46 +02:00

Compare commits

...

87 Commits

Author SHA1 Message Date
parnic-sks
79bcde5f55 Update to v7.5.2 (#160) 2022-12-21 12:22:10 -06:00
parnic-sks
a0c00708b5 Update Mattermost to v7.4.0 (#158) 2022-10-14 09:31:38 -05:00
parnic-sks
598db95863 Update to Mattermost v7.3.0 (#157)
* Update to Mattermost v7.3.0

* Install Node via NVM instead of the apt repo

The NVM setup script didn't work if the script was running with /bin/sh, so this makes it run under Bash instead.

The Node version that the webapp is using is now the one we install for use with the webapp build process.
2022-09-15 11:44:34 -05:00
parnic-sks
bdacb84580 Update to Mattermost v7.2.0 (#156) 2022-08-15 10:13:11 -05:00
parnic-sks
b7c03a36af Update to v7.1.2 (#155)
* Update to v7.1.2

* Try Node 16 again

Last time we tried to use this, we ran into all sorts of errors due to node-sass, which is used by the mattermost frontend.

I'm changing this because our build logs show NPM throwing a fit about not supporting Node 15, which we've been using. And the last several PR builds have errored out in NPM in weird ways that the internet keeps suggesting "just update NPM" to fix, so here we are.

ref: commit 69dda8131e
2022-07-21 09:24:13 -05:00
parnic-sks
22102fdefc Update Mattermost to v7.0.1, mmctl to v7.0.0 (#154) 2022-06-24 09:04:08 -05:00
parnic-sks
acc0ef08cd Update to v7.0.0 (#153) 2022-06-14 10:04:57 -05:00
dependabot[bot]
860b28b652 Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#152)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.7.0 to 6.7.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.7.0...v6.7.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 21:59:01 -05:00
parnic-sks
1b49e25db7 Update default Go version (#151)
Mattermost v6.7.0 official release is built with Go 1.18.1. We should stay with them as much as possible.
2022-05-16 13:25:28 -05:00
dependabot[bot]
542f871d30 Bump github.com/mattermost/mattermost-server/v6 from 6.6.1 to 6.7.0 in /dependabot (#150)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.6.1 to 6.7.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.6.1...v6.7.0)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 08:08:12 +02:00
dependabot[bot]
b4bf8fc00e Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#149)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.6.0 to 6.6.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.6.0...v6.6.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 08:51:50 -05:00
dependabot[bot]
404ed7f60c Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#148)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.5.0...v6.6.0)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-14 08:34:04 -05:00
dependabot[bot]
890eb1c602 Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#147)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.4.2 to 6.5.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.4.2...v6.5.0)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-16 07:27:27 -05:00
dependabot[bot]
476501913c Bump github.com/mattermost/mattermost-server/v6 from 6.4.1 to 6.4.2 in /dependabot (#146)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.4.1...v6.4.2)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-11 08:08:15 +01:00
dependabot[bot]
d5c44dd9a8 Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#145)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.4.0...v6.4.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 10:01:29 -06:00
dependabot[bot]
a624e66742 Bump github.com/mattermost/mattermost-server/v6 from 6.3.3 to 6.4.0 in /dependabot (#144)
* Bump github.com/mattermost/mattermost-server/v6 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.3.3 to 6.4.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.3.3...v6.4.0)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Force mmctl version

Mattermost has not tagged a v6.4.0 mmctl release, and mmctl continues to cause issues with trying to get releases done, so I'm just going to force the version for now.

* Fix typo

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2022-02-24 11:13:40 +01:00
dependabot[bot]
5d1eec08f2 Bump github.com/mattermost/mattermost-server/v6 from 6.3.2 to 6.3.3 in /dependabot (#143)
* Bump github.com/mattermost/mattermost-server/v6 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.3.2 to 6.3.3.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.3.2...v6.3.3)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Use the mattermost-server version for mmctl

Since mmctl isn't versioned in a gomodules-friendly way, we either need to manually maintain the version in the release script or just assume/hope that they continue to create releases matching the mattermost-server version. So far that has always been the case, so we can ignore the go.mod version string.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2022-02-04 09:11:55 -06:00
parnic-sks
b4bfed6058 Update Mattermost to v6.3.2 (#142)
This also removes the mmctl entry since it's not versioned correctly for modules.
2022-01-31 09:13:37 -06:00
parnic-sks
155ef473dd Update Mattermost to v6.3.1 (#141)
This also fixes the version of mmctl we're packaging from v5.26.0 to the appropriate matching version (v6.3.0 now).
2022-01-21 10:09:51 -06:00
dependabot[bot]
69dda8131e Bump github.com/mattermost/mattermost-server/v6 from 6.2.1 to 6.3.0 in /dependabot (#140)
* Bump github.com/mattermost/mattermost-server/v6 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.2.1 to 6.3.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.2.1...v6.3.0)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add python2 dependency

Apparently something in 6.3.0 is using python2 for the first time?

* Use node v15 by default

We are now getting this error when building:

    /build/.node-gyp/16.13.2/include/node/v8-internal.h:492:38: error: 'remove_cv_t' is not a member of 'std'

which the internet suggests is a problem with node 16 and node-sass. According to https://stackoverflow.com/questions/67241196/error-no-template-named-remove-cv-t-in-namespace-std-did-you-mean-remove , supposedly newer versions of node-sass support node 16, and the other solution is to pass -std=c++14 instead of c++0x (which is what is being done right now), but I can't say for sure whether this build script will work with CXXFLAGS or not. The other fix would seem to be to update node-sass to a version that supports node16, but that would presumably be more patching of files, this time in mattermost-webapp, so I'm trying the least-invasive option first.

* Update release.mk patch

* Update how we retrieve the Mattermost version

With mmctl in the require list in the go.mod, mattermost-server no longer appears on the same line as the require statement, so splitting by spaces means we now need the second split entry instead of the third.

We could also fix this by removing mmctl from the go.mod, which I was going to do, but that means every Dependabot update would no longer work. So going forward we will need to ensure that the go.mod always has the mattermost-server require on its own line instead of inline with the require statement.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2022-01-14 19:14:25 -06:00
Pierre de La Morinerie
a02a6b4386 Update Mattermost and mmctl to 6.2.1 (#139) 2021-12-20 13:00:20 +01:00
Pierre de La Morinerie
3aec2b6302 Update Mattermost and mmctl to 6.1.0 (#137) 2021-11-29 07:54:04 +01:00
Pierre de La Morinerie
cef04b0488 Build and package mmctl (#136) 2021-11-08 18:50:47 +01:00
parnic-sks
f3aa038f93 Update to v6.0.2 (#135) 2021-10-29 08:17:39 +02:00
dependabot[bot]
ce52eca004 Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#134)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v6.0.0...v6.0.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 21:39:42 -05:00
parnic-sks
06ac371c53 Update for Mattermost v6 (#133)
* Update for Mattermost v6

* Update release.mk patch

The Mattermost build script has changed to accomplish most of what we
were trying to patch it to support. The config generator is still a
point of contention, and I'm having trouble getting it to work even with
this patch, but wanted to toss it to the build machine to see if it
works there. We may need to dig into the config generator deeper if it
doesn't.

There are additional build script changes after 6.0 that have, for
example, linux-arm64 support already baked in, so we will eventually
need to make larger changes to which platforms we build at all.
2021-10-12 10:44:48 -05:00
parnic-sks
a55b21d6e7 Update Mattermost to v5.39 (#132) 2021-09-16 12:26:42 -05:00
dependabot[bot]
ca9c6e47c5 Bump github.com/mattermost/mattermost-server/v5 from 5.38.1 to 5.38.2 in /dependabot (#131)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.38.1 to 5.38.2.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.38.1...v5.38.2)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove errant requires

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-08-26 21:55:32 -05:00
parnic-sks
89f37ddd12 Update to Go 1.16.7 per MM 5.38.2 release notes (#130) 2021-08-26 16:13:47 -05:00
dependabot[bot]
a5c6a921e2 Bump github.com/mattermost/mattermost-server/v5 from 5.38.0 to 5.38.1 in /dependabot (#129)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 13:19:28 +02:00
Pierre de La Morinerie
02f1846b2b Upgrade to 5.38.0 (#128) 2021-08-17 23:09:46 +02:00
parnic-sks
362f5cf97f Update Golang version per Mattermost 5.38.0 release notes (#127)
* Update Golang version per Mattermost 5.38.0 release notes

* Update version formatting to match download filename
2021-08-16 23:56:56 +02:00
Pierre de La Morinerie
4b09124333 Upgrade to 5.37.1 (#126) 2021-08-08 09:08:19 +02:00
Pierre de La Morinerie
7332922733 Upgrade to Mattermost 5.37.0 (#125) 2021-07-15 23:08:18 +02:00
dependabot[bot]
605dd4992e Bump github.com/mattermost/mattermost-server/v5 from 5.36.0 to 5.36.1 in /dependabot (#124)
Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.36.0 to 5.36.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.36.0...v5.36.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 08:20:30 +02:00
Pierre de La Morinerie
f58b2018c4 Fix build (#123)
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-06-23 07:42:40 +02:00
dependabot[bot]
f1204f044c Bump github.com/mattermost/mattermost-server/v5 from 5.35.2 to 5.36.0 in /dependabot (#121)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.35.2 to 5.36.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.35.2...v5.36.0)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix dependabot auto-updates and update to 5.36.0 correctly

* Move config-reset to its own step

config-reset now (as of 5.36.0) is generated through a `go run` command.
If we pass the usual GOOS/GOARCH combo to this command, it will build
and then try to run an executable that's in a format different from the
host system, which can't succeed. This `go run`s config-reset as a
binary compatible with the host machine, then runs the full build with
the appropriate os/arch combo. All config-reset does is generate a new
config.json for the install anyway.

This make step was refactored in 3681cd3688

* More tweaks to handle new config stuff

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-06-16 08:35:08 -05:00
Pierre de La Morinerie
43a100f30c ci: convert github actions matrix to a simple list (#122)
[skip ci]
2021-06-15 22:32:50 +02:00
parnic-sks
65f66300ea Update to Mattermost v5.35.3 (#116) 2021-06-15 08:14:19 +02:00
parnic-sks
896ca40562 Convert from Travis CI to Github actions (#120) 2021-06-15 07:53:34 +02:00
Pierre de La Morinerie
a3ed63c840 Update to Mattermost 5.35.2 (#115) 2021-06-06 15:17:51 +00:00
Pierre de La Morinerie
c3bf7a5e6e Update to Mattermost 5.35.1 (#113) 2021-05-30 09:17:38 +00:00
dependabot[bot]
8bfcbc152c Bump github.com/mattermost/mattermost-server/v5 from 5.34.1 to 5.34.2 in /dependabot (#110)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.34.1 to 5.34.2.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.34.1...v5.34.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing dependabot again

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-04-19 17:23:54 -05:00
parnic-sks
ea209b1cb4 Update to Mattermost 5.34.1 (#109) 2021-04-15 15:08:38 -05:00
parnic-sks
a4963df160 Update to Mattermost 5.34.0 (#108) 2021-04-15 09:00:04 -05:00
parnic-sks
2c62ab2b0e Update to Mattermost 5.33.3 (#107) 2021-03-31 14:49:36 -05:00
parnic-sks
85cb4319c0 Update to 5.33.2, re-enable configurations (#106) 2021-03-25 12:52:32 -05:00
dependabot-preview[bot]
da7d3b0da6 Create Dependabot config file (#105) 2021-03-23 19:48:28 -05:00
dependabot-preview[bot]
d9d94c2ee9 Bump github.com/mattermost/mattermost-server/v5 from 5.32.1 to 5.33.0 in /dependabot (#104)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.32.1 to 5.33.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.32.1...v5.33.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-03-23 12:20:56 -05:00
parnic-sks
8e4b90726c Update to Mattermost 5.32.1 (#103) 2021-02-17 15:48:41 -06:00
dependabot-preview[bot]
0fc1ecee72 Bump github.com/mattermost/mattermost-server/v5 from 5.31.1 to 5.32.0 in /dependabot (#102)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.31.1 to 5.32.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.31.1...v5.32.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix up dependabot's go.mod

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-02-17 10:58:43 -06:00
parnic-sks
4f364878e5 Update to Mattermost 5.31.1 (#101) 2021-02-06 16:03:38 -06:00
parnic-sks
a84d8e49ab Update to Mattermost 5.31.0 (#100) 2021-01-15 09:46:49 -06:00
parnic-sks
81b4106fc7 Mattermost 5.30.1 release (#98)
* Mattermost 5.30.0 release

* Update to 5.30.1 due to Mattermost release bug
2020-12-21 09:07:32 -06:00
dependabot-preview[bot]
f92e152276 Bump github.com/mattermost/mattermost-server/v5 from 5.29.0 to 5.29.1 in /dependabot (#97)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.29.0 to 5.29.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.29.0...v5.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix dependabot go.mod

* Update build-release.patch for mmctl changes

* Remove additional mmctl script reference

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2020-12-06 10:52:33 -06:00
dependabot-preview[bot]
df047ff1c3 Bump github.com/mattermost/mattermost-server/v5 from 5.28.1 to 5.29.0 in /dependabot (#95)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.28.1 to 5.29.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.28.1...v5.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2020-11-21 14:30:01 +00:00
parnic-sks
34f7ec2895 Update to Mattermost 5.28.1 (#94)
* Update to Mattermost 5.28.1

* Update release.mk patch for 5.28

* Repair to original patch text

* Run patch in batch mode

* Try to fix patch file

I'm having a hard time understanding why this is not working on CI.

* Working 5.28.1 release.mk patch

I was previously working off mattermost-server HEAD's copy of release.mk which has apparently changed since 5.28.1, so future PRs will need to make more changes to this patch. But for now, this should allow the patch to be applied.
2020-10-23 15:34:25 +00:00
dependabot-preview[bot]
04f32e9214 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#93) 2020-09-15 04:01:06 +00:00
dependabot-preview[bot]
e4b062a7f4 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#92) 2020-09-04 04:14:16 +00:00
dependabot-preview[bot]
fae0f5b8b6 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#91) 2020-08-28 23:10:00 +00:00
dependabot-preview[bot]
608535bba2 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#90) 2020-08-13 04:01:47 +00:00
dependabot-preview[bot]
1ff3276ef1 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#89) 2020-08-05 17:30:27 +00:00
dependabot-preview[bot]
9b99cea31b Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#88) 2020-07-25 08:59:59 +00:00
dependabot-preview[bot]
0f99d5847c Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#87) 2020-07-16 04:05:07 +00:00
dependabot-preview[bot]
f16cacf3ea Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#86) 2020-07-02 19:43:30 +00:00
dependabot-preview[bot]
6ef90eb436 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#85) 2020-06-22 03:55:32 +00:00
dependabot-preview[bot]
06a96e5cdf Bump github.com/mattermost/mattermost-server/v5 from 5.23.0 to 5.23.1 in /dependabot (#83)
Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.23.0 to 5.23.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.23.0...v5.23.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-11 15:27:57 +00:00
dependabot-preview[bot]
f3192dba71 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#82) 2020-05-15 04:04:51 +00:00
dependabot-preview[bot]
ca10b305e4 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#81) 2020-05-12 04:01:23 +00:00
dependabot-preview[bot]
475839128e Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#80) 2020-05-06 21:53:39 +00:00
dependabot-preview[bot]
ec8de37859 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#79) 2020-04-23 21:32:17 +00:00
dependabot-preview[bot]
5e267c639f Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#78) 2020-04-16 16:52:18 +00:00
dependabot-preview[bot]
3afd62ebaa Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#77) 2020-03-16 03:46:40 +00:00
dependabot-preview[bot]
4449fd0723 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#76) 2020-03-13 03:35:28 +00:00
dependabot-preview[bot]
6f1748b909 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#75) 2020-02-17 03:47:07 +00:00
dependabot-preview[bot]
5e14b05358 Bump github.com/mattermost/mattermost-server/v5 from 5.19.1 to 5.20.0 in /dependabot (#74)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.19.1 to 5.20.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.19.1...v5.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-15 16:19:48 +00:00
dependabot-preview[bot]
c696751a66 Bump github.com/mattermost/mattermost-server/v5 from 5.19.0 to 5.19.1 in /dependabot (#72)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.19.0 to 5.19.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.19.0...v5.19.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-31 20:35:52 +00:00
kartoffelsalat
9b16070789 version 5.19.1 (#71) 2020-01-23 20:00:24 +00:00
dependabot-preview[bot]
ab54cd5f53 Bump github.com/mattermost/mattermost-server in /dependabot (#70) 2020-01-08 21:44:47 +00:00
dependabot-preview[bot]
0e12504498 Bump github.com/mattermost/mattermost-server from 5.17.1 to 5.17.2 in /dependabot (#69)
Bump github.com/mattermost/mattermost-server in /dependabot

Bumps [github.com/mattermost/mattermost-server](https://github.com/mattermost/mattermost-server) from 5.17.1 to 5.17.2.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.17.1...v5.17.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-19 14:39:56 +00:00
dependabot-preview[bot]
4e3ab42325 Bump github.com/mattermost/mattermost-server in /dependabot (#68) 2019-11-26 22:34:55 +00:00
dependabot-preview[bot]
44df1cad21 Bump github.com/mattermost/mattermost-server in /dependabot (#67) 2019-11-17 16:01:41 +00:00
dependabot-preview[bot]
0f76d17e4b Bump github.com/mattermost/mattermost-server in /dependabot (#66) 2019-11-07 00:44:12 +00:00
dependabot-preview[bot]
b825885790 Bump github.com/mattermost/mattermost-server in /dependabot (#65) 2019-11-03 17:41:48 +00:00
dependabot-preview[bot]
1aab309dbe Bump github.com/mattermost/mattermost-server in /dependabot (#64) 2019-10-25 06:36:54 +00:00
dependabot-preview[bot]
b0e13adaec Bump github.com/mattermost/mattermost-server from 5.15.1 to 5.16.0 in /dependabot (#63)
* Bump github.com/mattermost/mattermost-server in /dependabot

Bumps [github.com/mattermost/mattermost-server](https://github.com/mattermost/mattermost-server) from 5.15.1 to 5.16.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.15.1...v5.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-18 08:19:01 +02:00
dependabot-preview[bot]
6af28466ed Bump github.com/mattermost/mattermost-server in /dependabot (#62) 2019-10-14 06:55:02 +00:00
13 changed files with 214 additions and 338 deletions

9
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/dependabot"
schedule:
interval: daily
time: "00:15"
open-pull-requests-limit: 99
target-branch: master

7
.github/lock.yml vendored
View File

@@ -1,7 +0,0 @@
# Configuration for Lock Threads - https://github.com/dessant/lock-threads
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 3
# Comment to post before locking. Set to `false` to disable
lockComment: false

15
.github/workflows/lock.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: 'Lock threads'
on:
schedule:
- cron: '0 0 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 3
pr-lock-inactive-days: 3

96
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,96 @@
name: Package and release
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
DEBIAN_RELEASE: buster
DOCKER_PWD: /root
DOCKER_IMAGE: debian:${DEBIAN_RELEASE}
GO_VERSION: 1.18.1
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: dragonfly
arch: amd64
- os: freebsd
arch: amd64
- os: freebsd
arch: arm
- os: linux
arch: arm
- os: linux
arch: arm64
- os: linux
arch: mips
- os: linux
arch: mips64
- os: linux
arch: mips64le
- os: linux
arch: mipsle
- os: linux
arch: ppc64
- os: linux
arch: ppc64le
- os: linux
arch: s390x
- os: netbsd
arch: amd64
- os: netbsd
arch: arm
- os: openbsd
arch: amd64
- os: openbsd
arch: arm
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set environment from runtime properties
run: |
echo "MATTERMOST_RELEASE=$(grep 'mattermost-server' dependabot/go.mod | cut -d' ' -f2)" >> $GITHUB_ENV
echo "MMCTL_RELEASE=v7.5.2" >> $GITHUB_ENV
- name: Pull docker image
run: 'docker pull "${{ env.DOCKER_IMAGE }}"'
- name: Build
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: docker run --mount="type=bind,source=$PWD,destination=${{ env.DOCKER_PWD }}" --rm=true --tty=true --workdir="${{ env.DOCKER_PWD }}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e MMCTL_RELEASE -e GOOS -e GOARCH "${{ env.DOCKER_IMAGE }}" ./build.sh
- name: Tag release
if: github.ref == 'refs/heads/master'
uses: actions/github-script@v3
# this throws an error if the tag already exists. can't find a way around that without writing our own Github REST client or forking github's scripts repo.
# would prefer to do this before any of these jobs run, but we need to know the mattermost version which only happens after a clone. could potentially
# setup a separate job which does clone + tag, but felt like this was "good enough" for now.
continue-on-error: true
with:
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ env.MATTERMOST_RELEASE }}',
sha: context.sha
})
- name: Create Github release
if: github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.MATTERMOST_RELEASE }}
files: |
mattermost-${{ env.MATTERMOST_RELEASE }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
mattermost-${{ env.MATTERMOST_RELEASE }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz.sha512sum

View File

@@ -1,44 +0,0 @@
language: c
dist: trusty
sudo: required
service:
- docker
env:
global:
- DEBIAN_RELEASE='stretch'
- DOCKER_PWD='/root'
- DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
matrix:
- GOOS='dragonfly' GOARCH='amd64'
- GOOS='freebsd' GOARCH='amd64'
- GOOS='freebsd' GOARCH='arm'
- GOOS='linux' GOARCH='arm'
- GOOS='linux' GOARCH='arm64'
- GOOS='linux' GOARCH='mips'
- GOOS='linux' GOARCH='mips64'
- GOOS='linux' GOARCH='mips64le'
- GOOS='linux' GOARCH='mipsle'
- GOOS='linux' GOARCH='ppc64'
- GOOS='linux' GOARCH='ppc64le'
- GOOS='linux' GOARCH='s390x'
- GOOS='netbsd' GOARCH='amd64'
- GOOS='netbsd' GOARCH='arm'
- GOOS='openbsd' GOARCH='amd64'
- GOOS='openbsd' GOARCH='arm'
before_install:
- export MATTERMOST_RELEASE="$(grep 'version' dependabot/Gopkg.toml | cut -d'"' -f2)"
- docker pull "${DOCKER_IMAGE}"
- chmod +x build.sh
script:
- docker run --interactive=true --mount="type=bind,source=${PWD},destination=${DOCKER_PWD}" --rm=true --tty=true --workdir="${DOCKER_PWD}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e GOOS -e GOARCH "${DOCKER_IMAGE}" ./build.sh
before_deploy:
- git config --local user.name 'Travis CI'
- git config --local user.email 'travis@travis-ci.org'
- git tag "${MATTERMOST_RELEASE}" || true
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file:
- "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz"
- "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz.sha512sum"
skip_cleanup: true

View File

@@ -1,9 +1,9 @@
# ubiquitous-memory: [Here be dragons][2]
[![Build Status](https://travis-ci.org/SmartHoneybee/ubiquitous-memory.svg?branch=master)](https://travis-ci.org/SmartHoneybee/ubiquitous-memory)
[![Build Status](https://github.com/SmartHoneybee/ubiquitous-memory/actions/workflows/release.yml/badge.svg)](https://github.com/SmartHoneybee/ubiquitous-memory/actions/workflows/release.yml)
[Travis CI][0] recipe that builds [Mattermost][1] for various operating systems and architectures.
[Github Actions][0] script that builds [Mattermost][1] for various operating systems and architectures.
[0]: https://travis-ci.org/SmartHoneybee/ubiquitous-memory
[0]: https://github.com/SmartHoneybee/ubiquitous-memory/actions
[1]: https://mattermost.com/
[2]: https://en.wikipedia.org/wiki/Here_be_dragons

View File

@@ -1,33 +1,24 @@
From 556e16211ed1b4c146ca2a094688618458182ae7 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Wed, 6 Jun 2018 12:34:56 +0100
Subject: [PATCH] Split make goal
---
build/release.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/release.mk b/build/release.mk
index 238343e..1b7859f 100644
index faa027239..df40f0c68 100644
--- a/build/release.mk
+++ b/build/release.mk
@@ -70,7 +70,7 @@ endif
done
@@ -99,7 +99,7 @@ package-prep:
@# Resource directories
mkdir -p $(DIST_PATH)/config
cp -L config/README.md $(DIST_PATH)/config
- OUTPUT_CONFIG=$(PWD)/$(DIST_PATH)/config/config.json go run ./scripts/config_generator
+ OUTPUT_CONFIG=$(PWD)/$(DIST_PATH)/config/config.json GOOS= GOARCH= go run ./scripts/config_generator
cp -RL fonts $(DIST_PATH)
cp -RL templates $(DIST_PATH)
rm -rf $(DIST_PATH)/templates/*.mjml $(DIST_PATH)/templates/partials/
@@ -159,8 +159,8 @@ else
cp $(GOBIN)/$(CURRENT_PACKAGE_ARCH)/$(MM_BIN_NAME) $(DIST_PATH_GENERIC)/bin # from cross-compiled bin dir
endif
@# ----- PLATFORM SPECIFIC -----
-
+_:
@# Make osx package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
@@ -110,7 +110,7 @@ endif
rm -f $(DIST_PATH)/bin/mattermost.exe
rm -f $(DIST_PATH)/bin/platform.exe
rm -f $(DIST_PATH)/prepackaged_plugins/*
-
+package-linux: package
@# Make linux package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
--
2.11.0
- #Download MMCTL for $(MMCTL_PLATFORM)
- scripts/download_mmctl_release.sh $(MMCTL_PLATFORM) $(DIST_PATH_GENERIC)/bin
+ @#Copy cross-compiled MMCTL
+ cp "${HOME}/go/src/github.com/mattermost/mmctl/mmctl" $(DIST_PATH_GENERIC)/bin
ifeq ("darwin_arm64","$(CURRENT_PACKAGE_ARCH)")
echo "No plugins yet for $(CURRENT_PACKAGE_ARCH) platform, skipping..."

84
build.sh Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -eux
# build user
BUILD_USER_HOME="${BUILD_USER_HOME:-/build}"
@@ -6,10 +6,10 @@ BUILD_USER_NAME="${BUILD_USER_NAME:-build}"
# Debian release used during build
DEBIAN_RELEASE="${DEBIAN_RELEASE:-stretch}"
# Mattermost version to build
MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.4.0}"
# node key id and release
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
NODE_RELEASE="${NODE_RELEASE:-10}"
MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.26.0}"
MMCTL_RELEASE="${MMCTL_RELEASE:-v5.26.0}"
# golang version
GO_VERSION="${GO_VERSION:-1.18.1}"
if [ "$(id -u)" -eq 0 ]; then # as root user
# create build user, if needed
@@ -31,31 +31,30 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
apt-get update
# dependencies to setup repositories
apt-get install --quiet \
gnupg2 dirmngr apt-transport-https ca-certificates parallel
# receive missing key (retry on failure)
parallel --verbose --delay=30 --retries=5 "apt-key adv --keyserver 'ipv4.pool.sks-keyservers.net' --recv-keys '{}'" ::: "${NODE_KEY}"
gnupg2 dirmngr apt-transport-https ca-certificates curl
# add required additional repositories
printf 'deb-src http://deb.debian.org/debian %s main' "${DEBIAN_RELEASE}" \
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-source.list"
printf 'deb http://deb.debian.org/debian %s-backports main' "${DEBIAN_RELEASE}" \
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-backports.list"
printf 'deb https://deb.nodesource.com/node_%s.x %s main' "${NODE_RELEASE}" "${DEBIAN_RELEASE}" \
> '/etc/apt/sources.list.d/nodesource.list'
# update repositories
apt-get update
# install go from Debian backports
apt-get install --quiet --target-release "${DEBIAN_RELEASE}-backports" \
golang-go
# install dependencies
apt-get install --quiet \
wget build-essential patch git nodejs
wget build-essential patch git python2
# install 'pngquant' build dependencies (required by node module)
apt-get build-dep --quiet \
pngquant
# install go from golang.org
wget https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz
tar -xvf go${GO_VERSION}.linux-amd64.tar.gz
mv go /usr/local
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
# FIXME go (executed by build user) writes to GOROOT
install --directory --owner="${BUILD_USER_NAME}" \
"$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)"
# switch to build user
# Re-invoke this build.sh script with the 'build' user
runuser -u "${BUILD_USER_NAME}" -- "${0}"
# salvage build artifacts
cp --verbose \
@@ -65,7 +64,15 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
exit 0
fi
# as non-root user
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
cd "${HOME}"
# install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# download and extract Mattermost sources
for COMPONENT in server webapp; do
install --directory "${HOME}/go/src/github.com/mattermost/mattermost-${COMPONENT}"
@@ -74,6 +81,33 @@ for COMPONENT in server webapp; do
tar --directory="${HOME}/go/src/github.com/mattermost/mattermost-${COMPONENT}" \
--strip-components=1 --extract --file="mattermost-${COMPONENT}.tar.gz"
done
# install mattermost-webapp's required version of nodejs
pushd "${HOME}/go/src/github.com/mattermost/mattermost-webapp"
nvm install
popd
# prepare the go build environment
install --directory "${HOME}/go/bin"
if [ "$(go env GOOS)_$(go env GOARCH)" != 'linux_amd64' ]; then
ln --symbolic \
"${HOME}/go/bin/$(go env GOOS)_$(go env GOARCH)" \
"${HOME}/go/bin/linux_amd64"
fi
# build mmctl
install --directory "${HOME}/go/src/github.com/mattermost/mmctl"
wget --quiet --continue --output-document="mmctl.tar.gz" \
"https://github.com/mattermost/mmctl/archive/${MMCTL_RELEASE}.tar.gz"
tar --directory="${HOME}/go/src/github.com/mattermost/mmctl" \
--strip-components=1 --extract --file="mmctl.tar.gz"
find "${HOME}/go/src/github.com/mattermost/mmctl/" -type f -name '*.go' | xargs \
sed -i \
-e 's#//go:build linux || darwin#//go:build linux || darwin || dragonfly || freebsd || netbsd || openbsd#' \
-e 's#// +build linux darwin#// +build linux darwin dragonfly freebsd netbsd openbsd#'
make --directory="${HOME}/go/src/github.com/mattermost/mmctl" \
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MMCTL_RELEASE}" \
ADVANCED_VET=0 \
GO="GOARCH= GOOS= $(command -v go)"
# build Mattermost webapp
npm set progress false
sed -i -e 's#--verbose#--display minimal#' \
@@ -81,23 +115,21 @@ sed -i -e 's#--verbose#--display minimal#' \
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-webapp" \
build
# build Mattermost server
install --directory "${HOME}/go/bin"
if [ "$(go env GOOS)_$(go env GOARCH)" != 'linux_amd64' ]; then
ln --symbolic \
"${HOME}/go/bin/$(go env GOOS)_$(go env GOARCH)" \
"${HOME}/go/bin/linux_amd64"
fi
patch --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
--strip=1 < "${HOME}/build-release.patch"
patch --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
--strip=1 < "${HOME}/go-backport.patch"
--strip=1 -t < "${HOME}/build-release.patch"
sed -i \
-e 's#go generate#env --unset=GOOS --unset=GOARCH &#' \
-e 's#go generate#env --unset=GOOS --unset=GOARCH go generate#' \
-e 's#$(GO) generate#env --unset=GOOS --unset=GOARCH go generate#' \
-e 's#PWD#CURDIR#' \
"${HOME}/go/src/github.com/mattermost/mattermost-server/Makefile" \
"${HOME}/go/src/github.com/mattermost/mattermost-server/build/release.mk"
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
config-reset build-linux package-linux \
config-reset \
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MATTERMOST_RELEASE}" \
GO="GOARCH= GOOS= $(command -v go)" \
PLUGIN_PACKAGES=''
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
build-linux package-linux \
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MATTERMOST_RELEASE}" \
GO="GOARCH=$(go env GOARCH) GOOS=$(go env GOOS) $(command -v go)" \
PLUGIN_PACKAGES=''

197
dependabot/Gopkg.lock generated
View File

@@ -1,197 +0,0 @@
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
digest = "1:79421244ba5848aae4b0a5c41e633a04e4894cb0b164a219dc8c15ec7facb7f1"
name = "github.com/blang/semver"
packages = ["."]
pruneopts = ""
revision = "2ee87856327ba09384cabd113bc6b5d174e9ec0f"
version = "v3.5.1"
[[projects]]
branch = "master"
digest = "1:b89d54b3534c2a85153cc60a39e1a9764f9cc6c7b3d1b31265fd53cd70ea77dd"
name = "github.com/dyatlov/go-opengraph"
packages = ["opengraph"]
pruneopts = ""
revision = "816b6608b3c8c1e871bc9cf777f390e2532081fe"
[[projects]]
digest = "1:5247b135b5492aa232a731acdcb52b08f32b874cb398f21ab460396eadbe866b"
name = "github.com/google/uuid"
packages = ["."]
pruneopts = ""
revision = "d460ce9f8df2e77fb1ba55ca87fafed96c607494"
version = "v1.0.0"
[[projects]]
branch = "master"
digest = "1:ad21af51a0276292e9f6f5c37b966630138986478b1ecdbb94b907168fe25281"
name = "github.com/gorilla/websocket"
packages = ["."]
pruneopts = ""
revision = "483fb8d7c32fcb4b5636cd293a92e3935932e2f4"
[[projects]]
digest = "1:9fa4a4a684dfb36f3ba1b0a163225140e19e3219e5576d0761d02dbd4c31b743"
name = "github.com/mattermost/go-i18n"
packages = ["i18n"]
pruneopts = ""
revision = "0dc1626d56435e9d605a29875701721c54bc9bbd"
version = "v1.10.0"
[[projects]]
digest = "1:e2df3d086086eadfe8ef94d8f1f333d75b5332987b4c6116f5df8d6bf2a69417"
name = "github.com/mattermost/ldap"
packages = ["."]
pruneopts = ""
revision = "fee0a369f21be68ea3d647c0da8272a352fa1528"
version = "v3.0.4"
[[projects]]
digest = "1:30a230c4267e321c3a0a725104f5c67a834745e9508d7210eef123d02a43fa88"
name = "github.com/mattermost/mattermost-server"
packages = [
"mlog",
"model",
"services/timezones",
"utils/jsonutils",
"utils/markdown",
]
pruneopts = ""
revision = "f4f7fd0829d74fcd5e290fd1ba76845af18e553e"
version = "v5.15.0"
[[projects]]
digest = "1:9fa4a4a684dfb36f3ba1b0a163225140e19e3219e5576d0761d02dbd4c31b743"
name = "github.com/nicksnyder/go-i18n"
packages = [
"i18n/bundle",
"i18n/language",
"i18n/translation",
]
pruneopts = ""
revision = "0dc1626d56435e9d605a29875701721c54bc9bbd"
version = "v1.10.0"
[[projects]]
digest = "1:a5484d4fa43127138ae6e7b2299a6a52ae006c7f803d98d717f60abf3e97192e"
name = "github.com/pborman/uuid"
packages = ["."]
pruneopts = ""
revision = "adf5a7427709b9deb95d29d3fa8a2bf9cfd388f1"
version = "v1.2"
[[projects]]
digest = "1:894aef961c056b6d85d12bac890bf60c44e99b46292888bfa66caf529f804457"
name = "github.com/pelletier/go-toml"
packages = ["."]
pruneopts = ""
revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194"
version = "v1.2.0"
[[projects]]
digest = "1:7365acd48986e205ccb8652cc746f09c8b7876030d53710ea6ef7d0bd0dcd7ca"
name = "github.com/pkg/errors"
packages = ["."]
pruneopts = ""
revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
version = "v0.8.0"
[[projects]]
digest = "1:74f86c458e82e1c4efbab95233e0cf51b7cc02dc03193be9f62cd81224e10401"
name = "go.uber.org/atomic"
packages = ["."]
pruneopts = ""
revision = "1ea20fb1cbb1cc08cbd0d913a96dead89aa18289"
version = "v1.3.2"
[[projects]]
digest = "1:22c7effcb4da0eacb2bb1940ee173fac010e9ef3c691f5de4b524d538bd980f5"
name = "go.uber.org/multierr"
packages = ["."]
pruneopts = ""
revision = "3c4937480c32f4c13a875a1829af76c98ca3d40a"
version = "v1.1.0"
[[projects]]
digest = "1:246f378f80fba6fcf0f191c486b6613265abd2bc0f2fa55a36b928c67352021e"
name = "go.uber.org/zap"
packages = [
".",
"buffer",
"internal/bufferpool",
"internal/color",
"internal/exit",
"zapcore",
]
pruneopts = ""
revision = "ff33455a0e382e8a81d14dd7c922020b6b5e7982"
version = "v1.9.1"
[[projects]]
branch = "master"
digest = "1:efb97ebbd73c3a7068579327f5d98a17c09f6d8caf1fa3212c506e8bb78126b5"
name = "golang.org/x/crypto"
packages = [
"bcrypt",
"blowfish",
]
pruneopts = ""
revision = "4d3f4d9ffa16a13f451c3b2999e9c49e9750bf06"
[[projects]]
branch = "master"
digest = "1:4f7cbb08d72e1163302e2d21415200a7bc281653f5f34eda8a15c0da11a337b0"
name = "golang.org/x/net"
packages = [
"html",
"html/atom",
]
pruneopts = ""
revision = "3a22650c66bd7f4fb6d1e8072ffd7b75c8a27898"
[[projects]]
digest = "1:5acd3512b047305d49e8763eef7ba423901e85d5dd2fd1e71778a0ea8de10bd4"
name = "golang.org/x/text"
packages = [
"internal/gen",
"internal/tag",
"language",
"unicode/cldr",
]
pruneopts = ""
revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0"
version = "v0.3.0"
[[projects]]
digest = "1:039b95e6ba078fe5a22315dcae7bc9859226ee34672ce9ab01708576bf2abd38"
name = "gopkg.in/asn1-ber.v1"
packages = ["."]
pruneopts = ""
revision = "f715ec2f112d1e4195b827ad68cf44017a3ef2b1"
version = "v1.3"
[[projects]]
digest = "1:11c58e19ff7ce22740423bb933f1ddca3bf575def40d5ac3437ec12871b1648b"
name = "gopkg.in/natefinch/lumberjack.v2"
packages = ["."]
pruneopts = ""
revision = "a96e63847dc3c67d17befa69c303767e2f84e54f"
version = "v2.1"
[[projects]]
digest = "1:f0620375dd1f6251d9973b5f2596228cc8042e887cd7f827e4220bc1ce8c30e2"
name = "gopkg.in/yaml.v2"
packages = ["."]
pruneopts = ""
revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183"
version = "v2.2.1"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
input-imports = ["github.com/mattermost/mattermost-server/model"]
solver-name = "gps-cdcl"
solver-version = 1

View File

@@ -1,3 +0,0 @@
[[constraint]]
name = "github.com/mattermost/mattermost-server"
version = "v5.15.0"

View File

@@ -1,3 +1,6 @@
package main
import _ "github.com/mattermost/mattermost-server/model"
func() main() {/* dummy file */}
import _ "github.com/mattermost/mattermost-server/v6/model"
import _ "github.com/mattermost/mmctl/commands"
func main() { /* dummy file */ }

8
dependabot/go.mod Normal file
View File

@@ -0,0 +1,8 @@
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
go 1.18
require (
github.com/mattermost/mattermost-server/v6 v7.5.2
github.com/mattermost/mmctl v0.0.0-20211221153052-1bb2fec4c15e
)

View File

@@ -1,27 +0,0 @@
From 556e16211ed1b4c146ca2a094688618458182ae7 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Wed, 6 Jun 2018 12:34:56 +0100
Subject: [PATCH] go 1.11 backport
---
store/sqlstore/channel_store.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go
index cf63c706d..dae7c8c9c 100644
--- a/store/sqlstore/channel_store.go
+++ b/store/sqlstore/channel_store.go
@@ -2072,9 +2072,9 @@ func (s SqlChannelStore) SearchAllChannels(term string, opts store.ChannelSearch
likeClause, likeTerm := s.buildLIKEClause(term, "c.Name, c.DisplayName, c.Purpose")
if len(likeTerm) > 0 {
- likeClause = strings.ReplaceAll(likeClause, ":LikeTerm", "'"+likeTerm+"'")
+ likeClause = strings.Replace(likeClause, ":LikeTerm", "'"+likeTerm+"'", -1)
fulltextClause, fulltextTerm := s.buildFulltextClause(term, "c.Name, c.DisplayName, c.Purpose")
- fulltextClause = strings.ReplaceAll(fulltextClause, ":FulltextTerm", "'"+fulltextTerm+"'")
+ fulltextClause = strings.Replace(fulltextClause, ":FulltextTerm", "'"+fulltextTerm+"'", -1)
query = query.Where("(" + likeClause + " OR " + fulltextClause + ")")
}
--
2.11.0