Comments (8)
@stof why do you think this is not working at all?
from php-github-api.
I've tried to reproduce it, but I think it works fine for me. This is what I've run:
git clone https://github.com/cordoval/gush
cd gush
composer update
And this is what composer has installed:
- Installing knplabs/github-api (dev-master 13cac64)
Cloning 13cac64bfd92daf99c5b5b3c4c11471d5fed5d68
Have you tried clearing composer's cache at ~/.composer/cache/
. I've sometimes solved weird issues by doing that.
from php-github-api.
the command is
composer global require 'cordoval/gush=dev-master'
thanks for your time @adanlobato
from php-github-api.
Hey! I think I've found your problem, try the following:
composer global require 'cordoval/gush=dev-master' 'knplabs/github-api=@dev'
Probably it's going to work fine now. The problem is that when you run composer global require
it is the same as running composer require
on ~/.composer/
. So when you require packages globally you're appending them to your ~/.composer/composer.json
file, which acts as a normal project composer.json.
In other words, the result of running your command would be your global composer.json
being as follows:
{
"require": {
"cordoval/gush": "dev-master"
}
}
As you probably know, default minimum-stability in composer is stable, but your project relies on an unstable third-party package: knplabs/github-api. This means that you have two options:
The first one is switching minimum-stability globally to dev (we can add prefer-stable: true also). With this we will 'see' all available packages in all stabilities but only the most stable that match our requirements will be installed.
{
"require": {
"cordoval/gush": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true
}
The other option is enabling the dev channel only for our desired package, which results in:
{
"require": {
"cordoval/gush": "dev-master"
"knplabs/github-api": "@dev"
}
}
The command I gave you does this last option.
Summarizing, the problem is that packages are globally installed as dependencies, not root projects; so the problem is that the minimum-stability flag you've set in your project is not being propagated.
Hope this helps! :D
from php-github-api.
oh no no no no, this is not the solution, I already tried this all night and it is not the solution. If you check your @dev will give you 1.2.0 and not 1.3.x-dev which is the needed thing. I think at this point the only solution is to have @cursedcoder to actually tag semver properly since some bugs were fixed. Not sure why this is not done regularly.
from php-github-api.
it worked with composer global require 'cordoval/gush=dev-master' 'knplabs/github-api=@dev'
but shows still the need for tagging bug fixes.
from php-github-api.
@cordoval check 1.2.1
from php-github-api.
thanks bunches @cursedcoder you rock! 👍 👶
from php-github-api.
Related Issues (20)
- Repo documentation out-of-date? HOT 4
- Secrets Scanning Alerts HOT 1
- Sync a fork branch with the upstream repository
- Document the use of authenticate() using ENV variable HOT 4
- Suggestion to remove authorizations::create from doc HOT 2
- ResultPager::get() can return string HOT 4
- Add .phpstorm.meta.php to improve code completion HOT 1
- Add support for new github api versioning
- Env API
- Correct Async usage
- projects returning empty. HOT 1
- api('issue')->find() is still documented but was removed
- Http\Client\HttpClient Deprecation HOT 2
- GraphQL queries are not cached
- Allow php-http/cache-plugin version 2 HOT 6
- pull request closing references HOT 1
- reactions
- Get owner's repositorie's activity
- Update `Apps` to accept query parameters as per specification
- Cannnot Remove an Issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-github-api.