s/masterminds/mattermost for squirrel (#20162)

Our fork of https://github.com/Masterminds/squirrel at https://github.com/mattermost/squirrel (previously https://github.com/lieut-data/squirrel) isn't compatible with the upstream project, and causes issues for repositories importing mattermost-server and using squirrel.

Sidestep this by adopting the `mattermost/squirrel` fork explicitly.  (Downstream repos can either switch, or keep using the upstream version from `Masterminds`.)
Этот коммит содержится в:
Jesse Hallam
2022-05-10 11:48:59 -03:00
коммит произвёл GitHub
родитель 81700598ec
Коммит a4ad6eda5d
36 изменённых файлов: 37 добавлений и 37 удалений

4
go.mod
Просмотреть файл

@@ -5,7 +5,6 @@ go 1.18
require (
code.sajari.com/docconv v1.2.0
github.com/Masterminds/semver/v3 v3.1.1
github.com/Masterminds/squirrel v1.5.2
github.com/avct/uasurfer v0.0.0-20191028135549-26b5daa857f1
github.com/aws/aws-sdk-go v1.44.9
github.com/blang/semver v3.5.1+incompatible
@@ -40,6 +39,7 @@ require (
github.com/mattermost/logr/v2 v2.0.15
github.com/mattermost/morph v0.0.0-20220401091636-39f834798da8
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0
github.com/mattermost/squirrel v0.2.0
github.com/mholt/archiver/v3 v3.5.1
github.com/microcosm-cc/bluemonday v1.0.18
github.com/minio/minio-go/v7 v7.0.26
@@ -178,8 +178,6 @@ require (
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
replace github.com/Masterminds/squirrel v1.5.2 => github.com/lieut-data/squirrel v1.5.4
// Hack to prevent the willf/bitset module from being upgraded to 1.2.0.
// They changed the module path from github.com/willf/bitset to
// github.com/bits-and-blooms/bitset and a couple of dependent repos are yet

2
go.sum
Просмотреть файл

@@ -988,6 +988,8 @@ github.com/mattermost/morph v0.0.0-20220401091636-39f834798da8 h1:gwliVjCTqAC01m
github.com/mattermost/morph v0.0.0-20220401091636-39f834798da8/go.mod h1:jxM3g1bx+k2Thz7jofcHguBS8TZn5Pc+o5MGmORObhw=
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0 h1:G9tL6JXRBMzjuD1kkBtcnd42kUiT6QDwxfFYu7adM6o=
github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0/go.mod h1:nV5bfVpT//+B1RPD2JvRnxbkLmJEYXmRaaVl15fsXjs=
github.com/mattermost/squirrel v0.2.0 h1:8ZWeyf+MWQ2cL7hu9REZgLtz2IJi51qqZEovI3T3TT8=
github.com/mattermost/squirrel v0.2.0/go.mod h1:NPPtk+CdpWre4GxMGoOpzEVFVc0ZoEFyJBZGCtn9nSU=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=

Просмотреть файл

@@ -4,7 +4,7 @@
package sqlstore
import (
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"database/sql"
"fmt"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"strings"
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/einterfaces"

Просмотреть файл

@@ -6,7 +6,7 @@ package sqlstore
import (
"fmt"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -4,7 +4,7 @@
package sqlstore
import (
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"database/sql"
"fmt"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -6,7 +6,7 @@ package sqlstore
import (
"database/sql"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"fmt"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/einterfaces"

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"fmt"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -4,7 +4,7 @@
package sqlstore
import (
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/shared/mlog"

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"strings"
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -4,7 +4,7 @@
package sqlstore
import (
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"database/sql"
"encoding/json"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"database/sql"
"fmt"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"strings"
"sync"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/einterfaces"

Просмотреть файл

@@ -4,7 +4,7 @@
package sqlstore
import (
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -6,7 +6,7 @@ package sqlstore
import (
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -4,7 +4,7 @@
package sqlstore
import (
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/shared/mlog"

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -9,12 +9,12 @@ import (
"strconv"
"strings"
sq "github.com/Masterminds/squirrel"
"github.com/go-sql-driver/mysql"
"github.com/lib/pq"
"github.com/mattermost/mattermost-server/v6/einterfaces"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/store"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
)

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"fmt"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"database/sql"
"fmt"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"fmt"
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/store"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
)

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"fmt"
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -16,8 +16,8 @@ import (
"sync/atomic"
"time"
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/morph"
sq "github.com/mattermost/squirrel"
"github.com/mattermost/morph/drivers"
ms "github.com/mattermost/morph/drivers/mysql"

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"strings"
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"fmt"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"sync"
"time"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"database/sql"
"fmt"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -6,7 +6,7 @@ package sqlstore
import (
"database/sql"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/model"

Просмотреть файл

@@ -11,7 +11,7 @@ import (
"sort"
"strings"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"

Просмотреть файл

@@ -6,7 +6,7 @@ package sqlstore
import (
"database/sql"
sq "github.com/Masterminds/squirrel"
sq "github.com/mattermost/squirrel"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v6/einterfaces"