🚧 This instance is under construction; expect occasional downtime. Runners available in /repos. Questions? Ask in #wikimedia-gitlab on libera.chat, or under GitLab on Phabricator.

Commit 8312bcb5 authored by Addshore's avatar Addshore 🏄
Browse files

Switch from gerrit packages to gitlab

Since the code is moved now :)

https://phabricator.wikimedia.org/T292401
parent 75b7e050
......@@ -6,7 +6,7 @@ SHELL := /bin/bash
RELEASE_DIR ?= ./_release
TARGETS ?= darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64le windows/amd64
PACKAGE := gerrit.wikimedia.org/r/mediawiki/tools/cli
PACKAGE := gitlab.wikimedia.org/releng/cli
VERSION := latest
SEMVER := $(subst v,,$(VERSION))
......
......@@ -16,16 +16,16 @@ Take a look at the user facing docs https://www.mediawiki.org/wiki/Cli
### Repo / Code setup
Clone this repository to your `$GOPATH` (probably `~/go`), so it would be at
`~/go/src/gerrit.wikimedia.org/r/mediawiki/tools/cli`.
`~/go/src/gitlab.wikimedia.org/releng/cli`.
Within the `~/go/src/gerrit.wikimedia.org/r/mediawiki/tools/cli` directory:
Within the `~/go/src/gitlab.wikimedia.org/releng/cli` directory:
Run `make` to build a binary to `~/go/src/gerrit.wikimedia.org/r/mediawiki/tools/cli/bin/mw`.
Run `make` to build a binary to `~/go/src/gitlab.wikimedia.org/releng/cli/bin/mw`.
We recommend that you create a development alias for this binary, and run `make` after you make changes to the codebase.
```sh
alias mwdev='~/go/src/gerrit.wikimedia.org/r/mediawiki/tools/cli/bin/mw'
alias mwdev='~/go/src/gitlab.wikimedia.org/releng/cli/bin/mw'
```
### Makefile commands
......
......@@ -17,8 +17,8 @@ limitations under the License.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/config"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/config"
)
var configCmd = &cobra.Command{
......
......@@ -21,11 +21,11 @@ import (
"fmt"
"os"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/util/ports"
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
"gitlab.wikimedia.org/releng/cli/internal/util/ports"
)
var mwddCmd = &cobra.Command{
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddAdminerCmd = &cobra.Command{
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddDockerComposeCmd = &cobra.Command{
......
......@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/cmd"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"gitlab.wikimedia.org/releng/cli/internal/cmd"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
func mwddEnvDirectory() string {
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddGraphiteCmd = &cobra.Command{
......
......@@ -20,9 +20,9 @@ package cmd
import (
"fmt"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/util/hosts"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
"gitlab.wikimedia.org/releng/cli/internal/util/hosts"
)
var mwddHostsCmd = &cobra.Command{
......
......@@ -26,13 +26,13 @@ import (
"syscall"
"time"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mediawiki"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/util/paths"
"github.com/briandowns/spinner"
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mediawiki"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
"gitlab.wikimedia.org/releng/cli/internal/util/paths"
)
var mwddMediawikiCmd = &cobra.Command{
......@@ -287,7 +287,7 @@ The process hidden within this command is:
// Check composer dependencies are up to date
checkComposer := func() {
// overrideConfig is a hack https://phabricator.wikimedia.org/T291613
// If this gets merged into Mediawiki we can remvoe it here https://gerrit.wikimedia.org/r/c/mediawiki/core/+/723308/
// If this gets merged into Mediawiki we can remove it here https://gerrit.wikimedia.org/r/c/mediawiki/core/+/723308/
composerErr := mwdd.DefaultForUser().ExecNoOutput("mediawiki", []string{
"php", "-r", "define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' ); require_once('/var/www/html/w/maintenance/checkComposerLockUpToDate.php');",
},
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddMySQLReplicaCmd = &cobra.Command{
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddMySQLCmd = &cobra.Command{
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddPhpMyAdminCmd = &cobra.Command{
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddPostgresCmd = &cobra.Command{
......
......@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package cmd
import (
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/mwdd"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/mwdd"
)
var mwddRedisCmd = &cobra.Command{
......
......@@ -21,9 +21,9 @@ import (
"fmt"
"os"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/config"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/updater"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/config"
"gitlab.wikimedia.org/releng/cli/internal/updater"
)
// Verbosity indicating verbose mode.
......
......@@ -20,9 +20,9 @@ import (
"fmt"
"os"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/updater"
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/updater"
)
var updateCmd = &cobra.Command{
......
......@@ -20,8 +20,8 @@ package cmd
import (
"fmt"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/util/dotenv"
"github.com/spf13/cobra"
"gitlab.wikimedia.org/releng/cli/internal/util/dotenv"
)
/*Env top level env command*/
......
......@@ -24,7 +24,7 @@ import (
osexec "os/exec"
"strings"
"gerrit.wikimedia.org/r/mediawiki/tools/cli/internal/exec"
"gitlab.wikimedia.org/releng/cli/internal/exec"
)
/*MediaWiki representation of a MediaWiki install directory*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment