Skip to content

Commit

Permalink
Merge pull request #456 from mattermost/revert-prod-changes
Browse files Browse the repository at this point in the history
Revert prod changes
  • Loading branch information
streamer45 authored Sep 16, 2024
2 parents b5e1f05 + 19fa282 commit ac374c1
Show file tree
Hide file tree
Showing 17 changed files with 4,221 additions and 4,235 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
container: cimg/go:1.22
container: cimg/go:1.19
defaults:
run:
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linters-settings:
goimports:
local-prefixes: github.com/mattermost/mattermost-marketplace
govet:
shadow: true
check-shadowing: true
enable-all: true
disable:
- fieldalignment
Expand Down
2 changes: 1 addition & 1 deletion cmd/generator/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/blang/semver"
mattermostModel "github.com/mattermost/mattermost/server/public/model"
mattermostModel "github.com/mattermost/mattermost-server/v6/model"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/generator/bundles.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var migrateCmd = &cobra.Command{
Short: "Migrate existing plugins in plugins.json to the newest structure.",
Long: "The migrate command adds platform-specific bundles to each existing entry.",
Example: "generator migrate",
RunE: func(command *cobra.Command, _ []string) error {
RunE: func(command *cobra.Command, args []string) error {
dbFile, err := command.Flags().GetString("database")
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions cmd/generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/blang/semver"
"github.com/google/go-github/v28/github"
mattermostModel "github.com/mattermost/mattermost/server/public/model"
mattermostModel "github.com/mattermost/mattermost-server/v6/model"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -54,7 +54,7 @@ var generatorCmd = &cobra.Command{
PersistentPreRunE: InitCommand,
// SilenceErrors allows us to explicitly log the error returned from generatorCmd below.
SilenceErrors: true,
RunE: func(command *cobra.Command, _ []string) error {
RunE: func(command *cobra.Command, args []string) error {
command.SilenceUsage = true

dbFile, err := command.Flags().GetString("database")
Expand Down
4 changes: 2 additions & 2 deletions cmd/marketplace/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/gorilla/mux"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -37,7 +37,7 @@ func init() {
var serverCmd = &cobra.Command{
Use: "server",
Short: "Run the provisioning server.",
RunE: func(command *cobra.Command, _ []string) error {
RunE: func(command *cobra.Command, args []string) error {
command.SilenceUsage = true

debug, _ := command.Flags().GetBool("debug")
Expand Down
64 changes: 7 additions & 57 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,67 +1,17 @@
module github.com/mattermost/mattermost-marketplace

go 1.22

toolchain go1.22.6
go 1.16

require (
github.com/akrylysov/algnhsa v0.0.0-20190319020909-05b3d192e9a7
github.com/blang/semver v3.5.1+incompatible
github.com/google/go-github/v28 v28.0.0
github.com/gorilla/mux v1.8.1
github.com/mattermost/mattermost/server/public v0.1.7-0.20240912172357-70fe2abea67e
github.com/gorilla/mux v1.8.0
github.com/mattermost/mattermost-server/v6 v6.0.0-20221122212622-0509e78744bf
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.9.3
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
github.com/stretchr/testify v1.9.0
golang.org/x/oauth2 v0.21.0
golang.org/x/sync v0.7.0
)

require (
github.com/aws/aws-lambda-go v1.9.0 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/dyatlov/go-opengraph/opengraph v0.0.0-20220524092352-606d7b1e5f8a // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/go-asn1-ber/asn1-ber v1.5.7 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mattermost/go-i18n v1.11.1-0.20211013152124-5c415071e404 // indirect
github.com/mattermost/ldap v0.0.0-20231116144001-0f480c025956 // indirect
github.com/mattermost/logr/v2 v2.0.21 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/pborman/uuid v1.2.1 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/philhofer/fwd v1.1.3-0.20240612014219-fbbf4953d986 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tinylib/msgp v1.2.0 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/wiggin77/merror v1.0.5 // indirect
github.com/wiggin77/srslog v1.0.1 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
github.com/stretchr/testify v1.8.1
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
golang.org/x/sync v0.1.0
)
Loading

0 comments on commit ac374c1

Please sign in to comment.