WPDrill/framework

Getting Issue While Installing WpDrill

Closed this issue · 6 comments

I was trying to install the framework using below command
composer install

Platform
Windows 11

PHP
8.3.0

I am getting error as below

No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information

In PathRepository.php line 163:

  The `url` supplied for the path (pkgs/core-wp) repository does not exist


install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

Could you please remove the given lines from composer.json's repositories section

     {
       "type": "path",
       "url": "pkgs/core-wp",
       "options": {
         "symlink": true
       }
     },

Could you please remove the given lines feom composer.json's repositories section

     {
       "type": "path",
       "url": "pkgs/core-wp",
       "options": {
         "symlink": true
       }
     },

let me try

Getting below error after removing that


Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires wpdrill/core 1.0.0 (exact version match: 1.0.0 or 1.0.0.0), found wpdrill/core[dev-master, dev-main] but these do not match your constraint and are therefore not installable. Make sure you fix the constraint as packages installed from symlinked path repos are updated even in partial updates and the one from the lock file can thus not be used.

I think a new release tag will solve the issue for WPDrill/Core. As this project has WPDrill/Core dependency
In that case project root composer.json file should be

{
    "name": "wpdrill/framework",
    "description": "A WordPress Plugin",
    "type": "wordpress-plugin",
    "license": "GPL-2.0-or-later",
    "authors": [
        {
            "name": "Nahid Bin Azhar",
            "email": "nahid.dns@gmail.com"
        }
    ],
    "minimum-stability": "dev",
    "require": {
        "php": ">=7.4",
        "nahid/apiz": "dev-master",
        "wpdrill/core": "^1.0.0"
    },

    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "files": [
            "app/Utilities/helpers.php"
        ]
    },
    "require-dev": {
        "symfony/var-dumper": "^6.0"
    }
}

image

For now I'm trying the dev-master,

"require": {
    "php": ">=7.4",
    "nahid/apiz": "dev-master",
    "wpdrill/core": "dev-master"
},

For now I'm trying the dev-master,

"require": {
    "php": ">=7.4",
    "nahid/apiz": "dev-master",
    "wpdrill/core": "dev-master"
},

I tried as local repo(WpDrill/Core). It's run composer successfully. But this is not recommended at all