moderntribe / square1-global-docker

SquareOne Global Docker is a command line application that provides a local development environment for projects based on the SquareOne Framework.
GNU General Public License v2.0
7 stars 1 forks source link

Install issue on Ubuntu fork distro, PopOS. #37

Closed nickpelton closed 3 years ago

nickpelton commented 4 years ago

Describe the bug After installing SO on PopOS Linux (based on Ubuntu) any so command fails.

To Reproduce What did you do?

  1. Fresh linux distro.
  2. Installed PHP (7.4 is the distro latest).
  3. Ran so command. = Error

Expected behavior A clear and concise description of what you expected to happen.

so command should work and show help menu.

Actual behavior

Stack trace:
#0 phar:///home/nick/.config/squareone/bin/so/src/Hooks/CertificateHandler.php(51): Tribe\SquareOne\Models\OperatingSystem->getLinuxFlavor()
#1 [internal function]: Tribe\SquareOne\Hooks\CertificateHandler->setDependencies()
#2 phar:///home/nick/.config/squareone/bin/so/vendor/league/container/src/Inflector/Inflector.php(100): call_user_func_array()
#3 phar:///home/nick/.config/squareone/bin/so/vendor/league/container/src/Inflector/InflectorAggregate.php(43): League\Container\Inflector\Inflector->inflect()
#4 phar:///home/nick/.config/squareone/bin/so/vendor/league/container/src/Container.php(290): League\Container\Inflector\InflectorAggregate->inflect()
#5 phar:///home/nick/.config/squareone/bin/so/vendor/league/container/src/Container.php(85): League\Container\Container->getFromThisC in phar:///home/nick/.config/squareone/bin/so/src/Models/OperatingSystem.php on line 48```

**System Configuration:**
 - OS: 
```NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Additional context Add any other context about the problem here.

defunctl commented 4 years ago

@nickpelton please use the release/3.0.0 branch, no more updates will be made to the old one.

Because it hasn't been merged the dev-install script won't work but you should be able to follow along what it should be doing: https://github.com/moderntribe/square1-global-docker/blob/release/3.0.0/install/dev-install.sh

If you need help just reach out.

defunctl commented 4 years ago

Here are the steps just in case:

Add bash completion to make typing the commands easier, should be sudo apt install bash-completion

  1. git clone https://github.com/moderntribe/square1-global-docker
  2. git checkout release/3.0.0
  3. composer install
  4. sudo ln -s /path/to/repo/so /usr/local/bin/sodev
  5. sudo cp -f /path/to/repo/squareone.autocompletion /etc/bash_completion.d/squareone.dev.autocompletion
  6. type sodev
nickpelton commented 3 years ago

Closing. Will retest on latest 3.0