]> Sergey Matveev's repositories - mmfileget.git/commitdiff
Updated mattermost-server dependency
authorSergey Matveev <stargrave@stargrave.org>
Mon, 1 Nov 2021 13:04:32 +0000 (16:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 1 Nov 2021 13:04:32 +0000 (16:04 +0300)
go.mod
mmfileget.do
vendor-done.do

diff --git a/go.mod b/go.mod
index 74b652c63131ecd1f17f9133b860965e3d5eb2c6..a4969e0fef1e350c69620b52a30be7a5b9f9f1e1 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,7 +1,7 @@
 module go.stargrave.org/mmfileget
 
-go 1.13
+go 1.15
 
-require github.com/mattermost/mattermost-server v5.29.0+incompatible
+require github.com/mattermost/mattermost-server/v5 v5.39.1
 
-replace github.com/mattermost/mattermost-server v5.29.0+incompatible => ./mattermost-server
+replace github.com/mattermost/mattermost-server/v5 v5.39.1 => ./mattermost-server
index fb22a9e5430e7d36b33b3972ecd5256f1c2d8af7..4bb75c6adb9b487515772a8aff5f6c6a20f3721c 100644 (file)
@@ -1,2 +1,2 @@
 redo-ifchange main.go vendor-done
-${GO:-go} build -o $3 -mod=vendor
+${GO:-go} build -o $3 -mod=vendor -ldflags=-s
index 0e0c937e8fa7ec224706009ecde2fa27838a9e1f..9ec502719edbf3a2fa728854869ed942992dac9e 100644 (file)
@@ -1,6 +1,10 @@
 git clone --depth 1 --branch v5.29.0 https://github.com/mattermost/mattermost-server.git
 ln -fs mattermost-server/vendor .
-rm vendor/modules.txt
 mkdir -p vendor/github.com/mattermost/mattermost-server
 ln -fs `pwd`/mattermost-server vendor/github.com/mattermost/mattermost-server/v5
+cat > vendor/modules.txt <<EOF
+# github.com/mattermost/mattermost-server/v5 v5.39.1 => ./mattermost-server
+## explicit
+github.com/mattermost/mattermost-server/v5
+EOF
 touch $3