diff --git a/application.go b/application.go index 0d07738..3585b59 100644 --- a/application.go +++ b/application.go @@ -84,8 +84,6 @@ func (a *Application) Run(arguments []string) (err error) { a.setup() }) - checkWSL() - context := NewContext(a, nil, nil) context.flagSet, err = a.parseArgs(arguments[1:]) diff --git a/wsl_others.go b/wsl_others.go deleted file mode 100644 index d28b0a0..0000000 --- a/wsl_others.go +++ /dev/null @@ -1,25 +0,0 @@ -//go:build !windows -// +build !windows - -/* - * Copyright (c) 2021-present Fabien Potencier - * - * This file is part of Symfony CLI project - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package console - -func checkWSL() {} diff --git a/wsl_windows.go b/wsl_windows.go deleted file mode 100644 index 95642da..0000000 --- a/wsl_windows.go +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2021-present Fabien Potencier - * - * This file is part of Symfony CLI project - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package console - -import ( - "os" - - "github.com/symfony-cli/terminal" -) - -func checkWSL() { - if fi, err := os.Stat("/proc/version"); fi == nil || err != nil { - return - } - - ui := terminal.SymfonyStyle(terminal.Stdout, terminal.Stdin) - ui.Error("Wrong binary for WSL") - terminal.Println(`You are trying to run the Windows version of the Symfony CLI on WSL (Linux). -You must use the Linux version to use the Symfony CLI on WSL. - -Download it at https://symfony.com/download -`) - os.Exit(1) -}