New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install from Readme for dev branch #224

Closed
gruz opened this Issue Jan 27, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@gruz
Contributor

gruz commented Jan 27, 2018

There https://github.com/joomla/coding-standards/tree/3.x-dev you say:

{
    "require-dev": {
		"joomla/coding-standards": "~3.0"
	}
}

It gives an error when composer global update like

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package joomla/coding-standards ^3.0@alpha exists as joomla/coding-standards[2.0.0-alpha, 2.0.0-alpha2, dev-3.x-dev, dev-master, 2.x-dev] but these are rejected by your constraint.

So the composer.json code should be

    "require-dev": {
		"joomla/coding-standards": "dev-3.x-dev"
    }
@acs-ferreira

This comment has been minimized.

acs-ferreira commented Jan 29, 2018

As stability of joomla/coding-standards 3.0.0 is currently alpha, make sure you allow usage of alpha software in Composer:

composer property-set minimum-stability "alpha"

@gruz

This comment has been minimized.

Contributor

gruz commented Jan 29, 2018

{
    "require-dev": {
			"joomla/coding-standards": "~3.0"
    },
    "minimum-stability": "alpha"
}
composer update


Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package joomla/coding-standards ~3.0 exists as joomla/coding-standards[2.0.0-alpha, 2.0.0-alpha2, dev-3.x-dev, dev-master, 2.x-dev] but these are rejected by your constraint.
@photodude

This comment has been minimized.

Contributor

photodude commented Feb 8, 2018

Technically we still have not done an alpha/beta/stable of the PHPCS 3.x version that text is a placeholder

cc/ @mbabker @wilsonge we should get a release of the PHPCS 3.x version completed.

@mbabker

This comment has been minimized.

Member

mbabker commented Feb 10, 2018

Branch alias for 3.x should be fixed now so running composer require joomla/coding-standards ~3.0@dev should work correctly. As noted there is not a release tag of 3.x at any stability so you must use dev stability for the branch for the moment.

@mbabker mbabker closed this Feb 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment