RocketChat / rocketchat_nextcloud

App that allows Rocket Chat to live inside NextCloud and become seamless for the NextCloud Users
28 stars 2 forks source link

composer v2: match the expected JSON schema. #3

Closed florisvangeel closed 2 years ago

florisvangeel commented 2 years ago

Nextcloud 22
node v14.19.0
npm@7

cd apps
git clone https://github.com/RocketChat/rocketchat_nextcloud.git
~/apps/rocketchat_nextcloud$ composer install

issue


  [Composer\Json\JsonValidationException]                                                    
  "./composer.json" does not match the expected JSON schema:                                 
   - name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{  
  0,2})[a-z0-9]+)*$                                                                          

fixed compser.json you get it in a pull request.

composer install
npm install
npm run build

Enable the app via UI:

{"reqId":"vcENhwKUfnXbUMRKxzp1","level":3,"time":"2022-02-28T23:52:16+00:00","remoteAddr":"REDACTED","user":"REDACTED","app":"PHP","method":"POST","url":"/settings/apps/enable",

"message":"Cannot declare class OCA\\RocketIntegration\\AppInfo\\Application, because the name is already in use at 

/var/www/REDACTED/apps/rocketchat_nextcloud/lib/AppInfo/Application.php#0","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36","version":"22.2.0.2"}
ruvenss commented 2 years ago

@pierrelocus

florisvangeel commented 2 years ago

cat composer.json

{
    "name": "rocketchat/integration",
    "description": "Rocket Chat Official App for NextCloud",
    "type": "project",
    "license": "AGPLv3",
    "authors": [
        {
            "name": "Marvin AI"
        }
    ],
    "require": {
        "nategood/httpful": "^0.3.2"
    },
    "require-dev": {
        "phpunit/phpunit": "^5.4"
    }
}

Notice tabs, not spaces

florisvangeel commented 2 years ago

Now i hit into same issue as #4

ruvenss commented 2 years ago

@idevit Try to pull the new version.

ruvenss commented 2 years ago

Fixed Thanks